I just tried to configure a virtual network bridge for Xen on my home server (Jessie).
This server is part of a home subnet behind an AVM FritzBox 7362 SL router and connected via ethernet.
The FritzBox itself takes the 192.168.178.1 and is configured to always issue the 192.168.178.73 to the server.
Before establishing the bridge:
Code: Select all
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
But when I configure the bridge:
Code: Select all
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
auto xenbr0
iface xenbr0 inet static
bridge_ports eth0
address 192.168.178.73
broadcast 192.168.178.255
netmask 255.255.255.0
gateway 192.168.178.1
allow-hotplug xenbr0
I still can ssh into the server, but:
Code: Select all
# ping debian.org
ping: unknown host debian.org
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.178.73 icmp_seq=1 Destination Host Unreachable
From 192.168.178.73 icmp_seq=2 Destination Host Unreachable
From 192.168.178.73 icmp_seq=3 Destination Host Unreachable
From 192.168.178.73 icmp_seq=4 Destination Host Unreachable
From 192.168.178.73 icmp_seq=5 Destination Host Unreachable
From 192.168.178.73 icmp_seq=6 Destination Host Unreachable
From 192.168.178.73 icmp_seq=7 Destination Host Unreachable
From 192.168.178.73 icmp_seq=8 Destination Host Unreachable
From 192.168.178.73 icmp_seq=9 Destination Host Unreachable
From 192.168.178.73 icmp_seq=10 Destination Host Unreachable
From 192.168.178.73 icmp_seq=11 Destination Host Unreachable
From 192.168.178.73 icmp_seq=12 Destination Host Unreachable
From 192.168.178.73 icmp_seq=13 Destination Host Unreachable
From 192.168.178.73 icmp_seq=14 Destination Host Unreachable
From 192.168.178.73 icmp_seq=15 Destination Host Unreachable
From 192.168.178.73 icmp_seq=16 Destination Host Unreachable
From 192.168.178.73 icmp_seq=17 Destination Host Unreachable
From 192.168.178.73 icmp_seq=18 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
19 packets transmitted, 0 received, +18 errors, 100% packet loss, time 17999ms
pipe 3
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master xenbr0 state UP group default qlen 1000
link/ether b8:ae:ed:7f:9e:17 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.73/24 brd 192.168.178.255 scope global eth0
valid_lft forever preferred_lft forever
3: xenbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether b8:ae:ed:7f:9e:17 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.73/24 brd 192.168.178.255 scope global xenbr0
valid_lft forever preferred_lft forever
inet6 fe80::baae:edff:fe7f:9e17/64 scope link
valid_lft forever preferred_lft forever
# route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 eth0
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 xenbr0
# route
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
default 192.168.178.1 0.0.0.0 UG 0 0 0 eth0
192.168.178.0 * 255.255.255.0 U 0 0 0 eth0
192.168.178.0 * 255.255.255.0 U 0 0 0 xenbr0
# ping 192.168.178.1
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.
From 192.168.178.73 icmp_seq=1 Destination Host Unreachable
From 192.168.178.73 icmp_seq=2 Destination Host Unreachable
From 192.168.178.73 icmp_seq=3 Destination Host Unreachable
From 192.168.178.73 icmp_seq=4 Destination Host Unreachable
From 192.168.178.73 icmp_seq=5 Destination Host Unreachable
From 192.168.178.73 icmp_seq=6 Destination Host Unreachable
From 192.168.178.73 icmp_seq=7 Destination Host Unreachable
From 192.168.178.73 icmp_seq=8 Destination Host Unreachable
From 192.168.178.73 icmp_seq=9 Destination Host Unreachable
From 192.168.178.73 icmp_seq=10 Destination Host Unreachable
From 192.168.178.73 icmp_seq=11 Destination Host Unreachable
From 192.168.178.73 icmp_seq=12 Destination Host Unreachable
From 192.168.178.73 icmp_seq=13 Destination Host Unreachable
From 192.168.178.73 icmp_seq=14 Destination Host Unreachable
From 192.168.178.73 icmp_seq=15 Destination Host Unreachable
^C
--- 192.168.178.1 ping statistics ---
16 packets transmitted, 0 received, +15 errors, 100% packet loss, time 15080ms
pipe 3
So... somehow the gateway always seems to refuse the server when the bridge is established.
Anyone an idea how to make the gateway accept the network bridge?