[mpls-linux-general] zebra+ldp
Status: Beta
Brought to you by:
jleu
|
From: Zahra F. <mar...@ya...> - 2003-08-09 06:34:42
|
hi all,
I have two PCs with linux8.0
A---------------------------B
192.168.2.207 192.168.2.152
I have installed:
1-kernel-2.4.18-27.8.0+mpls1.172.i386.rpm
2-iproute-2.4.7-5+mpls1.172.i386.rpm
3-iptables-1.2.6a-2+mpls1.172.i386.rpm
4-mplsadm2-1.172-2.i386.rpm
5-zebra-0.94-1+ldp0.310.i386.rpm
successfully.
Now I want to setup dynamic LSP via ldp.
At first,I make a clean start:
#ip route flush scope global type unicast
#ip addr flush eth0
and then to create dummy interface on each router, I
do a 'modprobe dummy' from my linux command line and
type
'ip link show' to check that it is loaded.
Then using zebra cli, I assign address 192.168.0.1/32
to com A, 192.168.0.2/32 to com B, at this point I
dont know if these addresses are correct or not?
and using the OSPF cli, I add a network statement, but
I dont know if it is right or not?
Here are my deamon files:
Zebra.conf:
!
! Zebra configuration saved from vty
! 2003/08/04 04:05:50
!
hostname uml-1
password root
enable password root
service advanced-vty
!
interface lo
description Loopback
!
interface eth0
ip address 192.168.2.207/24
!
interface dummy0
ip address 192.168.0.1/32
!
!
line vty
exec-timeout 0 0
!
------------------------------
ospfd.conf:
!
! Zebra configuration saved from vty
! 2003/08/04 04:05:50
!
hostname uml-1
password root
enable password root
service advanced-vty
!
interface lo
description Loopback
!
interface eth0
ip address 192.168.2.207/24
!
interface dummy0
ip address 192.168.0.1/32
!
!
line vty
exec-timeout 0 0
!
-------------------------------
mplsd.conf:
!
! Zebra configuration saved from vty
! 2003/08/04 04:05:50
!
hostname uml-1
password root
enable password root
!
!
mpls ldp
egress connected
!
interface lo
no mpls labelspace
!
interface eth0
mpls labelspace 0
mpls ldp
!
!
interface dummy0
no mpls labelspace
!
line vty
!
-----------------------------
Then I run the following commands on both computers:
# ./zebra -f /etc/zebra.conf -P 1024 -d
# ./ospfd -f /etc/ospfd.conf -P 1025 -d
# ./mplsd -f /etc/mplsd.conf -P 1026
but when I run the last command, this message appears:
rsvpte_vty_init
there is no such command
Error occured during reading below line
mpls labelspace 0
So I try to configure it by hand, telnet to port 1026
and login and execute the below commands:
enable
<password>
conf ter
mpls ldp
tr all
exit
int lo
exit
int eth0
mpls ldp
exit
int dummy0
exit
end
-----------------
on comuter A:
uml-zebra# sho router-id
router-id: 192.168.0.1
uml-mplsd# sho ldp
LSR-ID: c0a80001 Admin State: ENABLED
Transport Address: c0a80001
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
uml-mplsd# sho ldp neighbor
Peer LDP Ident: 192.168.0.2:0; Local LDP Ident:
192.168.0.1:0
TCP connection: n/a
State: discovery; Msgs sent/recv: -/-;
Up time: -
LDP discovery sources:
eth0
uml-mplsd# sho ldp database
no labeling info has been exchanged
uml-mplsd# sho ldp session
no established sessions
Why no session stablished and no labeling info has
been exchanged?
uml-mplsd# sho mpls ftn
FTNs:
Total 0
uml-mplsd# sho mpls forwarding
Insegments:
Total 0
Outsegments:
Total 0
Cross Connects:
Total 0
--------------------
on computer B:
uml-mplsd# sho ldp
LSR-ID: c0a80002 Admin State: ENABLED
Transport Address: c0a80002
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
uml-mplsd# sho ldp neighbor
No discovered neighbors
Why "No discovered neighbors" ?
when I caputre the packets with ethereal, both
cmputres only send Hello message to 224.0.0.2
destination, I'm confused,Please help me.
I'm sorry if the letter is too long, but it's very
important for me to solve the problem and setup
dynamic LSP via ldp, I really need your help.
Thanks alot for your time.
Regards,
Z-Farahmand
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
|