Re: [mpls-linux-general] Help needed for setting up mpls
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2003-11-13 00:25:00
|
Hello, I think you will have more success with the version of ldp-portable that is in p4 (http://mpls-linux.sf.net/) See my response to your other questions in line. On Wed, Nov 12, 2003 at 06:42:12PM -0500, Doerfler, Richard wrote: <snip> > Questions: > - Why do I have to use these dummy intefaces? You do not _have_ to use them, but it is the "best common practice" :-) The reason is that the default 'egress mode' is to only be egress for the LSRs 'LSR-ID' (which is the dummy0 address if you have one). If your LSR-ID does not show up in your routing tables as a /32 I don't think 'LSR-ID egress mode' will work. You can change the egress mode to all, or interfaces and that should work. > - I cannot find a ldp neigbor in the mplsd. The program crashes after this > "show ldp neighbour" request. Why so? Bugs. Try the version in p4. > - Once I had a ldp neighbor but after a restart nomore. Changing the order of startup may give you differnt results. > - What do I have to set for mpls labelspace? I tried "0" but I cannot > restart the daemon after that. It works with "1". Hmm. I haven't seen this. Could you file a bug at http://sf.net/projects/mpls-linux? > - How can I figure out if there is labeled traffic in my network? tcpdump or ethereal. See my example on http://mpls-linux.sf.net > - Is there something else which I configured wrong? Probably not. It sounds like you are on the right track. > - Would someone help me please? Yes. :-) > mplsd# sho ldp > LSR-ID: 0a000003 Admin State: ENABLED > Transport Address: 0a000003 > Control Mode: ORDERED Repair Mode: GLOBAL > Propogate Release: TRUE Label Merge: TRUE > Retention Mode: LIBERAL Loop Detection Mode: NONE > TTL-less-domain: FALSE > Local TCP Port: 646 Local UDP Port: 646 > Keep-alive Time: 45 Keep-alive Interval: 15 > Hello Time: 15 Hello Interval: 5 > > mplsd# sho lsr-id > lsr-id: 10.0.0.3 > > mplsd# sho mpls forwarding > Insegments: > > Total 0 > > Outsegments: > > Total 0 > > Cross Connects: > > Total 0 > > mplsd# sho ldp neig > mplsd# sho ldp neighbor Connection closed by foreign host. > > > ospfd# sho ip ospf > OSPF Routing Process, Router ID: 10.0.0.3 > Supports only single TOS (TOS0) routes > This implementation conforms to RFC2328 > RFC1583Compatibility flag is disabled > OpaqueCapability flag is disabled > SPF schedule delay 5 secs, Hold time between two SPFs 10 secs > Refresh timer 10 secs > Number of external LSA 0 > Number of areas attached to this router: 1 > > Area ID: 0.0.0.0 (Backbone) > Number of interfaces in this area: Total: 1, Active: 2 > Number of fully adjacent neighbors in this area: 1 > Area has no authentication > SPF algorithm executed 1 times > Number of LSA 3 > > > ospfd# sho ip ospf route > ============ OSPF network routing table ============ > N 192.168.0.0/24 [10] area: 0.0.0.0 > directly attached to eth0 > > ============ OSPF router routing table ============= > > ============ OSPF external routing table =========== > > ospfd# sho ip ospf interface > lo is up, line protocol is up > OSPF not enabled on this interface > eth0 is up, line protocol is up > Internet Address 192.168.0.7/24, Area 0.0.0.0 > Router ID 10.0.0.3, Network Type BROADCAST, Cost: 10 > Transmit Delay is 1 sec, State Backup, Priority 1 > Designated Router (ID) 10.0.0.1, Interface Address 192.168.0.1 > Backup Designated Router (ID) 10.0.0.3, Interface Address 192.168.0.7 > Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 > Hello due in 00:00:01 > Neighbor Count is 1, Adjacent neighbor count is 1 > eth1 is up, line protocol is up > OSPF not enabled on this interface > dummy0 is up, line protocol is up > OSPF not enabled on this interface > > ospfd# sho ip ospf neighbor > > Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL > 10.0.0.1 1 Full/DR 00:00:31 192.168.0.1 eth0:192.168.0.7 0 0 0 > > zebra# sho router-id > router-id: 10.0.0.3 > > zebra# show ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, > B - BGP, > - selected route, * - FIB route > > C>* 10.0.0.3/32 is directly connected, dummy0 > K * 127.0.0.0/8 is directly connected, lo > C>* 127.0.0.0/8 is directly connected, lo > K>* 169.254.0.0/16 is directly connected, eth1 > O 192.168.0.0/24 [110/10] is directly connected, eth0, 00:02:43 > K * 192.168.0.0/24 is directly connected, eth0 > C>* 192.168.0.0/24 is directly connected, eth0 > K * 192.168.1.0/24 is directly connected, eth1 > C>* 192.168.1.0/24 is directly connected, eth1 > > zebra# show ip route ospf > Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, > B - BGP, > - selected route, * - FIB route > > O 192.168.0.0/24 [110/10] is directly connected, eth0, 00:02:55 > > zebra# show interface > Interface lo > index 1 metric 1 mtu 16436 <UP,LOOPBACK,RUNNING> > inet 127.0.0.1/8 > input packets 814149, bytes 72219458, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 814149, bytes 72219458, dropped 0 > output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0 > collisions 0 > Interface eth0 > index 2 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,ALLMULTI,MULTICAST> > HWaddr: 00:01:02:c9:82:7c > inet 192.168.0.7/24 broadcast 192.168.0.255 > input packets 135855, bytes 18173510, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 111344, bytes 30711791, dropped 0 > output errors 0, aborted 0, carrier 418, fifo 0, heartbeat 0, window 0 > collisions 930 > Interface eth1 > index 3 metric 1 mtu 1500 <UP,BROADCAST,MULTICAST> > HWaddr: 00:b0:d0:41:c1:f0 > inet 192.168.1.8/24 broadcast 192.168.1.255 > input packets 970, bytes 72090, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 15, bytes 900, dropped 0 > output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0 > collisions 0 > Interface dummy0 > index 4 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,NOARP> > inet 10.0.0.3/32 > input packets 0, bytes 0, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 0, bytes 0, dropped 0 > output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0 > collisions 0 > > > > [root@linuxscr3 log]# tail -f mplsd.log > 2003/11/12 17:16:33 informational: MPLS: router-id change 10.0.0.3 > 2003/11/12 17:16:33 informational: MPLS: router-id update 10.0.0.3 > 2003/11/12 17:16:33 informational: MPLS: route add 169.254.0.0/16 > 2003/11/12 17:16:33 informational: MPLS: ifindex 3 > 2003/11/12 17:16:33 informational: MPLS: route add 10.0.0.3/32 > 2003/11/12 17:16:33 informational: MPLS: ifindex 4 > 2003/11/12 17:16:33 informational: MPLS: route add 192.168.0.0/24 > 2003/11/12 17:16:33 informational: MPLS: ifindex 2 > 2003/11/12 17:16:33 informational: MPLS: route add 192.168.1.0/24 > 2003/11/12 17:16:33 informational: MPLS: ifindex 3 > > > [root@linuxscr3 log]# tail -f ospfd.log > 2003/11/12 17:16:35 informational: OSPF: DR-Election[1st]: Backup 192.168.0.7 > 2003/11/12 17:16:35 informational: OSPF: DR-Election[1st]: DR 192.168.0.1 > 2003/11/12 17:16:35 informational: OSPF: DR-Election[2nd]: Backup 192.168.0.7 > 2003/11/12 17:16:35 informational: OSPF: DR-Election[2nd]: DR 192.168.0.1 > 2003/11/12 17:16:35 informational: OSPF: interface 192.168.0.7 join AllDRouters Multicast group. > 2003/11/12 17:16:35 informational: OSPF: DR-Election[1st]: Backup 192.168.0.7 > 2003/11/12 17:16:35 informational: OSPF: DR-Election[1st]: DR 192.168.0.1 > 2003/11/12 17:16:35 warnings: OSPF: Packet[DD]: Initial DBD from Slave, ignoring. > 2003/11/12 17:16:35 warnings: OSPF: Packet[DD]: Negotiation done (Master). > 2003/11/12 17:16:35 informational: OSPF: nsm_change_state(): scheduling new router-LSA origination > > > [root@linuxscr3 log]# tail -f zebra.log > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:33 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:16:40 informational: ZEBRA: zebra message comes from socket [11] > mplsd# sho ldp > LSR-ID: 0a000001 Admin State: ENABLED > Transport Address: 0a000001 > Control Mode: ORDERED Repair Mode: GLOBAL > Propogate Release: TRUE Label Merge: TRUE > Retention Mode: LIBERAL Loop Detection Mode: NONE > TTL-less-domain: FALSE > Local TCP Port: 646 Local UDP Port: 646 > Keep-alive Time: 45 Keep-alive Interval: 15 > Hello Time: 15 Hello Interval: 5 > > mplsd# sho lsr-id > lsr-id: 10.0.0.1 > > mplsd# sho ldp neig > mplsd# sho ldp neighbor Connection closed by foreign host. > > mplsd# sho mpls forwarding > Insegments: > > Total 0 > > Outsegments: > > Total 0 > > Cross Connects: > > Total 0 > > > ospfd# sho ip ospf route > ============ OSPF network routing table ============ > N 192.168.0.0/24 [10] area: 0.0.0.0 > directly attached to eth0 > > ============ OSPF router routing table ============= > > ============ OSPF external routing table =========== > > ospfd# sho ip ospf > OSPF Routing Process, Router ID: 10.0.0.1 > Supports only single TOS (TOS0) routes > This implementation conforms to RFC2328 > RFC1583Compatibility flag is disabled > OpaqueCapability flag is disabled > SPF schedule delay 5 secs, Hold time between two SPFs 10 secs > Refresh timer 10 secs > Number of external LSA 0 > Number of areas attached to this router: 1 > > Area ID: 0.0.0.0 (Backbone) > Number of interfaces in this area: Total: 1, Active: 2 > Number of fully adjacent neighbors in this area: 1 > Area has no authentication > SPF algorithm executed 4 times > Number of LSA 3 > > ospfd# sho ip ospf interface > lo is up, line protocol is up > OSPF not enabled on this interface > eth0 is up, line protocol is up > Internet Address 192.168.0.1/24, Area 0.0.0.0 > Router ID 10.0.0.1, Network Type BROADCAST, Cost: 10 > Transmit Delay is 1 sec, State DR, Priority 1 > Designated Router (ID) 10.0.0.1, Interface Address 192.168.0.1 > Backup Designated Router (ID) 10.0.0.3, Interface Address 192.168.0.7 > Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 > Hello due in 00:00:09 > Neighbor Count is 1, Adjacent neighbor count is 1 > eth1 is up, line protocol is up > OSPF not enabled on this interface > eth2 is up, line protocol is up > OSPF not enabled on this interface > dummy0 is up, line protocol is up > OSPF not enabled on this interface > > ospfd# sho ip ospf neighbor > > Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL > 10.0.0.3 1 Full/Backup 00:00:31 192.168.0.7 eth0:192.168.0.1 0 0 0 > > zebra# sho router-id > router-id: 10.0.0.1 > > zebra# sho ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, > B - BGP, > - selected route, * - FIB route > > C>* 10.0.0.1/32 is directly connected, dummy0 > K * 127.0.0.0/8 is directly connected, lo > C>* 127.0.0.0/8 is directly connected, lo > K>* 169.254.0.0/16 is directly connected, eth2 > O 192.168.0.0/24 [110/10] is directly connected, eth0, 00:06:24 > K * 192.168.0.0/24 is directly connected, eth0 > C>* 192.168.0.0/24 is directly connected, eth0 > K * 192.168.1.0/24 is directly connected, eth1 > C>* 192.168.1.0/24 is directly connected, eth1 > K * 192.168.2.0/24 is directly connected, eth2 > C>* 192.168.2.0/24 is directly connected, eth2 > > zebra# sho ip route ospf > Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, > B - BGP, > - selected route, * - FIB route > > O 192.168.0.0/24 [110/10] is directly connected, eth0, 00:06:41 > > zebra# sho in > Interface lo > index 1 metric 1 mtu 16436 <UP,LOOPBACK,RUNNING> > inet 127.0.0.1/8 > input packets 687964, bytes 46981464, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 687964, bytes 46981464, dropped 0 > output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0 > collisions 0 > Interface eth0 > index 2 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST> > HWaddr: 00:60:08:08:d7:98 > inet 192.168.0.1/24 broadcast 192.168.0.255 > input packets 94244, bytes 18911625, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 48020, bytes 5833430, dropped 0 > output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0 > collisions 669 > Interface eth1 > index 3 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST> > HWaddr: 00:a0:24:95:df:9b > inet 192.168.1.2/24 broadcast 192.168.1.255 > input packets 0, bytes 0, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 64, bytes 3840, dropped 0 > output errors 0, aborted 0, carrier 64, fifo 0, heartbeat 0, window 0 > collisions 0 > Interface eth2 > index 4 metric 1 mtu 1500 <UP,BROADCAST,MULTICAST> > HWaddr: 00:b0:d0:80:9a:8c > inet 192.168.2.3/24 broadcast 192.168.2.255 > input packets 0, bytes 0, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 4, bytes 240, dropped 0 > output errors 0, aborted 0, carrier 4, fifo 0, heartbeat 0, window 0 > collisions 0 > Interface dummy0 > index 5 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,NOARP> > inet 10.0.0.1/32 > input packets 0, bytes 0, dropped 0, multicast packets 0 > input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0 > output packets 0, bytes 0, dropped 0 > output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0 > collisions 0 > > > > [root@LinuxSCR log]# tail -f mplsd.log > 2003/11/12 17:06:30 informational: MPLS: route add 169.254.0.0/16 > 2003/11/12 17:06:30 informational: MPLS: ifindex 4 > 2003/11/12 17:06:30 informational: MPLS: route add 10.0.0.1/32 > 2003/11/12 17:06:30 informational: MPLS: ifindex 5 > 2003/11/12 17:06:30 informational: MPLS: route add 192.168.0.0/24 > 2003/11/12 17:06:30 informational: MPLS: ifindex 2 > 2003/11/12 17:06:30 informational: MPLS: route add 192.168.1.0/24 > 2003/11/12 17:06:30 informational: MPLS: ifindex 3 > 2003/11/12 17:06:30 informational: MPLS: route add 192.168.2.0/24 > 2003/11/12 17:06:30 informational: MPLS: ifindex 4 > > > [root@LinuxSCR log]# tail -f ospfd.log > 2003/11/12 17:14:41 informational: OSPF: DR-Election[1st]: DR 192.168.0.1 > 2003/11/12 17:14:41 warnings: OSPF: Packet[DD]: Negotiation done (Slave). > 2003/11/12 17:14:41 informational: OSPF: nsm_change_state(): scheduling new router-LSA origination > 2003/11/12 17:16:36 informational: OSPF: nsm_change_state(): scheduling new router-LSA origination > 2003/11/12 17:16:36 informational: OSPF: DR-Election[1st]: Backup 0.0.0.0 > 2003/11/12 17:16:36 informational: OSPF: DR-Election[1st]: DR 192.168.0.1 > 2003/11/12 17:16:37 informational: OSPF: DR-Election[1st]: Backup 192.168.0.7 > 2003/11/12 17:16:37 informational: OSPF: DR-Election[1st]: DR 192.168.0.1 > 2003/11/12 17:16:37 warnings: OSPF: Packet[DD]: Negotiation done (Slave). > 2003/11/12 17:16:37 informational: OSPF: nsm_change_state(): scheduling new router-LSA origination > > > [root@LinuxSCR log]# tail -f zebra.log > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:30 informational: ZEBRA: zebra message comes from socket [12] > 2003/11/12 17:06:37 informational: ZEBRA: zebra message comes from socket [11] > -- James R. Leu jl...@mi... |