[Xorp-users] Xorp, pimsm and ethertap
Mike Horn
mhorn@vyatta.com
Fri, 24 Feb 2006 14:49:29 -0800 (PST)
Hi Calum,
Usually this is due to a the next-hop not being resolvable, can you send the output for "route -n". If your tunnel network is not showing up properly as a connected route this could create an issue. Can you send the "show interfaces" output from configuration-mode on xorpsh?
Here is a copy of a local system I have running BGP peering to a Cisco router:
rl@DUT-1> show bgp routes
Status Codes: * valid route, > best route
Origin Codes: i IGP, e EGP, ? incomplete
Prefix Nexthop Peer AS Path
------ ------- ---- -------
*> 10.0.0.0/30 10.0.0.75 192.168.2.33 75 ?
*> 10.0.0.4/30 10.0.0.75 192.168.2.33 75 ?
rl@DUT-1>
~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.4 10.0.0.75 255.255.255.252 UG 0 0 0 eth0
10.0.0.0 10.0.0.75 255.255.255.252 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
~ #
-mike
----- Original Message -----
From: Calum <caluml@gmail.com>
To: Mike Horn <mhorn@vyatta.com>
Cc: xorp-users@xorp.org
Sent: Friday, February 24, 2006 3:18:12 PM GMT-0700
Subject: Re: [Xorp-users] Xorp, pimsm and ethertap
> show bgp peers detail
Peer 1: local 10.0.0.122/179 remote 10.0.0.121/179
Peer ID: 10.0.0.1
Peer State: ESTABLISHED
Admin State: START
Negotiated BGP Version: 4
Peer AS Number: 1
Updates Received: 8, Updates Sent: 0
Messages Received: 73, Messages Sent: 74
Time since last received update: 129 seconds
Number of transitions to ESTABLISHED: 2
Time since last entering ESTABLISHED state: 1870 seconds
Retry Interval: 120 seconds
Hold Time: 90 seconds, Keep Alive Time: 30 seconds
Configured Hold Time: 90 seconds, Configured Keep Alive Time: 30 seconds
Minimum AS Origination Interval: 0 seconds
Minimum Route Advertisement Interval: 0 seconds
And yes, I mean if the process that opens the tun/tap is killed off,
or restarts, the interface will disappear.
> show bgp routes
Status Codes: * valid route, > best route
Origin Codes: i IGP, e EGP, ? incomplete
Prefix Nexthop Peer AS Path
------ ------- ---- -------
* 10.0.0.0/30 10.0.0.121 10.0.0.1 1 i
* 10.0.0.4/30 10.0.0.121 10.0.0.1 1 i
* 10.0.0.8/30 10.0.0.121 10.0.0.1 1 i
* 10.0.0.20/30 10.0.0.121 10.0.0.1 1 i
....
snip
I just don't understand why those routes aren't appearing in route -n
at a root shell. :/
C
On 2/24/06, Mike Horn <mhorn@vyatta.com> wrote:
> Hi Calum,
>
> It might look a bit strange, but yes your "local-ip" and "next-hop" need to be the same address for this configuration to work. The only reference to the remote IP address is "peer <IP>".
>
> Can you send the output from "show bgp peers detail", the "show bgp peers" command just shows you what is configured, not whether the session is actually established. Look for the "Peer State:" line.
>
> When you ask "How does xorp handle an interface disappearing, and coming back, out of interest?", do you mean the link state is changing, or that the interface itself is being deleted and re-added?
>
>
> -mike
>
> ----- Original Message -----
> From: Calum <caluml@gmail.com>
> To: Mike Horn <mhorn@vyatta.com>
> Cc: xorp-users@xorp.org
> Sent: Friday, February 24, 2006 2:52:49 PM GMT-0700
> Subject: Re: [Xorp-users] Xorp, pimsm and ethertap
>
> Hello Mike,
>
> I'm not sure about changing next-hop.
> That leaves my config looking like:
> protocols {
> bgp {
> bgp-id: 10.0.0.122 <-------- this is the local IP, right?
> local-as: 4
> peer "10.0.0.121" { <-------- This is the remote IP?
> as: 1
> peer-port: 179
> local-port: 179
> holdtime: 90
> delay-open-time: 0
> client: false
> confederation-member: false
> disable: false
> ipv4-unicast: true
> ipv4-multicast: false
> ipv6-unicast: false
> ipv6-multicast: false
> next-hop: 10.0.0.122 <----- This should be the remote IP?
> local-ip: "10.0.0.122" <------ This is the local IP ?
> }
> }
>
> which looks odd with the same next-hop and local-ip. To me, anyway.
>
> My current setup is
>
> local = 10.0.0.122 (running xorp)
> ----tapinterface----
> remote = 10.0.0.121 (running quagga bgpd)
>
> I have an established BGP session up as shown on 10.0.0.121
> quagga: # sh ip bgp neighbors 10.0.0.122
> BGP neighbor is 10.0.0.122, remote AS 4, local AS 1, external link
> BGP version 4, remote router ID 10.0.0.122
> BGP state = Established, up for 00:00:48
> Showing the advertised routes on that hosts shows the routes.
> xorp# show bgp routes on the xorp box shows them all received.
> They're just not making it into the kernel on 10.0.0.122
>
> xorp-box > show bgp peers
> Peer 1: local 10.0.0.122/179 remote 10.0.0.121/179
>
>
> xorp-box # ifconfig taphush
> taphush Link encap:Ethernet HWaddr CE:BC:C7:A6:C4:ED
> inet addr:10.0.0.122 Bcast:10.0.0.123 Mask:255.255.255.252
>
>
> How does xorp handle an interface disappearing, and coming back, out
> of interest?
>
--
http://zapee.com - Linux virtual servers, IPv4+6 web hosting
A80F D3A0 0EFA 23FE@wwwkeys.eu.pgp.net
_______________________________________________
Xorp-users mailing list
Xorp-users@xorp.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users