Skip to contentSkip to conversation

VIF setup

DISCUSSION Kero-Chan 10 participants 11 messages Jan 14, 2005 – Jan 18, 2005

lore
Share & tools
lore

Kero-Chan

author
#0 lore raw

Please look at this does this look OK?

guest# ifconfig -a
eth0 Link encap:Ethernet HWaddr AA:00:00:0C:0E:D9
inet addr:172.16.100.1 Bcast:172.16.255.255 Mask:255.255.0.0 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

domain0# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:54:08:3E:C7

          inet addr:w.x.y.z  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:131747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12223 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:15796392 (15.0 Mb)  TX bytes:1114824 (1.0 Mb)
          Interrupt:9 Base address:0xd000 

vif10.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3345 errors:0 dropped:34 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:200784 (196.0 Kb)

xen-br0 Link encap:Ethernet HWaddr 00:08:54:08:3E:C7

          inet addr:w.x.y.z  Bcast:255.255.255.255  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:131569 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:13934617 (13.2 Mb)  TX bytes:1100770 (1.0 Mb)

The vif interface in domain0 is not initialised correctly, right?

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#1 lore raw
Quoted 1 line

Please look at this does this look OK?

It's OK. Because you're using an L2 ethernet bridge, it's not necessary to set up any address details for the vif in domain0.

Does it work?

HTH,
Mark

Quoted 37 lines

guest# ifconfig -a
eth0 Link encap:Ethernet HWaddr AA:00:00:0C:0E:D9
inet addr:172.16.100.1 Bcast:172.16.255.255 Mask:255.255.0.0 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

domain0# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:54:08:3E:C7

          inet addr:w.x.y.z  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:131747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12223 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15796392 (15.0 Mb)  TX bytes:1114824 (1.0 Mb)
          Interrupt:9 Base address:0xd000

vif10.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3345 errors:0 dropped:34 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:200784 (196.0 Kb)

xen-br0 Link encap:Ethernet HWaddr 00:08:54:08:3E:C7

          inet addr:w.x.y.z  Bcast:255.255.255.255  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:131569 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13934617 (13.2 Mb)  TX bytes:1100770 (1.0 Mb)

The vif interface in domain0 is not initialised correctly, right?

Quoted 8 lines

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#2 lore raw
Quoted 1 line · Mark Williamson

It's OK. Because you're using an L2 ethernet bridge, it's not necessary to set up any address details for the vif in domain0.

I doubt it does, since the IP address is still bound to both xen-br0 and eth0; this will break things. That's something that really needs to be fixed in the network config script, because networking won't work right until that's corrected.

Signature · 8 lines
Derrik Pates
[email protected]


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
#3 lore raw
Quoted 4 lines
Quoted 1 line · Mark Williamson

It's OK. Because you're using an L2 ethernet bridge, it's not necessary to set up any address details for the vif in domain0.

I doubt it does, since the IP address is still bound to both xen-br0 and eth0; this will break things. That's something that really needs to be fixed in the network config script, because networking won't work right until that's corrected.

I would agree here. In my experience you must clear eth0 first. something like

	/sbin/ifconfig eth0 0.0.0.0 up

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#4 lore raw
Quoted 1 line · Adam Sulmicki
       /sbin/ifconfig eth0 0.0.0.0 up

Am I the only person who sees this as a tad odd? I can't escape thinking about a real bridge. Seems to me each eth or vif you add to a bridge should retain its IP and the bridge, basically being a device that does mac-layer routing, has no IP.

I guess this is an artifact of how it is implemented?

ron

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#5 lore raw
Quoted 1 line · Ronald G. Minnich

Am I the only person who sees this as a tad odd? I can't escape thinking about a real bridge. Seems to me each eth or vif you add to a bridge should retain its IP and the bridge, basically being a device that does mac-layer routing, has no IP.

No, because the IP(s) assigned to a device cause the device to only accept packets destinde for it; when the IP is 0.0.0.0, the interface goes into promiscuous mode, and so it accepts all packets, whether destined for it or not. Then, the bridge device enslaves all the interfaces, and transports the packets among the participant interfaces.

Quoted 1 line

I guess this is an artifact of how it is implemented?

You could say that.

