咨询热线:4006-75-4006

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

vps更换服务器后网卡不通的处理办法

2016-10-24 17:27:54 11237次

vps更换服务器后网卡不通的处理办法:


更换网卡vps主机不通,在更换服务器的时候linux的主机时常遇到这类问题。

具体处理办法是:



1.查看目前使用网卡和配置的实际mac地址(下面的使用的eth1)


[root@localhost ~]# vi /etc/udev/rules.d/70-persistent-net.rules 


显示信息如下:(可能会多出一段是eth_sudu的)


# This file was automatically generated by the /lib/udev/write_net_rules

# program, run by the persistent-net-generator.rules rules file.

#

# You can modify it, as long as you keep each rule on a single

# line, and change only the value of the NAME= key.


# net device ()


# net device ()

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:22:*", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


# net device ()

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:4a:ff:2a:23:3d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

~                                          


首页
最新活动
个人中心