1. Using the ifconfig command to manage the network interface
Command: Ethtool eth0, viewing NIC information
650) this.width=650; "height=" 283 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/72/fe/wkiol1xxioqwd80waae4ee1_an4657.jpg "border=" 0 "/>
Command: ifconfig, view the information to activate the network port
Eth0 represents the first NIC
Lo represents the host loopback interface
650) this.width=650; "height=" "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/72/fe/wkiol1xxioyjbes6aaftqyusqvm365.jpg "border=" 0 "/>
Command: ifconfig-a, view all network card information.
Eth1 is not active.
650) this.width=650; "height=" 281 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/72/fe/wkiol1xxio7glmnpaagdsn4h11w771.jpg "border=" 0 "/>
Command: ifconfig eth0 down, close eth0 interface
Ifconfig eth0 up, activating eth0 interface
Command: Vim/etc/sysconfig/network-scripts/ifcfg-eth0, modifying configuration information for eth0
650) this.width=650; "height=" 178 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/73/02/wkiom1xxhsdwbx02aac-jzb4cxm412.jpg "border=" 0 "/>
Command: Route-n, show host route
650) this.width=650; "height=" 154 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/73/02/wkiom1xxhskqmdj2aactq3hv8io598.jpg "border=" 0 "/>
Command: Route add-net 192.168.0.0 netmask 255.255.255.0 GW 192.168.0.1 Add a default gateway
Route del-net 192.168.0.0 netmask 255.255.255.0 GW 192.168.0.1 Delete a default gateway
650) this.width=650; "height=" "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/73/02/wkiom1xxhspbne0eaadyjfb3nuw979.jpg "border=" 0 "/>
Command: The ping www.baidu.com–c 2,-c option specifies the number of messages sent, where a test sends two messages
650) this.width=650; "height=" 158 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/73/02/wkiom1xxhsssxt7laadoeabqfjg732.jpg "border=" 0 "/>
Command: ping–c 1–r baidu.com,-r option to display the routing information passed by the message
650) this.width=650; "height=" 181 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/73/02/wkiom1xxhswdj2zyaadp5f95bjw905.jpg "border=" 0 "/>
Command: Tracepath, equivalent to traceroute.
Command: Netstat-r, displays the system core routing table.
650) this.width=650; "height=" 131 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/73/02/wkiom1xxiarazekiaacqjaam2bu684.jpg "border=" 0 "/>
Command: Netstat-an, digitally display all socket information
650) this.width=650; "height=" 137 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/73/02/wkiom1xxiavcfvm8aacs4uptchk410.jpg "border=" 0 "/>
Command: netstat-i, display all network interface information
650) this.width=650; "height=" "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/73/02/wkiom1xxiazrgphvaab5z4a5rya889.jpg "border=" 0 "/>
Command: Netstat–s, displaying protocol information
650) this.width=650; "height=" 290 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/73/02/wkiom1xxia2wd66iaaf80h60gfw427.jpg "border=" 0 "/>
Command: Ss-ta, displaying TCP connections
650) this.width=650; "height=" 165 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/73/02/wkiom1xxibhj_gmeaab3laczkkk347.jpg "border=" 0 "/>
Order: Whois 166.111.4.100, query 166.111.4.100 registration information
Need to install Jwhois package, install command: yum–y install Jwhois
650) this.width=650; "height=" 306 "title=" image "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/73/02/wkiom1xxjp_stw_laagrtid5h3m450.jpg "border=" 0 "/>
Linux Network Management commands