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 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] network-bridge script and the ip route list command

To: xen users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] network-bridge script and the ip route list command
From: "Christopher G. Stach II" <cgs@xxxxxxxxx>
Date: Fri, 29 Dec 2006 17:52:06 -0200
Delivery-date: Fri, 29 Dec 2006 11:52:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <6d06ce20612291142t7657d6b0sdcfa0b36154fe867@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: <200612272354.47923.saruman@xxxxxxxxxxxxxxxxx> <6d06ce20612291142t7657d6b0sdcfa0b36154fe867@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20061219)
Jerry Amundson wrote:
> On 12/28/06, pete hilton <saruman@xxxxxxxxxxxxxxxxx> wrote:
>> Hi there,
>>                I have got xen 3.0.3 (built from source download from
>> xensource) running on my linux box (Slackware 11 distribution).
>>
>> When the network-bridge script runs, it first of all issues "ip route
>> list"
>> and then parses the "default" line to pick up the last word.
>>
>> The ip command in my distribution gives the following:-
>>
>> default via 192.168.1.1 dev eth0  metric 1
>>
>> which naturally results in a vifnum of 1 instead of 0.
>>
>> Is this a bug in the script or is my "ip" command different from the
>> norm?
> 
> Your "ip" command is different, at least from my Redhat and Fedora
> distros...
> default via 192.168.1.1 dev eth0
> 
> Though I would think no distro should implement a metric on a default
> route, you could file a xen bug on the script to use the word after
> "dev", not the last one...
> 
> jerry
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

If you have two default routes with one over a higher cost path, why
wouldn't you want a higher metric?

-- 
Christopher G. Stach II


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users