linux操作系统下修改MAC地址方法
时间:2024-02-14 05:32:33 点击:247

  一、修改MAC地址方法

  linux环境下:

  需要用

  #ifconfig eth0 down

  先把网卡禁用

  再用ifconfig eth0 hw ether 1234567890ab

  这样就可以改成功了

  要想永久改就这样:

  在/etc/rc.d/rc.local里加上这三句(也可以在/etc/init.d/network里加下面三行)

  ifconfig eth0 down

  ifconfig eth0 hw ether 1234567890ab

  ifconfig eht0 up

  二、修改IP地址的方法

  #ifconfig ethe0 down

  #ifconfig ethe0 192.168.169.245 netmask 255.255.255.0

  以上的方法下次启动时就无效了

  如果要以后每次都生效则加入到以下文件里面

  在/etc/sysconfig/network-scripts/下修改ifcfg-eth0地址

  三、一块网卡添加两个ip地址

  ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0

  ifconfig eth0:2 192.168.1.2 netmask 255.255.255.0

  以上是对网卡eth0修改了两个IP地址的方法

最新游戏更多

最新软件更多

  • 玩家推荐
  • 游戏攻略

金钼软件下载站 Copyright(C) 2008- 601958.cn All Rights Reserved!

闽ICP备2023004188号| 免责声明