搬瓦工换机房换ip之后不能连外网
昨晚把nutzbook所在的vps换了机房, 自然ip也更换了
然后,突然发现怎么不能ping外网呢?
[root@nutzbook ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
74 packets transmitted, 0 received, 100% packet loss, time 74016ms
[root@nutzbook ~]# ping 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
^C
--- 114.114.114.114 ping statistics ---
11 packets transmitted, 0 received, 100% packet loss, time 10547ms
[root@nutzbook ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 venet0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0
百思不得其解, 唯有找客服, 答复的核心就是一句iptables命令
iptables -F; iptables -t nat -F; iptables-save > /etc/sysconfig/iptables
即清除老的转发规则,神奇了,为啥会有呢, 搞不清楚了…
blog comments powered by Disqus