XenServer 6.2 客户网络配置

XenServer 6.2 客户网络配置

我尝试安装的所有虚拟机都无法访问互联网。我在一台具有单个 NIC 的服务器上安装了 Xensever 6.2,可以通过 2 个公共 IP 进行访问。XenServer 可以 ping google.com,似乎配置正确。

以下是 ifconfig 的输出

eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1 RX packets:1031298 errors:0 dropped:0 overruns:0 frame:0 TX packets:1204189 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:446121200 (425.4 MiB) TX bytes:799451138 (762.4 MiB)

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:462703 errors:0 dropped:0 overruns:0 frame:0 TX packets:462703 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1266255929 (1.1 GiB) TX bytes:1266255929 (1.1 GiB)

vif41.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP PROMISC MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:76 (76.0 B) TX bytes:0 (0.0 B)

vif41.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP PROMISC MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 B) TX bytes:134 (134.0 B)

xapi2 Link encap:Ethernet HWaddr FE:F8:68:1E:C6:44 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:90 (90.0 B) TX bytes:0 (0.0 B)

xenbr0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:xxx.xxx.xx.xx Bcast:xxx.xxx.xx.xx Mask:255.255.255.224 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1023828 errors:0 dropped:0 overruns:0 frame:0 TX packets:821767 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:449123469 (428.3 MiB) TX bytes:775128231 (739.2 MiB)

xenbr0:0 Link encap:Ethernet HWaddr yy:yy:yy:yy:yy:yy inet addr:yy.yy.yy.yyy Bcast:yy.yy.yy.yy Mask:yy.yyy.yyy.yyy UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1`

brctl show output

bridge name bridge id STP enabled interfaces xenbr0 0000.002590d9a98e no vif43.0 eth0 xe pif-list uuid ( RO) : e790d4ba-c838-fc22-721f-7a98854029f7 device ( RO): eth0 currently-attached ( RO): true VLAN ( RO): -1 network-uuid ( RO): a4105d8f-e7ba-c5e2-1007-db34fe5cf6f7

我安装了虚拟机并连接了网络,但它无法访问互联网。我是否需要以特殊方式配置客户虚拟机?如果需要,该如何配置?

答案1

问题是 Hetzner 会丢弃来自我随机分配的 mac 地址的所有数据包。因此,除非我为虚拟机分配了真实的 mac 地址,否则它无法工作。

相关内容