1.查看linux系统的基本信息。 man uname
uname -a
Linux bigdata-yace09 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
2.ifconfig设置网卡信息
- ifconfig eth0 mtu 1500 设置能通过的最大数据包大小为 1500 bytes
-
启动和关闭arp协议ifconfig eth0 arp 开启网卡eth0 的arp协议;ifconfig eth0 -arp 关闭网卡eth0 的arp协议;
-
ifconfig eth0 192.168.120.56 netmask 255.255.255.0 broadcast 192.168.120.255给eth0网卡配置IP地址:192.168.120.56,加上子掩码:255.255.255.0,加上个广播地址: 192.168.120.255
-
ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE用ifconfig修改MAC地址
-
ifconfig eth0 add/del 33ffe:3240:800:1005::2/64为网卡配置和删除IPv6地址
-
ifconfig eth0 up/down 启动关闭指定网