打印

centos7 必须先关闭网卡 然后在重新打开 才能上网

centos7 必须先关闭网卡 然后在重新打开 才能上网

新安装的centos7,使用中发现, 每次重启系统后都必须先关闭网卡 然后在重新打开才能上网。网卡设置的是开机启动,开机后看网卡的状态很正常,各个网络参数的设置也很正确(校园网,动态ip),可是登陆锐捷时提示正常登陆,但是无法打开网页,必须把网卡由On变为Off,然后再On才能登陆网页。请教下这是什么原因?网卡驱动的问题?
未登录锐捷时的网络信息:
[@localhost ]$ ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.128.xx.xxx netmask 255.255.255.0  broadcast 10.128.xx.xxx
        inet6 fe80::d685:64ff:fea2:959b  prefixlen 64  scopeid 0x20<link>
        inet6 2001:250:1004:144:d685:64ff:fea2:959b  prefixlen 64  scopeid 0x0<global>
        ether d4:85:64:a2:95:9b  txqueuelen 1000  (Ethernet)
        RX packets 431  bytes 45205 (44.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 79  bytes 9605 (9.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  memory 0xf3000000-f3020000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 13  bytes 1360 (1.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13  bytes 1360 (1.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
登录锐捷后:
[@localhost ]$ ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.128.xx.xxx  netmask 255.255.255.0  broadcast 10.128.xx.xxx
        inet6 fe80::d685:64ff:fea2:959b  prefixlen 64  scopeid 0x20<link>
        inet6 2001:250:1004:144:d685:64ff:fea2:959b  prefixlen 64  scopeid 0x0<global>
        ether d4:85:64:a2:95:9b  txqueuelen 1000  (Ethernet)
        RX packets 907  bytes 92404 (90.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 107  bytes 15387 (15.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  memory 0xf3000000-f3020000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 13  bytes 1360 (1.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13  bytes 1360 (1.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
登录锐捷并重新启动网卡后:
[@localhost ]$ ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.128.xx.xxx  netmask 255.255.255.0  broadcast 10.128.xx.xxx
        inet6 fe80::d685:64ff:fea2:959b  prefixlen 64  scopeid 0x20<link>
        inet6 2001:250:1004:144:d685:64ff:fea2:959b  prefixlen 64  scopeid 0x0<global>
        ether d4:85:64:a2:95:9b  txqueuelen 1000  (Ethernet)
        RX packets 2616  bytes 833557 (814.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1009  bytes 127475 (124.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  memory 0xf3000000-f3020000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 17  bytes 1780 (1.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17  bytes 1780 (1.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

TOP