我正在尝试将几个ip地址附加到运行在vmware esxi上的ubuntu10.04的虚拟服务器上。
使用esxi,我给它分配了10个虚拟网卡,它们都连接到同一个虚拟交换机上。
每个虚拟网卡都有自己的ip地址,网络上没有其他设备使用这个地址。
问题是,在办公室内部,即在路由器运行之前,一切正常--没有问题,所有的服务都可以很好地使用。在办公室外,即公共互联网上,机器上只有一个ip提供任何服务。这就是eth0上的ip。所有其他ip的暂停。
所有ip都是公共ip在相同的范围内。没有防火墙问题,因为防火墙配置没有改变,所有ip都可以在关闭的旧硬件上公开使用。
来自其他地方的另一个服务器的traceroute输出如下:
root@jaguar:~# tcptraceroute x.x.x.252
traceroute to x.x.x.252 (x.x.x.252), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 Xe0-1-1-0-grtontl1.red.telefonica-wholesale.net (213.140.51.181) 21.845 ms 22.682 ms 23.545 ms
4 GE6-1-0-0-grtlontl3.red.telefonica-wholesale.net (84.16.12.14) 24.144 ms 24.834 ms GE7-0-0-0-grtlontl3.red.telefonica-wholesale.net (84.16.12.94) 25.374 ms
5 CW-2-1-0-0-grtlontl3.red.telefonica-wholesale.net (213.140.52.62) 67.339 ms 67.334 ms 67.327 ms
6 xe-4-2-0-xcr1.lnd.cw.net (195.2.25.58) 86.102 ms 64.355 ms 64.136 ms
7 ge-5-0-0-dcr1.lnd.cw.net (195.2.25.2) 18.486 ms ge-1-0-0-dcr1.lnd.cw.net (195.2.25.122) 18.664 ms 18.613 ms
8 so-0-0-0-zcr1.lnt.cw.net (166.63.163.222) 18.830 ms so-4-0-0-zcr1.lnt.cw.net (166.63.161.146) 18.437 ms so-0-0-0-zcr1.lnt.cw.net (166.63.163.222) 18.372 ms
9 so-1-3-0-ycr1-lo7.cw.net (166.63.222.30) 22.153 ms 22.413 ms 22.411 ms
10 ge-0-0-0-kar1.lo7.cw.net (195.2.12.178) 22.886 ms 22.404 ms 22.356 ms
11 hackney-gw.uk.insnet.net (213.38.241.146) 28.065 ms 28.818 ms 29.410 ms
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
root@jaguar:~# tcptraceroute x.x.x.244
traceroute to x.x.x.244 (x.x.x.244), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 GE7-0-0-0-grtlontl3.red.telefonica-wholesale.net (84.16.12.94) 23.450 ms 24.431 ms GE6-1-0-0-grtlontl3.red.telefonica-wholesale.net (84.16.12.14) 24.956 ms
5 CW-2-1-0-0-grtlontl3.red.telefonica-wholesale.net (213.140.52.62) 25.626 ms 26.377 ms 26.975 ms
6 xe-4-0-0-xcr1.lnd.cw.net (195.2.25.30) 27.823 ms xe-4-2-0-xcr1.lnd.cw.net (195.2.25.58) 18.397 ms 18.448 ms
7 ge-5-0-0-dcr1.lnd.cw.net (195.2.25.2) 18.660 ms ge-1-0-0-dcr1.lnd.cw.net (195.2.25.122) 22.714 ms 21.367 ms
8 so-4-0-0-zcr1.lnt.cw.net (166.63.161.146) 18.789 ms so-0-0-0-zcr1.lnt.cw.net (166.63.163.222) 18.915 ms so-4-0-0-zcr1.lnt.cw.net (166.63.161.146) 18.532 ms
9 so-1-3-0-ycr1-lo7.cw.net (166.63.222.30) 22.877 ms 22.694 ms 22.405 ms
10 ge-12-0-0-kar1.lo7.cw.net (195.2.12.182) 22.404 ms 22.430 ms 22.600 ms
11 hackney-gw.uk.insnet.net (213.38.241.146) 27.783 ms 27.810 ms 28.225 ms
12 rsvd-company-name-244.x.x.x.in-addr.arpa (x.x.x.244) 28.292 ms 28.295 ms 27.762 ms以252结尾的地址是不能工作的地址,以244结尾的地址是工作的地址。
/etc/网络/接口如下:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.244
netmask 255.255.255.0
broadcast x.x.x.255
gateway x.x.x.x
dns-nameservers x.x.x.x
auto eth1
iface eth1 inet static
address x.x.x.252
netmask 255.255.255.0
gateway x.x.x.x
broadcast x.x.x.255
...等
发布于 2010-10-07 10:42:20
终于找到了解决办法。
这与Ubuntu或VMWare上的配置无关,实际上是路由器本身。它的arp表似乎有一个非常长的寿命。电源循环路由器解决了问题,并解决了每次出现的问题。
只是张贴这个,以便其他人可能会发现这种情况可能会得到一些帮助。
发布于 2010-08-12 15:20:51
所有的IP地址都在同一个子网上吗?
如果是的话:
如果不是,那么您可能要考虑的是,您正在定义10个网关,这些网关可能是相同的,也可能不是相同的;这些网关可能允许也可能不允许“源路由”(即接受来自不符合传入路由规则的源的出站数据包)。在这种情况下,您希望谷歌“源路由”。
发布于 2010-08-12 15:28:22
检查VMware内部的开关配置。另外,尝试使用ping -I并选择不起作用的接口,看看它是否解决了问题。(可能它只是没有arp条目。
https://serverfault.com/questions/169193
复制相似问题