http://note.tc.edu.tw/931.html

 

ifconfig

# ip addr

# ip -s link

# ip  link

 

netstat :

# #TCP listen
# ss -lt
# #UDP listen
# ss -ul
# #TCP 連線
# ss -t
 
[root@linux01 ~]# ss -tnlp
State       Recv-Q Send-Q                              Local Address:Port                                Peer Address:Port
LISTEN      0      100                                     127.0.0.1:25                                             *:*      users:(("master",2423,13))
LISTEN      0      32                                   128.110.9.71:5566                                           *:*      users:(("test1.exe",28232,3))
LISTEN      0      128                                             *:22                                             *:*      users:(("sshd",2131,3))
LISTEN      0      100                                           ::1:25                                            :::*      users:(("master",2423,14))
LISTEN      0      128                           ::ffff:128.110.9.71:4000                                          :::*      users:(("oninit",10867,5),("oninit",10857,4))
LISTEN      0      128                                            :::80                                            :::*      users:(("httpd",26628,4),("httpd",26627,4),("httpd",26626,4),("httpd",26625,4),("httpd",26624,4),("httpd",26623,4),("httpd",26622,4))
LISTEN      0      128                                            :::22                                            :::*      users:(("sshd",2131,4))
 
 
# ifconfig eth1 up
# ifconfig eth1 down
改為


# ip l set eth1 up
# ip l set eth1 down








arrow
arrow
    全站熱搜

    hedgezzz 發表在 痞客邦 留言(0) 人氣()