Skip to contentSkip to conversation

2 nics

DISCUSSION Michael Stoehrel 2 participants 2 messages Mar 23, 2005

lore
Share & tools
lore
#0 lore raw

Hi all

I am running xen (2.0.5) with debian sarge.
Sources compiled (2.6.10) on a via epia pd-10000 with 2 nics.

eth0: dhcp
eth1: static

before xend started:
--------------------

outgoing trafic OK (through eth0)
incoming trafic on both nics ok

eth0 Link encap:Ethernet HWaddr 00:40:63:DB:55:18
inet addr:192.168.253.55 Bcast:192.168.253.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:2664 (2.6 KiB) TX bytes:1562 (1.5 KiB) Interrupt:9 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:63:DB:55:4A
inet addr:192.168.254.5 Bcast:192.168.254.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:126 (126.0 b) Interrupt:11 Base address:0xe400

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:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:104 (104.0 b) TX bytes:104 (104.0 b)

after xend started:
-------------------

outgoing traffic dead
incoming traffic on eth0 dead
incoming trafic on eth1 ok
eth0 Link encap:Ethernet HWaddr 00:40:63:DB:55:18
inet addr:192.168.253.55 Bcast:192.168.253.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:2990 (2.9 KiB) TX bytes:1562 (1.5 KiB) Interrupt:9 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:63:DB:55:4A
inet addr:192.168.254.5 Bcast:192.168.254.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:252 (252.0 b) Interrupt:11 Base address:0xe400

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:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:208 (208.0 b) TX bytes:208 (208.0 b)

xen-br0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.253.55 Bcast:192.168.253.255 Mask:255.255.255.255 UP BROADCAST RUNNING 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)

because bridging connects to eth0 ip traffic on a started virtual machine is dead

if I disable 1 nic the BIOS, all is incomming and outgoing trafic is ok and the virtual machine too.

-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click

#1 lore raw
Quoted 80 lines · Michael Stoehrel

Hi all

I am running xen (2.0.5) with debian sarge.
Sources compiled (2.6.10) on a via epia pd-10000 with 2 nics.

eth0: dhcp
eth1: static

before xend started:
--------------------

outgoing trafic OK (through eth0)
incoming trafic on both nics ok

eth0 Link encap:Ethernet HWaddr 00:40:63:DB:55:18
inet addr:192.168.253.55 Bcast:192.168.253.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:2664 (2.6 KiB) TX bytes:1562 (1.5 KiB) Interrupt:9 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:63:DB:55:4A
inet addr:192.168.254.5 Bcast:192.168.254.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:126 (126.0 b) Interrupt:11 Base address:0xe400

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:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:104 (104.0 b) TX bytes:104 (104.0 b)

after xend started:
-------------------

outgoing traffic dead
incoming traffic on eth0 dead
incoming trafic on eth1 ok
eth0 Link encap:Ethernet HWaddr 00:40:63:DB:55:18
inet addr:192.168.253.55 Bcast:192.168.253.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:2990 (2.9 KiB) TX bytes:1562 (1.5 KiB) Interrupt:9 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:63:DB:55:4A
inet addr:192.168.254.5 Bcast:192.168.254.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:252 (252.0 b) Interrupt:11 Base address:0xe400

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:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:208 (208.0 b) TX bytes:208 (208.0 b)

xen-br0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.253.55 Bcast:192.168.253.255 Mask:255.255.255.255 UP BROADCAST RUNNING 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)

Quoted 4 lines

because bridging connects to eth0 ip traffic on a started virtual machine is dead

if I disable 1 nic the BIOS, all is incomming and outgoing trafic is ok and the virtual machine too.

You can force xen to set up the bridge onto eth1 instead of eth0... just edit /etc/xen/scripts/network and replace

netdev=${netdev:-eth1}

with

netdev=${netdev:-eth0}

-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click