ifconfig
用法:
interface
The name of the interface. This is usually a driver name
followed by a unit number, for example eth0 for the first
Ethernet interface.
[root@zkero ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:0C:29:88:40:17 inet addr:192.168.201.128 Bcast:192.168.201.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe88:4017/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:854 errors:0 dropped:0 overruns:0 frame:0 TX packets:287 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:92365 (90.2 KiB) TX bytes:47084 (45.9 KiB)
eth0:网络卡代号
HWaddr:网卡硬件地址,即MAC地址
inet addr:IPV4的ip地址
Broadcast:广播地址
netmask:子网掩码