亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長(zhǎng)資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    centos下訪問(wèn)不了外網(wǎng)怎么辦

    centos下訪問(wèn)不了外網(wǎng)怎么辦

    問(wèn)題描述:

    內(nèi)網(wǎng)的這一臺(tái)centos服務(wù)器,以前一直都是好好的,可突然不能上外網(wǎng)了,表現(xiàn),內(nèi)網(wǎng)可以訪問(wèn)這臺(tái)電腦資源,但是在這一臺(tái)服務(wù)器上無(wú)法訪問(wèn)外網(wǎng)。

    [root@localhost ~]# arp -n Address                  HWtype  HWaddress           Flags Mask            Iface 192.168.1.102            ether   e4:9a:79:d8:bf:0d   C                     eth0 192.168.1.214            ether   40:8d:5c:21:00:1a   C                     eth0 192.168.1.111            ether   4c:8d:79:e4:aa:d0   C                     eth0 192.168.1.1              ether   00:17:16:08:3d:6a   CM                    eth0 [root@localhost ~]#

    問(wèn)題排查:

    非DNS問(wèn)題,也非IP沖突問(wèn)題,網(wǎng)關(guān)的網(wǎng)卡地址導(dǎo)致。

    (推薦教程:centos教程)

    解決方法:

    更新網(wǎng)卡地址,先找到可訪問(wèn)外網(wǎng)的網(wǎng)卡地址,比如在當(dāng)前WIN中執(zhí)行 arp -a,得到網(wǎng)卡地址。

    D:mysite>arp -a  接口: 192.168.1.204 --- 0xc   Internet 地址         物理地址              類型   192.168.1.1           00-17-16-08-33-6a     動(dòng)態(tài)   192.168.1.3           94-de-80-55-1b-8d     動(dòng)態(tài)   239.255.255.250       01-00-5e-70-ff-fa     靜態(tài)   255.255.255.255       ff-ff-ff-ff-ff-ff     靜態(tài)  D:mysite>

    在centos上執(zhí)行如下命令:

    # 在 Centos 上先執(zhí)行刪除舊的網(wǎng)卡信息 /sbin/arp -d 192.168.1.1  # 重新設(shè)置新的,上面win里面找到的 網(wǎng)卡,橫線改為冒號(hào)  /sbin/arp -s 192.168.1.1 00:17:16:08:33:6a

    測(cè)試:

    [root@localhost ~]# ping www.baidu.com PING www.a.shifen.com (183.232.231.172) 56(84) bytes of data. 64 bytes from 183.232.231.172: icmp_seq=1 ttl=55 time=9.03 ms 64 bytes from 183.232.231.172: icmp_seq=2 ttl=55 time=8.80 ms 64 bytes from 183.232.231.172: icmp_seq=3 ttl=55 time=10.1 ms 64 bytes from 183.232.231.172: icmp_seq=4 ttl=55 time=108 ms ^C --- www.a.shifen.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3814ms rtt min/avg/max/mdev = 8.804/34.058/108.239/42.831 ms You have new mail in /var/spool/mail/root [root@localhost ~]#

    完美解決!

    相關(guān)視頻教程推薦:linux視頻教程

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)