Signature · 8 lines
Derrik Pates
[email protected]


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
#6 lore raw
Quoted 6 lines · Derrik Pates
Quoted 1 line · Ronald G. Minnich

Am I the only person who sees this as a tad odd? I can't escape thinking about a real bridge. Seems to me each eth or vif you add to a bridge should retain its IP and the bridge, basically being a device that does mac-layer routing, has no IP.

No, because the IP(s) assigned to a device cause the device to only accept packets destinde for it; when the IP is 0.0.0.0, the interface goes into promiscuous mode, and so it accepts all packets, whether destined for it or not. Then, the bridge device enslaves all the interfaces, and transports the packets among the participant interfaces.

Isn't promisciuous mode L2 based? If you do ifconfig eth0 promisc, it'll pass all packets, even those having foreign destination MAC address, to upper layers, AFAIK.

-jkt

Signature · 8 lines
cd /local/pub && more beer > /dev/mouth



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
#7 lore raw
In reply to Ronald G. Minnich
Quoted 10 lines · Ronald G. Minnich
Quoted 1 line · Adam Sulmicki
       /sbin/ifconfig eth0 0.0.0.0 up

Am I the only person who sees this as a tad odd? I can't escape thinking about a real bridge. Seems to me each eth or vif you add to a bridge should retain its IP and the bridge, basically being a device that does mac-layer routing, has no IP.

I guess this is an artifact of how it is implemented?

In my xen-unstable configuration, neither xen-br0 nor vif have any IP addresses. BTW, xen-br0 is linked to eth1, which is also up but with no configured IP.

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#8 lore raw
In reply to Ronald G. Minnich
Quoted 7 lines · Ronald G. Minnich
Quoted 1 line · Adam Sulmicki
       /sbin/ifconfig eth0 0.0.0.0 up

Am I the only person who sees this as a tad odd? I can't escape thinking about a real bridge. Seems to me each eth or vif you add to a bridge should retain its IP and the bridge, basically being a device that does mac-layer routing, has no IP.

Actually, if you think about it, it makes complete sense. I really can't imagine a switch where each port has it's own IP address. The switch itself having an IP address on the other hand is perfectly reasonable, as in the case of a managed switch.

Quoted 1 line

I guess this is an artifact of how it is implemented?

I think it'd be wierd if it worked any other way, taking the above into account.

J

Signature · 8 lines
Jody Belka
knew (at) pimb (dot) org


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
#9 lore raw
Quoted 2 lines · Jody Belka

Actually, if you think about it, it makes complete sense. I really can't imagine a switch where each port has it's own IP address. The switch itself

Yes, exactly. Switching is at a level below IP - indeed, switches work fine with non-IP packets.

Quoted 2 lines

having an IP address on the other hand is perfectly reasonable, as in the case of a managed switch.

Which is, from a protocol point of view, not an address that's actually "the switch" - it's the address of this entirely separate device that happens to be in the same box of hardware with the switch and has some backside connection to the switch that's entirely separate from the network. That the switch and the management unit may share some of the same hardware, however intimately, is just an implementation detail. :-)

Signature · 11 lines
The reason [limited term of copyright is] important is this:
Publishers are in the business of expanding capital.
The writers who supply them are in the business of
expanding civilization itself.  -- John Bloom



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
#10 lore raw
In reply to Jody Belka
Quoted 15 lines · Jody Belka
Quoted 5 lines · Ronald G. Minnich
Quoted 1 line · Adam Sulmicki
      /sbin/ifconfig eth0 0.0.0.0 up

Am I the only person who sees this as a tad odd? I can't escape thinking about a real bridge. Seems to me each eth or vif you add to a bridge should retain its IP and the bridge, basically being a device that does mac-layer routing, has no IP.

Actually, if you think about it, it makes complete sense. I really can't imagine a switch where each port has it's own IP address. The switch itself having an IP address on the other hand is perfectly reasonable, as in the case of a managed switch.

Quoted 8 lines
Quoted 1 line

I guess this is an artifact of how it is implemented?

I think it'd be wierd if it worked any other way, taking the above into account.

J

Check the linux bridge howto at

http://bridge.sourceforge.net/howto.html

This site also has pointers to other info.
There's really nothing special about the xen-br0 bridge, it's just a normal linux bridge.

Mike

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt