por favor ajude a configurar a rede dom0. dom0 host é o Debian jessie. Preciso configurar o domu para aceitar diferentes sub-redes do ip main (dom0) no OVH.
Aqui está topologia minha rede:
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)
Aqui está o meu 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
Rota do formulário de saída -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
Saída da rota ip:
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
saída do brctl show
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.e03f49e8149b yes eth0
br1 8000.feffffffffff no vif3.0
De dom0, eu posso pingar br1 e br1 mas não domu com erro "Você quer fazer o ping broadcast? Então -b". trabalhe apenas com a opção -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
De domu, posso pingar br1 e br0 mas não consigo pingar internet (8.8.8.8)
De fora eu posso pingar br0 e br1 mas não consigo pingar domu.
Obrigado
Atenciosamente
Manu Purba