Thread: [mpls-linux-general] A question about quit( )
Status: Beta
Brought to you by:
jleu
From: <zjh...@so...> - 2002-03-15 13:59:14
|
hi,Jim I have read your code about the command func :quit( ).In linux you use the system API "exit( )"to finish almost all the work. They work well in Linux. I have also tried your code in vxworks .Using the quit command ofent make program down. So I want to write a quit( ) but not use the "exit( )",do everything by myself.Can you give me some advice:such as the sequence to close"session,interface,adjacency,global "etc. I am busy in try to port your code to vxworks.Once I finish it ,I will share my idea and my experience and my code with all in the mailing list.I will try my best. All thanks!! Your sincerely :zhang jianhui |
From: Linder E. <li...@en...> - 2002-03-17 16:17:59
|
Hi, I have put up a very simple network with 2 pc . After doing all the configuration stuff, I try to ping B from A and there I get something strange: tha ARP request are sent but keep unanswered Tcpdump on the emitting eth gives: 17:26:34.873599 arp who-has 137.194.214.142 tell 137.194.214.141 and it'is all. I don't know what to do , or start looking where something has got wrong. I hope someone can help me Erik Linder Here is my config: --------- --------- | A | | B | --------- --------- |eth1 |eth1 |.141 |.142 ----------------------------------- A ifconfig eth1 137.194.214.141 netmask 255.255.255.192 up B ifconfig eth1 137.194.214.142 netmask 255.255.255.192 up Sur A: mplsadm2 -A -O gen:16:eth1:ipv4:137.194.214.142 iptables -A OUTPUT -d 137.194.214.142/32 -j MPLS --set-key KEY1 mplsadm2 -A -I gen:17:0 Ou KEY1 est le resultat renvoye par la commande precedante 'mplsadm2' Sur B: mplsadm2 -A -O gen:17:eth1:ipv4:137.194.214.141 iptables -A OUTPUT -d 137.194.214.141/32 -j MPLS --set-key KEY2 mplsadm2 -A -I gen:16:0 Ou KEY1 est le resultat renvoye par la commande precedante 'mplsadm2' Sur les 2 host: mplsadm2 -L eth1:0 PS: I tried using route instead of iptables and I got the same result |
From: James R. L. <jl...@mi...> - 2002-03-18 16:45:19
|
This maynot be the problem but you also need to set the 'labelspace' on the incoming interfaces: mplsadm2 -L eth1:0 Another thing you can try is to turn on mpls kernel debugging: mplsadm2 -d Look at the ouptut from 'dmesg' or in /var/log/messages. Jim On Sun, Mar 17, 2002 at 05:15:47PM +0100, Linder Erik wrote: > Hi, > I have put up a very simple network with 2 pc . After doing all the > configuration stuff, I try to ping B from A and there I get something > strange: tha ARP request are sent but keep unanswered > Tcpdump on the emitting eth gives: > 17:26:34.873599 arp who-has 137.194.214.142 tell 137.194.214.141 > > and it'is all. I don't know what to do , or start looking where > something has got wrong. > > I hope someone can help me > Erik Linder > > Here is my config: > > --------- --------- > | A | | B | > --------- --------- > |eth1 |eth1 > |.141 |.142 > ----------------------------------- > A > ifconfig eth1 137.194.214.141 netmask 255.255.255.192 up > > B > ifconfig eth1 137.194.214.142 netmask 255.255.255.192 up > > Sur A: > mplsadm2 -A -O gen:16:eth1:ipv4:137.194.214.142 > iptables -A OUTPUT -d 137.194.214.142/32 -j MPLS --set-key KEY1 > mplsadm2 -A -I gen:17:0 > > Ou KEY1 est le resultat renvoye par la commande precedante 'mplsadm2' > > > Sur B: > mplsadm2 -A -O gen:17:eth1:ipv4:137.194.214.141 > iptables -A OUTPUT -d 137.194.214.141/32 -j MPLS --set-key KEY2 > mplsadm2 -A -I gen:16:0 > > Ou KEY1 est le resultat renvoye par la commande precedante > 'mplsadm2' > > Sur les 2 host: > mplsadm2 -L eth1:0 > > > PS: I tried using route instead of iptables and I got the same result > > > > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |
From: James R. L. <jl...@mi...> - 2002-03-18 22:01:36
|
Hello, See my response in-line. On Fri, Mar 15, 2002 at 09:59:03PM +0800, zjh...@so... wrote: > hi,Jim > I have read your code about the command func :quit( ).In linux you use the system API "exit( )"to finish almost all the work. They work well in Linux. > > I have also tried your code in vxworks .Using the quit command ofent make program down. > So I want to write a quit( ) but not use the "exit( )",do everything by myself.Can you > give me some advice:such as the sequence to close"session,interface,adjacency,global "etc. Removing the entities will tear down the sessions/adjacecncies. Then removing the global will cleanup the porting layer. > I am busy in try to port your code to vxworks.Once I finish it ,I will share my idea and my > experience and my code with all in the mailing list.I will try my best. Excellent! I have just starting working on ldp-portabel again, so hopefully I can help you fix any LDP related bugs that you find. Jim > > All thanks!! > > Your sincerely :zhang jianhui > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |