tonglijia 发表于 2014-12-5 08:05:39

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.0broadcast 10.128.xx.xxx
      inet6 fe80::d685:64ff:fea2:959bprefixlen 64scopeid 0x20<link>
      inet6 2001:250:1004:144:d685:64ff:fea2:959bprefixlen 64scopeid 0x0<global>
      ether d4:85:64:a2:95:9btxqueuelen 1000(Ethernet)
      RX packets 431bytes 45205 (44.1 KiB)
      RX errors 0dropped 0overruns 0frame 0
      TX packets 79bytes 9605 (9.3 KiB)
      TX errors 0dropped 0 overruns 0carrier 0collisions 0
      device interrupt 19memory 0xf3000000-f3020000

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

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

lo: flags=73<UP,LOOPBACK,RUNNING>mtu 65536
      inet 127.0.0.1netmask 255.0.0.0
      inet6 ::1prefixlen 128scopeid 0x10<host>
      looptxqueuelen 0(Local Loopback)
      RX packets 17bytes 1780 (1.7 KiB)
      RX errors 0dropped 0overruns 0frame 0
      TX packets 17bytes 1780 (1.7 KiB)
      TX errors 0dropped 0 overruns 0carrier 0collisions 0
页: [1]
查看完整版本: centos7 必须先关闭网卡 然后在重新打开 才能上网