咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

linux 下修改网卡地址

2017-12-30 23:23:25 5535次

   linux下修改网卡的一些命令:
   
   查看属性:  /sbin/ifconfig eth0(网卡号)
   禁用网卡:  /sbin/ifconfig eth0 down
   启用网卡   /sbin/ifconfig eth0 up
   修改网卡地址为00-E0-4C-B5-33-BE,命令为:/sbin/ifconfig eth0 hw ether 00:E0:4C:B5:33:BE
   

附:

ubnutu网卡配置

auto eth0
iface eth0  inet static
address 192.168.1.249
netmask 255.255.255.0
gateway 192.168.1.1
nameserver 192.168.1.1

/etc/network/interfaces

首页
最新活动
个人中心