日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

RedHat6.5網(wǎng)卡常見問題及解決方法

RedHat是運(yùn)用廣泛的Linux系統(tǒng),在RedHat6.5的版本中,在聯(lián)網(wǎng)的時候經(jīng)常會遇到一些網(wǎng)卡問題,下面小編給大家整理了RedHat6.5網(wǎng)卡常見的問題及解決方法,希望對你有所幫助 。

RedHat6.5網(wǎng)卡常見問題及解決方法


1、找不到eth0文件
在使用RedHat6.5,新裝好的系統(tǒng),發(fā)現(xiàn)沒有eth0網(wǎng)卡,默認(rèn)的第一個網(wǎng)卡是Auto-eth0
[root@rac01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-Auto_eth0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.10.10.110
PREFIX=24
GATEWAY=10.10.10.111
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
UUID=86d44060-4579-48cc-b85b-219a206ca37c
ONBOOT=yes
HWADDR=00:50:56:95:09:76
LAST_CONNECT=1411004329
解決方法:
直接更名ifcfg-Auto_eth0文件為eth0,重啟網(wǎng)卡后會發(fā)現(xiàn),網(wǎng)卡名已經(jīng)變?yōu)閑th0
[root@rac01 ~]# service network restart
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Active connection state: activated
2、ifconfig 發(fā)現(xiàn)網(wǎng)卡服務(wù)名并未更改
[root@rac01 ~]# ifconfig
Auto_eth0 Link encap:Ethernet HWaddr 00:50:56:95:09:76
inet addr:10.10.10.110 Bcast:10.10.10.111 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe95:976/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:484 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:40095 (39.1 KiB) TX bytes:6271 (6.1 KiB)
解決方法:
每次更改RedHat的網(wǎng)卡信息,RedHat會自動的將網(wǎng)卡的MAC地址和對應(yīng)的網(wǎng)卡服務(wù)名關(guān)系記錄在/etc/udev/rules.d/70-persistent-net.rules中,修改里面的對應(yīng)服務(wù)名即可
[root@rac01 ~]# vim /etc/udev/rules.d/70-persistent-net.rules
# 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.
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM==“net”,ACTION==“add”,DRIVERS==“?*”,ATTR{address}==“00:0c:29:1e:f6:ad”,ATTR{type}==“1”,KERNEL==“eth*”,NAME=“eth0”
修改完成后需重啟一下系統(tǒng),再次查看網(wǎng)卡服務(wù)名已經(jīng)更改
[root@rac01 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:95:09:76
inet addr:10.109.67.81 Bcast:10.109.67.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe95:976/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:985 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:74395 (72.6 KiB) TX bytes:6527 (6.3 KiB)
【RedHat6.5網(wǎng)卡常見問題及解決方法】上一頁12下一頁 剩下全文

    推薦閱讀