[Xorp-users] problem with vif

Bruce Simpson bms at incunabulum.net
Thu Jun 4 09:32:01 PDT 2009


Robert Werutsky wrote:
> I'm trying to set up the xorp router with 2 virtual interfaces
> I have added them on my ubuntu and ifconfig returns:
>
> eth1    Link encap:Ethernet  HWaddr 00:16:76:13:55:42 
>           inet addr:172.20.5.37  Bcast:172.20.5.255  Mask:255.255.254.0
>           inet6 addr: fe80::216:76ff:fe13:5542/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:8556 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5859 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:4764766 (4.5 MB)  TX bytes:1366801 (1.3 MB)
>           Base address:0x1000 Memory:93200000-93220000
>
> eth1:0    Link encap:Ethernet  HWaddr 00:16:76:13:55:42 
>           inet addr:172.20.100.100  Bcast:172.20.101.255  
> Mask:255.255.254.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Base address:0x1000 Memory:93200000-93220000
>
> eth1:2    Link encap:Ethernet  HWaddr 00:16:76:13:55:42 
>           inet addr:172.20.130.130  Bcast:172.20.131.255  
> Mask:255.255.254.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Base address:0x1000 Memory:93200000-93220000
>
>

I think you need to declare these as being *addresses*, not *vifs* of eth1.

Here there is only one interface/vif: eth1/eth1. The eth1:0 and eth1:2 
aliases are misnomers, you need to name each statically configured 
address in a single vif { } block.

thanks,
BMS



More information about the Xorp-users mailing list