WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-users

[Top] [All Lists]

RE: [Xen-users] veth0 is from netback and vifu.0 is from thebridge-utils

To: Anthony.Golia@xxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] veth0 is from netback and vifu.0 is from thebridge-utils?
From: John Wilson <j.wilson@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 2005年9月14日 20:30:36 +0100
Cc: ian.pratt@xxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2005年9月15日 01:53:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.200509141108090.10090@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D32DD19@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.58.200509141108090.10090@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) 4.0-cvs
Yo,
I had big problems with this myself, but now as far as I can tell, veth0
(renamed to eth0 in the v recent releases) is the virtual nic for dom0
which corresponds to the virtual eth0 nics in the domU's (the physical nic
itself has been renamed to peth0).
The vifU.N's are the dom0 links to the virtual nics ethN in domU, and
aren't to be treated as proper network interfaces in thier own right. If
you assign an IP address to, say, vif1.0 and attempt to communicate with
eth0 in dom1, you can ping between them and such, but ssh nor vnc wont
work, complaining for the most part about bad checksums.
The vif0.0 interface in dom0 is linked to dom0's virtual nic, veth0 (or
eth0 in the recent builds).
Now... The correct way to interface the cards and provide connectivity
between the domains and the outside world is to attach all the vifU.N
interfaces to a bridge in dom0 (normally xen-br0) together with the
physical nic, eth0 (or peth0 recently). IP addresses are then assigned to
the eth0 links and inter-domain sshing, vncing and communication with the
outside world all result.
Here's a badly drawn diagram to illustrate...
 ____________________________ _____________________
|dom0 | |dom1 |
| _______ | | ________ |
| |eth0 | | | |eth0 | |
| |IP_____| +--------------+-------+------|IP______| |
| | | | | |
| ____|_______|_____________ | | |
|| ___|___ ___|___ _______ || | |
|||vif0.0 |vif1.0 |peth0 | || | |
|||_______|_______|_______| || | |
||xen-br0_____________|_____|| | |
|_____________________|______| |_____________________|
 |
______________________|_____________________>>LAN>>>
 | |
I've used eth0 as the virtual nics and peth0 as the physical nic.
IP has been used to denote devices with an IP address. All the interfaces
there are automatically generated by Xen, and I used ifconfig to
statically set IP addresses (because I was having trouble with our lab
DHCP server, although it was assigning addresses to the correct cards),
and brctl addif xen-br0 vif1.0 etc. to add the vifs to the bridge, because
for some reason Xen wasn't...
Well thats my contribution for this evening.
John
P.S. Official documentation/Howto/wiki is a little on the sparse side for
this Ian.
Quoting Anthony.Golia@xxxxxxxxxxxxxxxxx:
On Thu, 8 Sep 2005, Ian Pratt wrote:
> Hi. what creates veth0 and vifu.0, when? what's the
> underlying architecture behind them? Just trying to
> understand the internals.
netback/loopback.c creates them.
It's effectively a point to point link, allowing domain 0 to connect on
to the bridge in the same manner that other domains do. (before, packets
to domain 0 were short-cutted and came off the bridge directly, which
could lead to traffic from other domains being stalled if a lot of
traffic was destined to user space in dom0.
thx. what's the diff betwn the two (veth0 and vifu.0) ?
Best,
Ian
)
Cheers,
Anthony
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] LAN configuration? , Alan Murrell
Next by Date: [Xen-users] Windows on Xen+VT , John Wilson
Previous by Thread: RE: [Xen-users] veth0 is from netback and vifu.0 is from thebridge-utils? , Anthony . Golia
Next by Thread: Re: [Xen-users] veth0 is from netback and vifu.0 is from thebridge-utils? , Ramiro Brito Willmersdorf
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /