咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
1.ifconfig命令被用于配置和显示Linux内核中网络接口的网络参数。用ifconfig命令配置的网卡信息,在网卡重启后机器重启后,配置就不存在。要想将上述的配置信息永远的存的电脑里,那就要修改网卡的配置文件了
2.命令#ifconfig 显示网络设备信息
3.启动关闭指定网卡
#ifconfig eth0 up #相当于ifup eth0 命令
#ifconfig eth0 down #相当于 ifdown eth0 命令
4.配置ip地址:
#ifconfig eth0 192.168.1.100
#ifconfig eth0 192.168.1.100 netmask 255.255.255.0
#ifconfig eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
5.用ifconfig修改mac地址
#ifconfig eth0 hw ether 00:aa:cc:5d:1e