[Xorp-users] the static route doesn't appear at first 'xorp_rtrmgr' launch...?
Pavlin Radoslavov
pavlin at ICSI.Berkeley.EDU
Wed Oct 1 12:49:49 PDT 2008
I tried Ubuntu 8.04.1 with 2.6.24-19-server kernel (under VMware)
and I was able to replicate the problem when I used the Ubuntu
(Debian?) xorp package:
apt-get install xorp
Running "apt-cache show xorp" reveals the following:
...
Version: 1.5~cvs.20080128-1
...
In other words, the xorp package in Ubuntu-8.04.1 seems quite old
(it is based on CVS snapshot from January 2008 and that code contains
various FEA-related bugs).
However, when I downloaded the vanilla xorp-1.5.tar.gz source code
and compiled it, I didn't have this problem.
Hence, you should get the vanilla xorp-1.5 release code from
xorp.org and compile+install it yourself.
I believe the next release of Ubuntu will have the updated xorp
package that is based on the xorp-1.5 release.
Pavlin
Hervé Léonard <lherve at interfaceconcept.com> wrote:
> Hello,
>
> I try to configure 2 routers xorp with a config file at launch on a Linux
> 2.6 (Ubuntu 8.04 Hardy Heron) with this command:
> sudo /usr/sbin/xorp_rtrmgr -b /etc/xorp/config.boot
>
> Here is my testbed configuration:
>
> Station1 Router1 Router2
> Station2
> eth0 -----------eth0 eth1 -------------- eth1 eth0 ------------
> eth0
> 192.168.2.2 ---- 192.168.2.1 100.0.0.1 ---- 100.0.0.2 192.168.3.1 ----
> 192.168.3.2
>
> On Router2, for example, I have put this in the config.boot (generated by
> save command):
>
> /*XORP Configuration File, v1.0*/
> protocols {
> static {
> disable: false
> route 192.168.2.0/24 {
> next-hop: 100.0.0.1
> metric: 1
> }
> }
> }
> fea {
> unicast-forwarding4 {
> disable: false
> forwarding-entries {
> retain-on-startup: false
> retain-on-shutdown: false
> }
> }
> }
> interfaces {
> restore-original-config-on-shutdown: false
> interface eth0 {
> description: "Ethernet Interface #1"
> disable: false
> discard: false
> unreachable: false
> management: false
> vif eth0 {
> disable: false
> address 192.168.3.1 {
> prefix-length: 24
> broadcast: 192.168.3.255
> disable: false
> }
> }
> }
> interface eth1 {
> description: "Ethernet Interface #2"
> disable: false
> discard: false
> unreachable: false
> management: false
> vif eth1 {
> disable: false
> address 100.0.0.2 {
> prefix-length: 8
> broadcast: 100.255.255.255
> disable: false
> }
> }
> }
> }
>
> The first time, the 2 interfaces are configured but the static route doesn't
> appear. Then I shutdown xorp et restart xorp_rtrmgr. And after that, I can
> see the static route.
>
> Here my shell log:
>
> ##
> ## Start of xorp_rtrmgr the first time
> ##
>
> labo at labo3000:~$ ifconfig
> eth0 Link encap:Ethernet HWaddr 00:13:21:c9:9d:05
> inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.0
> adr inet6: fe80::213:21ff:fec9:9d05/64 Scope:Lien
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Packets reçus:16 erreurs:0 :0 overruns:0 frame:0
> TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 lg file transmission:1000
> Octets reçus:2725 (2.6 KB) Octets transmis:3811 (3.7 KB)
> Interruption:17
>
> eth1 Link encap:Ethernet HWaddr 00:40:f4:cc:f4:c1
> inet adr:100.0.0.2 Bcast:100.255.255.255 Masque:255.0.0.0
> adr inet6: fe80::240:f4ff:fecc:f4c1/64 Scope:Lien
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
> TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 lg file transmission:1000
> Octets reçus:0 (0.0 B) Octets transmis:3711 (3.6 KB)
> Interruption:19 Adresse de base:0x4000
>
> lo Link encap:Boucle locale
> inet adr:127.0.0.1 Masque:255.0.0.0
> adr inet6: ::1/128 Scope:Hôte
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> Packets reçus:8510 erreurs:0 :0 overruns:0 frame:0
> TX packets:8510 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 lg file transmission:0
> Octets reçus:838919 (819.2 KB) Octets transmis:838919 (819.2 KB)
>
> labo at labo3000:~$ route -n
> Table de routage IP du noyau
> Destination Passerelle Genmask Indic Metric Ref Use
> Iface
> 192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 100.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
> labo at labo3000:~$
>
> #
> # There is no static route
> #
>
> #
> # Then, shutdown and restart of xorp_rtrmgr with same config file and here
> is the result:
> #
>
> labo at labo3000:~$ route -n
> Table de routage IP du noyau
> Destination Passerelle Genmask Indic Metric Ref Use
> Iface
> 192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 192.168.2.0 100.0.0.1 255.255.255.0 UG 1 0 0 eth1
> 100.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
> labo at labo3000:~$
>
> #
> # This time, the static route appears
> #
>
>
> I try with a different config.boot file, with the "interfaces" configuration
> node before the "protocols" configuration node, but the result is the
> same....
>
> Do I use correctly the config.boot file?
> Or is there any solution to have a correct configuration in one shot?
>
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
More information about the Xorp-users
mailing list