2024年11月RedHat6.5网卡常见问题及解决方法(2)

发布时间:

  ⑴、网卡eth被删除后,新加的网卡成了eth,如何让从eth开始

  ⑵[rootrac ~]# ifconfig

  ⑶eth Link encap:Ether HWaddr :::::

  ⑷i addr:... Bcast:... Mask:...

  ⑸i addr: fe:::ff:fe:/ Scope:Link

  ⑹UP BROADCAST RUNNING MULTICAST MTU: Metric:

  ⑺RX packets: errors: dropped: overruns: frame:

  ⑻TX packets: errors: dropped: overruns: carrier:

  ⑼collisions: txqueuelen:

  ⑽RX bytes: (. KiB TX bytes: (. KiB

  ⑾eth Link encap:Ether HWaddr :C::E:F:B

  ⑿i addr:... Bcast:...Mask:...

  ⒀i addr: fe::c:ff:fee:fb/ Scope:Link

  ⒁UP BROADCAST RUNNING MULTICAST MTU: Metric:

  ⒂RX packets: errors: dropped: overruns: frame:

  ⒃TX packets: errors: dropped: overruns: carrier:

  ⒄collisions: txqueuelen:

  ⒅RX bytes: (. KiB TX bytes: (. b

  ⒆同问题类似,即可以手动的修改-persistent-.rules文件,将对应的MAC地址与网卡序号改成想要的,也可以直接删除该文件,重启系统后,RedHat会自动的创建该文件,并从开始计数。

  ⒇删除文件,重启系统

  ⒈[rootrac ~]# mv /etc/udev/rules.d/-persistent-.rules /etc/udev/rules.d/

  ⒉-persistent-.rules.bak

  ⒊[rootrac ~]# reboot

  ⒋再次查看,会发现已经从eht开始

  ⒌[rootrac ~]# ifconfig

  ⒍eth Link encap:Ether HWaddr :::::

  ⒎i addr:... Bcast:... Mask:...

  ⒏i addr: fe:::ff:fe:/ Scope:Link

  ⒐UP BROADCAST RUNNING MULTICAST MTU: Metric:

  ⒑RX packets: errors: dropped: overruns: frame:

  ⒒TX packets: errors: dropped: overruns: carrier:

  ⒓collisions: txqueuelen:

  ⒔RX bytes: (. KiB TX bytes: (. KiB

  ⒕eth Link encap:Ether HWaddr :C::E:F:B

  ⒖i addr:... Bcast:... Mask:...

  ⒗i addr: fe::c:ff:fee:fb/ Scope:Link

  ⒘UP BROADCAST RUNNING MULTICAST MTU: Metric:

  ⒙RX packets: errors: dropped: overruns: frame:

  ⒚TX packets: errors: dropped: overruns: carrier:

  ⒛collisions: txqueuelen:

  ①RX bytes: (. KiB TX bytes: (. b

  ②、每次重启网卡,总是提示

  ③Active connection path: //freedesktop/workManager/ActiveConnection/

  ④此时网卡也可以正常通信,这个是因为RedHat自己开发的workManager管理工具和/etc/sysconfig/work-scripts/ifcfg-ethx配置不同步造成的。

  ⑤要消除这个提示,请关闭workManager服务即可:

  ⑥[rootrac ~]# service work restart

  ⑦Shutting down loopback interface: [ OK ]

  ⑧Bringing up loopback interface: [ OK ]

  ⑨Bringing up interface eth: Active connection state: activated

  ⑩Active connection path: //freedesktop/workManager/ActiveConnection/ [ OK ]

  ⅠBringing up interface eth: Active connection state: activated

  ⅡActive connection path: //freedesktop/workManager/ActiveConnection/ [ OK ]

  Ⅲ关闭workManager服务

  Ⅳ[rootrac ~]# service workManager stop

  ⅤStopping workManager daemon: [ OK ]

  Ⅵ[rootrac ~]# service work restart

  ⅦShutting down loopback interface: [ OK ]

  ⅧBringing up loopback interface: [ OK ]

  ⅨBringing up interface eth: [ OK ]

  ⅩBringing up interface eth: [ OK ]

  ㈠、重启网卡出现提示:

  ㈡Bringing up interface eth: Determining if ip address ... is already in use for device eth.。。

  ㈢Bringing up interface eth: Determining if ip address ... is already in use for device eth.。。

  ㈣该警告一般是由于网卡解析arp协议导致的,可在网卡的配置文件中加入ARPCHECK=NO参数来屏蔽该检查

  ㈤[rootrac ~]# cat /etc/sysconfig/work-scripts/ifcfg-eth

  ㈥TYPE=Ether

  ㈦BOOTPROTO=none

  ㈧IPADDR=...

  ㈨GATEWAY=...

  ㈩DEFROUTE=yes

  IPV_FAILURE_FATAL=yes

  IPVINIT=no

  NAME=eth

  UUID=d---bb-acac

  ONBOOT=yes

  HWADDR=:::::

  LAST_CONNECT=

  ARPCHECK=no

  再次启动网卡,一切正常

  [rootrac ~]# service work restart

  Shutting down interface eth: [ OK ]

  Shutting down interface eth: [ OK ]

  Shutting down loopback interface: [ OK ]

  Bringing up loopback interface: [ OK ]

  Bringing up interface eth: [ OK ]

  Bringing up interface eth: [ OK ]

  上面就是RedHat.网卡常见问题及解决方法的介绍了,如果你在联网的时候出现连接不上的情况,可以看看是不是网卡出现了问题,可用本文介绍的相关方法进行处理。