-a 查看系统拥有的全部网络接口
ifconfig -a
网络接口 指定操作某个网口
ifconfig eth0 192.168.1.136
broadcast 设置网口的广播地址
ifconfig eth0 broadcast 192.168.1.255
netmask 设置网口的子网掩码
ifconfig eth0 netmask 255.255.255.0
hw ether 设置网卡物理地址(如果驱动不支持则无效)
ifconfig eth0 hw ether 00:11:00:00:11:22
up 激活指定网卡
ifconfig eth0 up
down 关闭指定的网卡
ifconfig eth0 down