XEN 4.4 Debian Jessie (OVH) で異なる IP サブネットを使用して dom0 と domu を設定する方法

XEN 4.4 Debian Jessie (OVH) で異なる IP サブネットを使用して dom0 と domu を設定する方法

dom0 ネットワークの設定を手伝ってください。dom0 ホストは Debian jessie です。OVH の IP メイン (dom0) とは異なるサブネットを受け入れるように domu を設定する必要があります。これが私のネットワークのトポロジです:

A.B.C.254 ---- A.B.C.81
(Gateway)       (br0/dom0)
               X.Y.X.150 ---- X.Y.X.144 - X.Y.Z.149 (domu)
                (br1/dom0)

私の dom0 /etc/network/interface は次のとおりです:

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
   bridge_ports eth0
        address A.B.C.81
        netmask 255.255.255.0
        network A.B.C.0
        broadcast A.B.C.255
        gateway A.B.C.254
   bridge_stp on
   bridge_maxwait 0
   pre-up /sbin/ipset restore < /etc/ipset.up.rules
   pre-up /sbin/iptables-restore < /etc/iptables.up.rules

auto br1
iface br1 inet static
        address X.Y.X.150
        netmask 255.255.255.248
        broadcast X.Y.X.151
   pre-up brctl addbr br1

出力形式 route -v

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         A.B.C.254  0.0.0.0         UG    0      0        0 br0
A.B.C.0    *               255.255.255.0   U     0      0        0 br0
X.Y.X.144  *               255.255.255.248 U     0      0        0 br1

ip routeからの出力:

default via A.B.C.254 dev br0
A.B.C.0/24 dev br0  proto kernel  scope link  src A.B.C.81
X.Y.X.144/29 dev br1  proto kernel  scope link  src X.Y.X.150

brctl showからの出力

# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.e03f49e8149b       yes             eth0
br1             8000.feffffffffff       no              vif3.0

dom0 から br1 と br1 に ping できますが、domu には ping できません。「ブロードキャストに ping しますか? -b を実行してください」というエラーが表示されます。-b オプションでのみ機能します。

# ping X.Y.Z.144 -c 2 -b
WARNING: pinging broadcast address
PING X.Y.Z.144 (X.Y.Z.144) 56(84) bytes of data.
64 bytes from X.Y.Z.144: icmp_seq=1 ttl=64 time=0.163 ms
64 bytes from X.Y.Z.144: icmp_seq=2 ttl=64 time=0.127 ms

--- X.Y.Z.144 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.127/0.145/0.163/0.018 ms

domu からは、br1 と br0 に ping できますが、インターネット (8.8.8.8) に ping できません。外部からは、br0 と br1 に ping できますが、domu に ping できません。

ありがとう 敬具 マヌ・プルバ

答え1

domu ip を XYZ144 から XYZ145 に変更します。外部からのネットワーク /29 ping に XYZ144 を使用できません。

>ping x.y.z.145

Pinging x.y.z.145 with 32 bytes of data:
Reply from x.y.z.145: bytes=32 time=276ms TTL=50
Reply from x.y.z.145: bytes=32 time=270ms TTL=50
Reply from x.y.z.145: bytes=32 time=288ms TTL=50
Reply from x.y.z.145: bytes=32 time=269ms TTL=50

Ping statistics for x.y.z.145:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 269ms, Maximum = 288ms, Average = 275ms

関連情報