linux common commands --ifconfig continue to add commands [ing]

Command ifconfig # View the computer network / network card configuration

Example: ifconfig # normal output results are as follows

eth0: flags=4163<UP,BROADCAST,RUNNING> mtu 1500
  inet 192.168.1.26 netmask 255.255.255.128 broadcast 10.9.68.127
  ether fa:12:3e:85:cc:aa txqueuelen 1000 (Ethernet)
  RX packets 14952827 bytes 3546535962 (3.3 GiB)
  RX errors 0 dropped 0 overruns 0 frame 0
  TX packets 18573930 bytes 7673469127 (7.1 GiB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0: # NIC name

inet 192.168.1.26 #IP address

netmask netmask 255.255.255.128 #

gateway address broadcast 10.9.68.127 #

ether fa: 12: 3e: 85: cc: aa # NIC physical address

txqueuelen 1000 (Ethernet) # type of card, Gigabit Ethernet

Note: In the windows system, we use the command line to view the network information, use the ipconfig , and Linux has one word, oh.

 

Guess you like

Origin www.cnblogs.com/creasybear/p/11589028.html