|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] xen 3 networking concepts
Hi,
I just started using xen-unstable since I have a machine that will
not work with -stable. I'm having problems with the new network
interfaces and I can't find anything in the xen 3 user guide to
explain what I'm seeing, so I don't know whether I am just missing
something or if there is actually a problem.
I'm on Debian, so here's my /etc/network/interfaces:
auto eth0
iface eth0 inet static
address 192.168.0.20
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.7
Here's what my ifconfig -a looks like immediately after boot but
before xend is started:
eth0 Link encap:Ethernet HWaddr 00:0B:6A:A7:DD:76
inet addr:192.168.0.20 Bcast:192.168.0.255
Mask:255.255.255.0
inet6 addr: fe80::20b:6aff:fea7:dd76/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11200 (10.9 KiB) TX bytes:1511 (1.4 KiB)
Interrupt:11 Base address:0xd400
veth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
(same up to veth7)
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
(same up to vif0.7)
Output of "ip ro":
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.20
default via 192.168.0.7 dev eth0
And of course networking works at this stage.
After starting xend, with the default bridging setup, the following
kernel messages are displayed:
Bridge firewalling registered
device vif0.0 entered promiscuous mode
xen-br0: port 1(vif0.0) entered learning state
device eth0 entered promiscuous mode
xen-br0: port 2(eth0) entered learning state
xen-br0: topology change detected, propogating
xen-br0: port 1(vif0.0) entered forwarding state
xen-br0: topology change detected, propogating
xen-br0: port 2(eth0) entered forwarding state
eth0: Media Link On 100mbps full-duplex
"ifconfig -a" output looks like:
eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12369 (12.0 KiB) TX bytes:2429 (2.3 KiB)
Interrupt:11 Base address:0xd400
veth0 Link encap:Ethernet HWaddr 00:0B:6A:A7:DD:76
inet addr:192.168.0.20 Bcast:192.168.0.255
Mask:255.255.255.255
inet6 addr: fe80::20b:6aff:fea7:dd76/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1835 (1.7 KiB) TX bytes:714 (714.0 b)
veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
(same up to veth7)
vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b)
(same up to vif0.7)
xen-br0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1285 (1.2 KiB) TX bytes:378 (378.0 b)
"ip ro" is now as follows:
192.168.0.0/24 dev veth0 proto kernel scope link src 192.168.0.20
default via 192.168.0.7 dev veth0
and networking does not work.
I can make it work by doing following:
# ip addr add 192.168.0.20 dev xen-br0
# ip ro del 192.168.0.0/24
# ip ro del default
# ip ro add default via 192.168.0.7 dev xen-br0
Is this normal? What is the neatest way to make it so my debian box
is going to have working network connectivity after a reboot and
xend starts?
Cheers,
Andy
signature.asc
Description: Digital signature
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] xen 3 networking concepts,
Andy Smith <=
|
|
|
|
|