From hsjeon88 at etri.re.kr Sat Aug 2 05:42:08 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Sat, 2 Aug 2014 12:42:08 +0000 Subject: [Xorp-users] Help In-Reply-To: References: <3E2A969AE41B5643ACAFCD3B7B411E0671C69409@SMTP3.etri.info> <53D27BD8.7040402@candelatech.com>, Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725AB6E7@SMTP3.etri.info> I have another question. I want to make protocol level directory. and role of that is that it receives cli command and delivers to my developing sw such as getting or setting parameters. I don't use interface structure either and just only use cli interface. Q1. In this case, what protocol is almost like mine ? For example, when protocol is starting, it calls XrlStdRouter, XrlPortManager, XrlRedistManager and so on. Q2. When tools delectory is called ? What is difference between this and XIPC ? Q3 I made simple protocol source. I changed SConscript & SConstrcut for adding my source. In my adding directory clickinf, I also made SConscript. But I can't see anything in obj/. Clickinf directory itself is not created. I added my clickinf srcs and SConscript and SConstruct of XORP. Could you givr some directions ? Littletree. ________________________________ ?? ?? : "Avinash Sridharan" ?? ?? : 2014-07-26 02:08:59 ( +09:00 ) ?? ?? : Ben Greear ?? : ??? , xorp-users at xorp.org ?? : Re: [Xorp-users] Help I would suggest, take a look at how the "show interface" command works. The template for the command can be found under $XORP_SRC/etc/templates/fea.cmd . It effectively calls an executable fea_show_interfaces. The code for this binary is sitting under $XORP_SRC/fea/tools/show_interface.cc. You can see the XRL interface being implemented in this binary, and replicate the target to register as a new interface mirror with FEA. To get incremental updates on existing interfaces (say link up/down event), I guess you can build on this and see how the events are sent to RIB. I am guessing RIB uses a similar interface mirror XRL interface. Hope that helps, Avinash On Fri, Jul 25, 2014 at 8:46 AM, Ben Greear > wrote: On 07/24/2014 02:31 AM, ??? wrote: > I am a novice about xorp. > How can I use test directory ? There are no SConstruct. > I want to make a test according to a function such as cli, libfeaclient, etc. > Now, I want to use CLI and interface structure of fea and give interface information to our sw block. > I don't want to use any routing blocks including fib, lib. > > Could you give me some directions ? Maybe see how the click stuff is written. I'm not sure click actually works, but I think it will be similar to what you are trying to do. If you end up writing any patches that help towards this goal, please use git-format and git-send-mail to post them to the list. I hope to have time to go through the patch backlog someday soon. And, I need to get the wiki documentation system hosted on my own machine since the guys that were hosting it seem to have fallen off the internet! Thanks, Ben -- Ben Greear > Candela Technologies Inc http://www.candelatech.com _______________________________________________ Xorp-users mailing list Xorp-users at xorp.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140802/d4d87e4f/attachment.html From hsjeon88 at etri.re.kr Mon Aug 4 16:15:03 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Mon, 4 Aug 2014 23:15:03 +0000 Subject: [Xorp-users] Help In-Reply-To: <3E2A969AE41B5643ACAFCD3B7B411E06725AB6E7@SMTP3.etri.info> References: <3E2A969AE41B5643ACAFCD3B7B411E0671C69409@SMTP3.etri.info> <53D27BD8.7040402@candelatech.com>, , <3E2A969AE41B5643ACAFCD3B7B411E06725AB6E7@SMTP3.etri.info> Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725AE98B@SMTP3.etri.info> Q4: I found that if I deleted bgp object directory, it was not created again. How can I see the new created directory ??? My adding directory is not also added to the existing directory and deleting the existing directory such as bgp, is not also doesn't create new directory automatically. Littletree ________________________________ ?? ?? : "???" ?? ?? : 2014-08-02 21:42:08 ( +09:00 ) ?? ?? : Avinash Sridharan , Ben Greear ?? : xorp-users at xorp.org ?? : RE: [Xorp-users] Help I have another question. I want to make protocol level directory. and role of that is that it receives cli command and delivers to my developing sw such as getting or setting parameters. I don't use interface structure either and just only use cli interface. Q1. In this case, what protocol is almost like mine ? For example, when protocol is starting, it calls XrlStdRouter, XrlPortManager, XrlRedistManager and so on. Q2. When tools delectory is called ? What is difference between this and XIPC ? Q3 I made simple protocol source. I changed SConscript & SConstrcut for adding my source. In my adding directory clickinf, I also made SConscript. But I can't see anything in obj/. Clickinf directory itself is not created. I added my clickinf srcs and SConscript and SConstruct of XORP. Could you givr some directions ? Littletree. ________________________________ ?? ?? : "Avinash Sridharan" ?? ?? : 2014-07-26 02:08:59 ( +09:00 ) ?? ?? : Ben Greear ?? : ??? , xorp-users at xorp.org ?? : Re: [Xorp-users] Help I would suggest, take a look at how the "show interface" command works. The template for the command can be found under $XORP_SRC/etc/templates/fea.cmd . It effectively calls an executable fea_show_interfaces. The code for this binary is sitting under $XORP_SRC/fea/tools/show_interface.cc. You can see the XRL interface being implemented in this binary, and replicate the target to register as a new interface mirror with FEA. To get incremental updates on existing interfaces (say link up/down event), I guess you can build on this and see how the events are sent to RIB. I am guessing RIB uses a similar interface mirror XRL interface. Hope that helps, Avinash On Fri, Jul 25, 2014 at 8:46 AM, Ben Greear > wrote: On 07/24/2014 02:31 AM, ??? wrote: > I am a novice about xorp. > How can I use test directory ? There are no SConstruct. > I want to make a test according to a function such as cli, libfeaclient, etc. > Now, I want to use CLI and interface structure of fea and give interface information to our sw block. > I don't want to use any routing blocks including fib, lib. > > Could you give me some directions ? Maybe see how the click stuff is written. I'm not sure click actually works, but I think it will be similar to what you are trying to do. If you end up writing any patches that help towards this goal, please use git-format and git-send-mail to post them to the list. I hope to have time to go through the patch backlog someday soon. And, I need to get the wiki documentation system hosted on my own machine since the guys that were hosting it seem to have fallen off the internet! Thanks, Ben -- Ben Greear > Candela Technologies Inc http://www.candelatech.com _______________________________________________ Xorp-users mailing list Xorp-users at xorp.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140804/8c63b00c/attachment.html From xuan.liu at mail.umkc.edu Tue Aug 5 08:32:19 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Tue, 5 Aug 2014 15:32:19 +0000 Subject: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP Message-ID: <1407252739077.12786@mail.umkc.edu> Hello, I have came across this problem when I have configured a simple five-node network running OSPF protocol. The topology looks like 1 --------------- 2 / \ / \ / \ / | 4 \ / 3 | \ / | \ \ / / \ \ / / \------ 5 -----/ The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - 192.168.1.2 rt2:eth4 -- rt3:eth3: 192.168.6.1 - 192.168.6.2 rt3:eth2 -- rt5:eth2: 192.168.10.1 - 192.168.10.2 rt5:eth1 -- rt4:eth3: 192.168.13.2 - 192.168.13.1 rt4:eth2 -- rt1:eth2: 192.168.2.2 - 192.168.2.1 rt1:eth3 -- rt5:eth3: 192.168.3.1 - 192.168.3.2 rt2:eth2 -- rt5:eth5: 192.168.7.1 - 192.168.7.2 All link has prefix 24. Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For each node, I have configured it as an OSPF router. Most of the routing looks fine to me, except for some interfaces. For example: If I send ping request from rt1 to 192.168.7.2 (rt5), I got no response. The routing table at rt1, rt5 are like: root at rt-1> show route table ipv4 unicast ospf 192.168.6.0/24 [ospf(110)/20] > to 192.168.1.2 via eth4/eth4 192.168.7.0/24 [ospf(110)/20] > to 192.168.1.2 via eth4/eth4 192.168.10.0/24 [ospf(110)/20] > to 192.168.3.2 via eth3/eth3 192.168.13.0/24 [ospf(110)/20] > to 192.168.2.2 via eth2/eth2 root at rt-5> show route table ipv4 unicast ospf 192.168.1.0/24 [ospf(110)/20] > to 192.168.3.1 via eth3/eth3 192.168.2.0/24 [ospf(110)/20] > to 192.168.3.1 via eth3/eth3 192.168.6.0/24 [ospf(110)/20] > to 192.168.10.1 via eth2/eth2 I ran tcpdump at rt1, rt2 and rt5 and found that At rt-2 eth1: xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 265, length 64 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 266, length 64 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 267, length 64 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 268, length 64 At rt-2 eth2: xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 334, length 64 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 335, length 64 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 336, length 64 At rt-5 eth5: xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 376, length 64 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 377, length 64 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 378, length 64 Based on the routing table at rt-5, the packet to 192.168.1.0 should be forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it showed nothing. xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. But I can ping 192.168.10.2, and 192.168.10.1, and the packets were forwarded from rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) Could you please provide any suggestion on how to troubleshooting this problem? Thanks, -- Xuan? Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/ecd0db6e/attachment-0001.html From greearb at candelatech.com Tue Aug 5 08:45:34 2014 From: greearb at candelatech.com (Ben Greear) Date: Tue, 05 Aug 2014 08:45:34 -0700 Subject: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407252739077.12786@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> Message-ID: <53E0FC1E.5000201@candelatech.com> On 08/05/2014 08:32 AM, Liu, Xuan (UMKC-Student) wrote: > Hello, > > > I have came across this problem when I have configured a simple five-node network running OSPF protocol. The topology looks like > > > 1 --------------- 2 > > / \ / \ > > / \ / | > > 4 \ / 3 > > | \ / | > > \ \ / / > > \ \ / / > > \------ 5 -----/ > > > The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - 192.168.1.2 > > rt2:eth4 -- rt3:eth3: 192.168.6.1 - 192.168.6.2 > > rt3:eth2 -- rt5:eth2: 192.168.10.1 - 192.168.10.2 > > rt5:eth1 -- rt4:eth3: 192.168.13.2 - 192.168.13.1 > > rt4:eth2 -- rt1:eth2: 192.168.2.2 - 192.168.2.1 > > rt1:eth3 -- rt5:eth3: 192.168.3.1 - 192.168.3.2 > > rt2:eth2 -- rt5:eth5: 192.168.7.1 - 192.168.7.2 > > All link has prefix 24. > > > Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For each node, I have configured it as an OSPF router. Most of the routing looks fine to me, > except for some interfaces. For example: > > > If I send ping request from rt1 to 192.168.7.2 (rt5), I got no response. The routing table at rt1, rt5 are like: > > > root at rt-1> show route table ipv4 unicast ospf > 192.168.6.0/24[ospf(110)/20] >> to 192.168.1.2 via eth4/eth4 > 192.168.7.0/24[ospf(110)/20] >> to 192.168.1.2 via eth4/eth4 > 192.168.10.0/24[ospf(110)/20] >> to 192.168.3.2 via eth3/eth3 > 192.168.13.0/24[ospf(110)/20] >> to 192.168.2.2 via eth2/eth2 > > > > root at rt-5> show route table ipv4 unicast ospf > 192.168.1.0/24[ospf(110)/20] >> to 192.168.3.1 via eth3/eth3 > 192.168.2.0/24[ospf(110)/20] >> to 192.168.3.1 via eth3/eth3 > 192.168.6.0/24[ospf(110)/20] >> to 192.168.10.1 via eth2/eth2 > > > I ran tcpdump at rt1, rt2 and rt5 and found that > > > At rt-2 eth1: > > xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes > 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 265, length 64 > 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 266, length 64 > 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 267, length 64 > 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 268, length 64 > > > At rt-2 eth2: > > xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes > 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 334, length 64 > 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 335, length 64 > 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 336, length 64 > > At rt-5 eth5: > xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes > 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 376, length 64 > 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 377, length 64 > 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 378, length 64 > > Based on the routing table at rt-5, the packet to 192.168.1.0 should be forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it showed nothing. > > xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes > > > Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. But I can ping 192.168.10.2, and 192.168.10.1, and the packets were forwarded from > rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) > > > Could you please provide any suggestion on how to troubleshooting this problem? Use xorpsh to print out the neighbors on rt-5, make sure your configuration interface is correct, look at the xorp logs to see if it shows any obvious errors, etc. Thanks, Ben > > > Thanks, > > > -- Xuan? Liu > > > _______________________________________________ > Xorp-users mailing list > Xorp-users at xorp.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From avinash.sridharan at gmail.com Tue Aug 5 09:01:50 2014 From: avinash.sridharan at gmail.com (Avinash Sridharan) Date: Tue, 5 Aug 2014 09:01:50 -0700 Subject: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407252739077.12786@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> Message-ID: Look at whats being programmed in the kernel route tables in router 5. Something like "ip route show" command should give you the routing table programmed in the linux kernel. It might give you some idea as to why the ICMP response is not being sent out. Also, make sure the ARP cache on router 5 has the ARPs resolve for 192.168.13.1 on router 5. On Tue, Aug 5, 2014 at 8:32 AM, Liu, Xuan (UMKC-Student) < xuan.liu at mail.umkc.edu> wrote: > Hello, > > > I have came across this problem when I have configured a simple > five-node network running OSPF protocol. The topology looks like > > > 1 --------------- 2 > > / \ / \ > > / \ / | > > 4 \ / 3 > > | \ / | > > \ \ / / > > \ \ / / > > \------ 5 -----/ > > > The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - 192.168.1.2 > > rt2:eth4 -- rt3:eth3: 192.168.6.1 > - 192.168.6.2 > > rt3:eth2 -- rt5:eth2: 192.168.10.1 > - 192.168.10.2 > > rt5:eth1 -- rt4:eth3: 192.168.13.2 - > 192.168.13.1 > > rt4:eth2 -- rt1:eth2: 192.168.2.2 > - 192.168.2.1 > > rt1:eth3 -- rt5:eth3: 192.168.3.1 > - 192.168.3.2 > > rt2:eth2 -- rt5:eth5: 192.168.7.1 > - 192.168.7.2 > > All link has prefix 24. > > > Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For > each node, I have configured it as an OSPF router. Most of the routing > looks fine to me, except for some interfaces. For example: > > > If I send ping request from rt1 to 192.168.7.2 (rt5), I got no response. > The routing table at rt1, rt5 are like: > > > root at rt-1> show route table ipv4 unicast ospf > 192.168.6.0/24 [ospf(110)/20] > > to 192.168.1.2 via eth4/eth4 > 192.168.7.0/24 [ospf(110)/20] > > to 192.168.1.2 via eth4/eth4 > 192.168.10.0/24 [ospf(110)/20] > > to 192.168.3.2 via eth3/eth3 > 192.168.13.0/24 [ospf(110)/20] > > to 192.168.2.2 via eth2/eth2 > > > > root at rt-5> show route table ipv4 unicast ospf > 192.168.1.0/24 [ospf(110)/20] > > to 192.168.3.1 via eth3/eth3 > 192.168.2.0/24 [ospf(110)/20] > > to 192.168.3.1 via eth3/eth3 > 192.168.6.0/24 [ospf(110)/20] > > to 192.168.10.1 via eth2/eth2 > > > I ran tcpdump at rt1, rt2 and rt5 and found that > > > At rt-2 eth1: > xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes > 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 265, length 64 > 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 266, length 64 > 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 267, length 64 > 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 268, length 64 > > > At rt-2 eth2: > xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes > 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 334, length 64 > 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 335, length 64 > 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 336, length 64 > > At rt-5 eth5: > xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes > 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 376, length 64 > 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 377, length 64 > 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id > 11873, seq 378, length 64 > > Based on the routing table at rt-5, the packet to 192.168.1.0 should be > forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it > showed nothing. > > xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes > > > Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. > But I can ping 192.168.10.2, and 192.168.10.1, and the packets were > forwarded from rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) > > > Could you please provide any suggestion on how to troubleshooting this > problem? > > > Thanks, > > -- Xuan? Liu > > _______________________________________________ > Xorp-users mailing list > Xorp-users at xorp.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/b4c0e281/attachment.html From xuan.liu at mail.umkc.edu Tue Aug 5 10:28:38 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Tue, 5 Aug 2014 17:28:38 +0000 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407259662233.61240@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu>, , <1407259662233.61240@mail.umkc.edu> Message-ID: <1407259717768.36545@mail.umkc.edu> ? Thank you Avinash, apparently, I can ping rt-5: eth5 and eth3 now, without doing anything. But now I cannot ping rt-4:eth2 (192.168.2.2) from rt-2. rt-4:eth2 has received the ping request from rt-2. From the routing table at rt-4: xuanliu at rt-4:~$ ip route show default via 172.16.0.1 dev eth0 172.16.0.0/12 dev eth0 proto kernel scope link src 172.17.2.8 192.168.1.0/24 via 192.168.2.1 dev eth2 proto xorp metric 20 notify 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.2 192.168.3.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.6.0/24 via 192.168.2.1 dev eth2 proto xorp metric 30 notify 192.168.7.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.10.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.13.0/24 dev eth3 proto kernel scope link src 192.168.13.1 The ARP cache on rt-4 shows xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 172.16.0.3 ether fe:ff:ff:ff:ff:ff C eth0 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 There is no resolution for 192.168.13.2, which is the return path for the ping reply, according to the routing table. However, the ARP cache keeps changing, and now it shows the all the interfaces, and the ping works. xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 192.168.13.2 ether 02:41:88:70:16:d2 C eth3 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 Thanks, -- Xuan? ________________________________ From: Avinash Sridharan Sent: Tuesday, August 5, 2014 11:01 AM To: Liu, Xuan (UMKC-Student) Cc: xorp-users at xorp.org Subject: Re: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP Look at whats being programmed in the kernel route tables in router 5. Something like "ip route show" command should give you the routing table programmed in the linux kernel. It might give you some idea as to why the ICMP response is not being sent out. Also, make sure the ARP cache on router 5 has the ARPs resolve for 192.168.13.1 on router 5. On Tue, Aug 5, 2014 at 8:32 AM, Liu, Xuan (UMKC-Student) > wrote: Hello, I have came across this problem when I have configured a simple five-node network running OSPF protocol. The topology looks like 1 --------------- 2 / \ / \ / \ / | 4 \ / 3 | \ / | \ \ / / \ \ / / \------ 5 -----/ The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - 192.168.1.2 rt2:eth4 -- rt3:eth3: 192.168.6.1 - 192.168.6.2 rt3:eth2 -- rt5:eth2: 192.168.10.1 - 192.168.10.2 rt5:eth1 -- rt4:eth3: 192.168.13.2 - 192.168.13.1 rt4:eth2 -- rt1:eth2: 192.168.2.2 - 192.168.2.1 rt1:eth3 -- rt5:eth3: 192.168.3.1 - 192.168.3.2 rt2:eth2 -- rt5:eth5: 192.168.7.1 - 192.168.7.2 All link has prefix 24. Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For each node, I have configured it as an OSPF router. Most of the routing looks fine to me, except for some interfaces. For example: If I send ping request from rt1 to 192.168.7.2 (rt5), I got no response. The routing table at rt1, rt5 are like: root at rt-1> show route table ipv4 unicast ospf 192.168.6.0/24 [ospf(110)/20] > to 192.168.1.2 via eth4/eth4 192.168.7.0/24 [ospf(110)/20] > to 192.168.1.2 via eth4/eth4 192.168.10.0/24 [ospf(110)/20] > to 192.168.3.2 via eth3/eth3 192.168.13.0/24 [ospf(110)/20] > to 192.168.2.2 via eth2/eth2 root at rt-5> show route table ipv4 unicast ospf 192.168.1.0/24 [ospf(110)/20] > to 192.168.3.1 via eth3/eth3 192.168.2.0/24 [ospf(110)/20] > to 192.168.3.1 via eth3/eth3 192.168.6.0/24 [ospf(110)/20] > to 192.168.10.1 via eth2/eth2 I ran tcpdump at rt1, rt2 and rt5 and found that At rt-2 eth1: xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 265, length 64 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 266, length 64 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 267, length 64 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 268, length 64 At rt-2 eth2: xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 334, length 64 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 335, length 64 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 336, length 64 At rt-5 eth5: xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 376, length 64 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 377, length 64 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 378, length 64 Based on the routing table at rt-5, the packet to 192.168.1.0 should be forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it showed nothing. xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. But I can ping 192.168.10.2, and 192.168.10.1, and the packets were forwarded from rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) Could you please provide any suggestion on how to troubleshooting this problem? Thanks, -- Xuan? Liu _______________________________________________ Xorp-users mailing list Xorp-users at xorp.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/9a10284e/attachment-0001.html From xuan.liu at mail.umkc.edu Tue Aug 5 10:37:06 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Tue, 5 Aug 2014 17:37:06 +0000 Subject: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <53E10198.7030100@candelatech.com> References: <1407252739077.12786@mail.umkc.edu>, <53E0FC1E.5000201@candelatech.com> <1407254717042.55403@mail.umkc.edu>, <53E10198.7030100@candelatech.com> Message-ID: <1407260226367.67849@mail.umkc.edu> Thank you Ben. I just checked the ARP cache on the node that doesn't send ping reply properly. It turned out that the ARP cache kept updating all the time, sometimes it showed all the interfaces, and sometimes the entries to a particular IP was gone. Please refer my last post for details. I have run the same topology on the Fedora nodes with XORP 1.7 before, and I didn't see this ping failures at that time. Does XORP help updating the ARP cache at the node? Thanks, Xuan ________________________________________ From: Ben Greear Sent: Tuesday, August 5, 2014 11:08 AM To: Liu, Xuan (UMKC-Student) Subject: Re: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP On 08/05/2014 09:05 AM, Liu, Xuan (UMKC-Student) wrote: > Here is the interfaces at rt-5 > > root at rt-5> show ospf4 neighbor > Address Interface State ID Pri Dead > 192.168.13.1 eth1/eth1 Full 192.168.2.2 128 6 > 192.168.10.1 eth2/eth2 Full 192.168.6.2 128 9 > 192.168.3.1 eth3/eth3 Full 192.168.1.1 128 9 > 192.168.7.1 eth5/eth5 Full 192.168.1.2 128 7 > > > Looks fine to me, and I don't see any error in the log file. Please keep replies on the list so that others may learn and help answer. I don't have time now to debug this, but you might try getting the latest xorp code from git and see if that fixes the problem? Thanks, Ben > > > > Thanks, > > -- Xuan > > > ________________________________________ > From: Ben Greear > Sent: Tuesday, August 5, 2014 10:45 AM > To: Liu, Xuan (UMKC-Student) > Cc: xorp-users at xorp.org > Subject: Re: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP > > On 08/05/2014 08:32 AM, Liu, Xuan (UMKC-Student) wrote: >> Hello, >> >> >> I have came across this problem when I have configured a simple five-node network running OSPF protocol. The topology looks like >> >> >> 1 --------------- 2 >> >> / \ / \ >> >> / \ / | >> >> 4 \ / 3 >> >> | \ / | >> >> \ \ / / >> >> \ \ / / >> >> \------ 5 -----/ >> >> >> The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - 192.168.1.2 >> >> rt2:eth4 -- rt3:eth3: 192.168.6.1 - 192.168.6.2 >> >> rt3:eth2 -- rt5:eth2: 192.168.10.1 - 192.168.10.2 >> >> rt5:eth1 -- rt4:eth3: 192.168.13.2 - 192.168.13.1 >> >> rt4:eth2 -- rt1:eth2: 192.168.2.2 - 192.168.2.1 >> >> rt1:eth3 -- rt5:eth3: 192.168.3.1 - 192.168.3.2 >> >> rt2:eth2 -- rt5:eth5: 192.168.7.1 - 192.168.7.2 >> >> All link has prefix 24. >> >> >> Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For each node, I have configured it as an OSPF router. Most of the routing looks fine to me, >> except for some interfaces. For example: >> >> >> If I send ping request from rt1 to 192.168.7.2 (rt5), I got no response. The routing table at rt1, rt5 are like: >> >> >> root at rt-1> show route table ipv4 unicast ospf >> 192.168.6.0/24[ospf(110)/20] >>> to 192.168.1.2 via eth4/eth4 >> 192.168.7.0/24[ospf(110)/20] >>> to 192.168.1.2 via eth4/eth4 >> 192.168.10.0/24[ospf(110)/20] >>> to 192.168.3.2 via eth3/eth3 >> 192.168.13.0/24[ospf(110)/20] >>> to 192.168.2.2 via eth2/eth2 >> >> >> >> root at rt-5> show route table ipv4 unicast ospf >> 192.168.1.0/24[ospf(110)/20] >>> to 192.168.3.1 via eth3/eth3 >> 192.168.2.0/24[ospf(110)/20] >>> to 192.168.3.1 via eth3/eth3 >> 192.168.6.0/24[ospf(110)/20] >>> to 192.168.10.1 via eth2/eth2 >> >> >> I ran tcpdump at rt1, rt2 and rt5 and found that >> >> >> At rt-2 eth1: >> >> xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes >> 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 265, length 64 >> 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 266, length 64 >> 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 267, length 64 >> 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 268, length 64 >> >> >> At rt-2 eth2: >> >> xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes >> 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 334, length 64 >> 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 335, length 64 >> 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 336, length 64 >> >> At rt-5 eth5: >> xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes >> 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 376, length 64 >> 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 377, length 64 >> 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 378, length 64 >> >> Based on the routing table at rt-5, the packet to 192.168.1.0 should be forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it showed nothing. >> >> xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes >> >> >> Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. But I can ping 192.168.10.2, and 192.168.10.1, and the packets were forwarded from >> rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) >> >> >> Could you please provide any suggestion on how to troubleshooting this problem? > > Use xorpsh to print out the neighbors on rt-5, make sure your configuration interface > is correct, look at the xorp logs to see if it shows any obvious errors, etc. > > Thanks, > Ben > >> >> >> Thanks, >> >> >> -- Xuan? Liu >> >> >> _______________________________________________ >> Xorp-users mailing list >> Xorp-users at xorp.org >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From avinash.sridharan at gmail.com Tue Aug 5 10:45:09 2014 From: avinash.sridharan at gmail.com (Avinash Sridharan) Date: Tue, 5 Aug 2014 10:45:09 -0700 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407259717768.36545@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu> Message-ID: May be the arp-cache timeout is too low? You can check the timeout value /proc/sys/net/ipv4/neigh/eth0/gc_stale_time here. If its too low see if changing it to larger value helps. On Tue, Aug 5, 2014 at 10:28 AM, Liu, Xuan (UMKC-Student) < xuan.liu at mail.umkc.edu> wrote: > ? > > Thank you Avinash, apparently, I can ping rt-5: eth5 and eth3 now, without > doing anything. But now I cannot ping rt-4:eth2 (192.168.2.2) from rt-2. > rt-4:eth2 has received the ping request from rt-2. > > > From the routing table at rt-4: > > > xuanliu at rt-4:~$ ip route show > default via 172.16.0.1 dev eth0 > 172.16.0.0/12 dev eth0 proto kernel scope link src 172.17.2.8 > 192.168.1.0/24 via 192.168.2.1 dev eth2 proto xorp metric 20 notify > 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.2 > 192.168.3.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify > 192.168.6.0/24 via 192.168.2.1 dev eth2 proto xorp metric 30 notify > 192.168.7.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify > 192.168.10.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify > 192.168.13.0/24 dev eth3 proto kernel scope link src 192.168.13.1 > > > The ARP cache on rt-4 shows > xuanliu at rt-4:~$ arp -n > Address HWtype HWaddress Flags Mask > Iface > 172.16.0.3 ether fe:ff:ff:ff:ff:ff C > eth0 > 192.168.2.1 ether 02:18:08:46:10:53 C > eth2 > 172.16.0.1 ether fe:ff:ff:ff:ff:ff C > eth0 > > > There is no resolution for 192.168.13.2, which is the return path for the > ping reply, according to the routing table. > > However, the ARP cache keeps changing, and now it shows the all the > interfaces, and the ping works. > > xuanliu at rt-4:~$ arp -n > Address HWtype HWaddress Flags Mask > Iface > 192.168.13.2 ether 02:41:88:70:16:d2 C > eth3 > 192.168.2.1 ether 02:18:08:46:10:53 C > eth2 > 172.16.0.1 ether fe:ff:ff:ff:ff:ff C > eth0 > > > Thanks, > > -- Xuan? > > > ------------------------------ > *From:* Avinash Sridharan > *Sent:* Tuesday, August 5, 2014 11:01 AM > *To:* Liu, Xuan (UMKC-Student) > *Cc:* xorp-users at xorp.org > *Subject:* Re: [Xorp-users] cannot ping one of the interfaces from an > OSPF router after installing XORP > > Look at whats being programmed in the kernel route tables in router 5. > Something like "ip route show" command should give you the routing table > programmed in the linux kernel. It might give you some idea as to why the > ICMP response is not being sent out. Also, make sure the ARP cache on > router 5 has the ARPs resolve for 192.168.13.1 on router 5. > > > On Tue, Aug 5, 2014 at 8:32 AM, Liu, Xuan (UMKC-Student) < > xuan.liu at mail.umkc.edu> wrote: > >> Hello, >> >> >> I have came across this problem when I have configured a simple >> five-node network running OSPF protocol. The topology looks like >> >> >> 1 --------------- 2 >> >> / \ / \ >> >> / \ / | >> >> 4 \ / 3 >> >> | \ / | >> >> \ \ / / >> >> \ \ / / >> >> \------ 5 -----/ >> >> >> The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - >> 192.168.1.2 >> >> rt2:eth4 -- rt3:eth3: 192.168.6.1 >> - 192.168.6.2 >> >> rt3:eth2 -- rt5:eth2: 192.168.10.1 >> - 192.168.10.2 >> >> rt5:eth1 -- rt4:eth3: 192.168.13.2 - >> 192.168.13.1 >> >> rt4:eth2 -- rt1:eth2: 192.168.2.2 >> - 192.168.2.1 >> >> rt1:eth3 -- rt5:eth3: 192.168.3.1 >> - 192.168.3.2 >> >> rt2:eth2 -- rt5:eth5: 192.168.7.1 >> - 192.168.7.2 >> >> All link has prefix 24. >> >> >> Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For >> each node, I have configured it as an OSPF router. Most of the routing >> looks fine to me, except for some interfaces. For example: >> >> >> If I send ping request from rt1 to 192.168.7.2 (rt5), I got no >> response. The routing table at rt1, rt5 are like: >> >> >> root at rt-1> show route table ipv4 unicast ospf >> 192.168.6.0/24 [ospf(110)/20] >> > to 192.168.1.2 via eth4/eth4 >> 192.168.7.0/24 [ospf(110)/20] >> > to 192.168.1.2 via eth4/eth4 >> 192.168.10.0/24 [ospf(110)/20] >> > to 192.168.3.2 via eth3/eth3 >> 192.168.13.0/24 [ospf(110)/20] >> > to 192.168.2.2 via eth2/eth2 >> >> >> >> root at rt-5> show route table ipv4 unicast ospf >> 192.168.1.0/24 [ospf(110)/20] >> > to 192.168.3.1 via eth3/eth3 >> 192.168.2.0/24 [ospf(110)/20] >> > to 192.168.3.1 via eth3/eth3 >> 192.168.6.0/24 [ospf(110)/20] >> > to 192.168.10.1 via eth2/eth2 >> >> >> I ran tcpdump at rt1, rt2 and rt5 and found that >> >> >> At rt-2 eth1: >> xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes >> 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 265, length 64 >> 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 266, length 64 >> 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 267, length 64 >> 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 268, length 64 >> >> >> At rt-2 eth2: >> xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes >> 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 334, length 64 >> 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 335, length 64 >> 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 336, length 64 >> >> At rt-5 eth5: >> xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes >> 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 376, length 64 >> 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 377, length 64 >> 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id >> 11873, seq 378, length 64 >> >> Based on the routing table at rt-5, the packet to 192.168.1.0 should be >> forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it >> showed nothing. >> >> xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes >> >> >> Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. >> But I can ping 192.168.10.2, and 192.168.10.1, and the packets were >> forwarded from rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) >> >> >> Could you please provide any suggestion on how to troubleshooting this >> problem? >> >> >> Thanks, >> >> -- Xuan? Liu >> >> _______________________________________________ >> Xorp-users mailing list >> Xorp-users at xorp.org >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users >> >> > > _______________________________________________ > Xorp-users mailing list > Xorp-users at xorp.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/d6d20d00/attachment-0001.html From xuan.liu at mail.umkc.edu Tue Aug 5 11:16:03 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Tue, 5 Aug 2014 18:16:03 +0000 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407262401688.29229@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu>, , <1407262401688.29229@mail.umkc.edu> Message-ID: <1407262562698.15138@mail.umkc.edu> ? It says 60 for all interfaces. I think this value is fine. I have another setup with the same configuration, where I installed XORP 1.7 on virtual nodes on Fedora systems running Vservers. With this setup, I don't see any problem, and I notice that the entry was added to the ARP cache on nodeA as soon as I triggered the ping from NodeB to nodeA. I checked the ARP cache timeout and it's 60 as well. For my current setup, I'm running XORP 1.8.5 on VMs created from XEN, and each VM has Ubuntu 12.04. I did some other test, which I'm not sure if it makes sense. I disabled the interface that was supposed to send out the reply, and enabled it immediately after disabling it, then the ping could went through, and the ping packet was sent out from the interface which was just restarted. But by doing this, the routing table can be changed as well, so maybe it doesn't explain anything. ? Thanks, -- Xuan ________________________________ From: Avinash Sridharan Sent: Tuesday, August 5, 2014 12:45 PM To: Liu, Xuan (UMKC-Student) Cc: xorp-users at xorp.org Subject: Re: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP May be the arp-cache timeout is too low? You can check the timeout value /proc/sys/net/ipv4/neigh/eth0/gc_stale_time here. If its too low see if changing it to larger value helps. On Tue, Aug 5, 2014 at 10:28 AM, Liu, Xuan (UMKC-Student) > wrote: ? Thank you Avinash, apparently, I can ping rt-5: eth5 and eth3 now, without doing anything. But now I cannot ping rt-4:eth2 (192.168.2.2) from rt-2. rt-4:eth2 has received the ping request from rt-2. >From the routing table at rt-4: xuanliu at rt-4:~$ ip route show default via 172.16.0.1 dev eth0 172.16.0.0/12 dev eth0 proto kernel scope link src 172.17.2.8 192.168.1.0/24 via 192.168.2.1 dev eth2 proto xorp metric 20 notify 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.2 192.168.3.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.6.0/24 via 192.168.2.1 dev eth2 proto xorp metric 30 notify 192.168.7.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.10.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.13.0/24 dev eth3 proto kernel scope link src 192.168.13.1 The ARP cache on rt-4 shows xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 172.16.0.3 ether fe:ff:ff:ff:ff:ff C eth0 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 There is no resolution for 192.168.13.2, which is the return path for the ping reply, according to the routing table. However, the ARP cache keeps changing, and now it shows the all the interfaces, and the ping works. xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 192.168.13.2 ether 02:41:88:70:16:d2 C eth3 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 Thanks, -- Xuan? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/35bce235/attachment.html From xuan.liu at mail.umkc.edu Tue Aug 5 15:05:42 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Tue, 5 Aug 2014 22:05:42 +0000 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407262562698.15138@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu>, , <1407262401688.29229@mail.umkc.edu>, <1407262562698.15138@mail.umkc.edu> Message-ID: <1407276341622.9591@mail.umkc.edu> Okay, I just figured it out. I needs to turn off the reverse path filtering on my VM, by default it's 1. sudo sysctl -w net.ipv4.conf.all.rp_filter=0 sudo sysctl -w net.ipv4.conf.default.rp_filter=0 I also did similar thing to all other interfaces (eth1, eth2, ...) Here is a bug report about this issue for ubuntu server 10.04 that has Quagga installed. https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/625812 Thank you for all the helps ? -- Xuan ________________________________ From: xorp-users-bounces at xorp.org on behalf of Liu, Xuan (UMKC-Student) Sent: Tuesday, August 5, 2014 1:16 PM To: Avinash Sridharan Cc: xorp-users at xorp.org Subject: Re: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP ? It says 60 for all interfaces. I think this value is fine. I have another setup with the same configuration, where I installed XORP 1.7 on virtual nodes on Fedora systems running Vservers. With this setup, I don't see any problem, and I notice that the entry was added to the ARP cache on nodeA as soon as I triggered the ping from NodeB to nodeA. I checked the ARP cache timeout and it's 60 as well. For my current setup, I'm running XORP 1.8.5 on VMs created from XEN, and each VM has Ubuntu 12.04. I did some other test, which I'm not sure if it makes sense. I disabled the interface that was supposed to send out the reply, and enabled it immediately after disabling it, then the ping could went through, and the ping packet was sent out from the interface which was just restarted. But by doing this, the routing table can be changed as well, so maybe it doesn't explain anything. ? Thanks, -- Xuan ________________________________ From: Avinash Sridharan Sent: Tuesday, August 5, 2014 12:45 PM To: Liu, Xuan (UMKC-Student) Cc: xorp-users at xorp.org Subject: Re: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP May be the arp-cache timeout is too low? You can check the timeout value /proc/sys/net/ipv4/neigh/eth0/gc_stale_time here. If its too low see if changing it to larger value helps. On Tue, Aug 5, 2014 at 10:28 AM, Liu, Xuan (UMKC-Student) > wrote: ? Thank you Avinash, apparently, I can ping rt-5: eth5 and eth3 now, without doing anything. But now I cannot ping rt-4:eth2 (192.168.2.2) from rt-2. rt-4:eth2 has received the ping request from rt-2. >From the routing table at rt-4: xuanliu at rt-4:~$ ip route show default via 172.16.0.1 dev eth0 172.16.0.0/12 dev eth0 proto kernel scope link src 172.17.2.8 192.168.1.0/24 via 192.168.2.1 dev eth2 proto xorp metric 20 notify 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.2 192.168.3.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.6.0/24 via 192.168.2.1 dev eth2 proto xorp metric 30 notify 192.168.7.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.10.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.13.0/24 dev eth3 proto kernel scope link src 192.168.13.1 The ARP cache on rt-4 shows xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 172.16.0.3 ether fe:ff:ff:ff:ff:ff C eth0 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 There is no resolution for 192.168.13.2, which is the return path for the ping reply, according to the routing table. However, the ARP cache keeps changing, and now it shows the all the interfaces, and the ping works. xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 192.168.13.2 ether 02:41:88:70:16:d2 C eth3 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 Thanks, -- Xuan? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/86c9cafa/attachment.html From greearb at candelatech.com Tue Aug 5 15:18:34 2014 From: greearb at candelatech.com (Ben Greear) Date: Tue, 05 Aug 2014 15:18:34 -0700 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407276341622.9591@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu>, , <1407262401688.29229@mail.umkc.edu>, <1407262562698.15138@mail.umkc.edu> <1407276341622.9591@mail.umkc.edu> Message-ID: <53E1583A.4000707@candelatech.com> On 08/05/2014 03:05 PM, Liu, Xuan (UMKC-Student) wrote: > Okay, I just figured it out. I needs to turn off the reverse path filtering on my VM, by default it's 1. > > > sudo sysctl -w net.ipv4.conf.all.rp_filter=0 > > sudo sysctl -w net.ipv4.conf.default.rp_filter=0 > > > I also did similar thing to all other interfaces (eth1, eth2, ...) > > > Here is a bug report about this issue for ubuntu server 10.04 that has Quagga installed. > > > https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/625812 > > > Thank you for all the helps Is this something that Xorp could detect on startup and warn the user about, perhaps? If so, a patch (against latest code in git) would be welcome. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com From hsjeon88 at etri.re.kr Tue Aug 5 19:40:58 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Wed, 6 Aug 2014 02:40:58 +0000 Subject: [Xorp-users] Help Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725AECB6@SMTP3.etri.info> I am a begginer at XORP. XORP uses scons. Now, I want to add my new creating directory, clickinf. So I change SConscript file which adds new sub directory. But after scons, when checking obj directory, my directiry is not created. So, I also deleted the existing directory cli or bgp in obj directory. And I tried scons again, but cli or bgp directory is also not created. Now I all deleted directory in obj. after scons, any directory is not created. What problems do I have ??? I attached SConscript file which are using now. I just changed SConscript file for mine. I add my new directory clickinf including sources to the XORP sources. Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. ////////////////////////////////// // SConscript file ///////////////////////////////// # Copyright (c) 2009-2011 XORP, Inc and Others # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, Version 2, June # 1991 as published by the Free Software Foundation. Redistribution # and/or modification of this program under the terms of any other # version of the GNU General Public License is not permitted. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, # see the GNU General Public License, Version 2, a copy of which can be # found in the XORP LICENSE.gpl file. # # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; # http://xorp.net # $ID$ Import('env') subdirs = [ 'cli', 'libcomm', 'libxorp', 'libxipc', 'libproto', 'libfeaclient', 'xrl/targets', 'xrl/interfaces', # 'xrl/tests', # XXX not in use. 'etc/templates', 'fea', 'fib2mrib', 'mld6igmp', 'mrt', 'pim', 'policy', 'rib', 'rtrmgr', 'static_routes', 'utils', ] if env['enable_olsr']: subdirs.append('contrib/olsr') if env['enable_wrapper']: subdirs.append('contrib/wrapper') if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. subdirs.append('clickinf') if env['enable_bgp']: subdirs.append('bgp') if env['enable_ospf']: subdirs.append('ospf') if env['enable_rip']: subdirs.append('rip') if env['enable_vrrp']: subdirs.append('vrrp') SConscript(dirs = subdirs, exports='env') ====================================================== Littletree. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140806/f458c15d/attachment-0001.html From hsjeon88 at etri.re.kr Tue Aug 5 23:58:27 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Wed, 6 Aug 2014 06:58:27 +0000 Subject: [Xorp-users] Help Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info> First I made /xorp/clickinf/Sconscript. I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. But running scons, there is a KeyError : 'enable_clickinf'. How can I avoid this error ??? Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-06 11:40:58 ( +09:00 ) ?? ?? : xorp-users at xorp.org ?? : ?? : Help I am a begginer at XORP. XORP uses scons. Now, I want to add my new creating directory, clickinf. So I change SConscript file which adds new sub directory. But after scons, when checking obj directory, my directiry is not created. So, I also deleted the existing directory cli or bgp in obj directory. And I tried scons again, but cli or bgp directory is also not created. Now I all deleted directory in obj. after scons, any directory is not created. What problems do I have ??? I attached SConscript file which are using now. I just changed SConscript file for mine. I add my new directory clickinf including sources to the XORP sources. Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. ////////////////////////////////// // SConscript file ///////////////////////////////// # Copyright (c) 2009-2011 XORP, Inc and Others # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, Version 2, June # 1991 as published by the Free Software Foundation. Redistribution # and/or modification of this program under the terms of any other # version of the GNU General Public License is not permitted. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, # see the GNU General Public License, Version 2, a copy of which can be # found in the XORP LICENSE.gpl file. # # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; # http://xorp.net # $ID$ Import('env') subdirs = [ 'cli', 'libcomm', 'libxorp', 'libxipc', 'libproto', 'libfeaclient', 'xrl/targets', 'xrl/interfaces', # 'xrl/tests', # XXX not in use. 'etc/templates', 'fea', 'fib2mrib', 'mld6igmp', 'mrt', 'pim', 'policy', 'rib', 'rtrmgr', 'static_routes', 'utils', ] if env['enable_olsr']: subdirs.append('contrib/olsr') if env['enable_wrapper']: subdirs.append('contrib/wrapper') if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. subdirs.append('clickinf') if env['enable_bgp']: subdirs.append('bgp') if env['enable_ospf']: subdirs.append('ospf') if env['enable_rip']: subdirs.append('rip') if env['enable_vrrp']: subdirs.append('vrrp') SConscript(dirs = subdirs, exports='env') ====================================================== Littletree. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140806/2b9903c6/attachment.html From xuan.liu at mail.umkc.edu Tue Aug 5 11:13:22 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Tue, 5 Aug 2014 18:13:22 +0000 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu>, Message-ID: <1407262401688.29229@mail.umkc.edu> it says 60 for all interfaces. I think this value is fine. I have another setup with the same configuration, where I installed XORP 1.7 on virtual nodes on Fedora systems running Vservers. With this setup, I don't see any problem, and I notice that the entry was added to the ARP cache on nodeA as soon as I triggered the ping from NodeB to nodeA. I checked the ARP cache timeout and it's 60 as well. For my current setup, I'm running XORP 1.8.5 on VMs created from XEN, and each VM has Ubuntu 12.04. I did some other test, which I'm not sure if it makes sense. I disabled the interface that was supposed to send out the reply, and enabled it immediately after disabling it, then the ping could went through, and the ping packet was sent out from the interface which was just restarted. But by doing this, the routing table can be changed as well, so maybe it doesn't explain anything. ? Thanks, -- Xuan ________________________________ From: Avinash Sridharan Sent: Tuesday, August 5, 2014 12:45 PM To: Liu, Xuan (UMKC-Student) Cc: xorp-users at xorp.org Subject: Re: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP May be the arp-cache timeout is too low? You can check the timeout value /proc/sys/net/ipv4/neigh/eth0/gc_stale_time here. If its too low see if changing it to larger value helps. On Tue, Aug 5, 2014 at 10:28 AM, Liu, Xuan (UMKC-Student) > wrote: ? Thank you Avinash, apparently, I can ping rt-5: eth5 and eth3 now, without doing anything. But now I cannot ping rt-4:eth2 (192.168.2.2) from rt-2. rt-4:eth2 has received the ping request from rt-2. From the routing table at rt-4: xuanliu at rt-4:~$ ip route show default via 172.16.0.1 dev eth0 172.16.0.0/12 dev eth0 proto kernel scope link src 172.17.2.8 192.168.1.0/24 via 192.168.2.1 dev eth2 proto xorp metric 20 notify 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.2 192.168.3.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.6.0/24 via 192.168.2.1 dev eth2 proto xorp metric 30 notify 192.168.7.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.10.0/24 via 192.168.13.2 dev eth3 proto xorp metric 20 notify 192.168.13.0/24 dev eth3 proto kernel scope link src 192.168.13.1 The ARP cache on rt-4 shows xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 172.16.0.3 ether fe:ff:ff:ff:ff:ff C eth0 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 There is no resolution for 192.168.13.2, which is the return path for the ping reply, according to the routing table. However, the ARP cache keeps changing, and now it shows the all the interfaces, and the ping works. xuanliu at rt-4:~$ arp -n Address HWtype HWaddress Flags Mask Iface 192.168.13.2 ether 02:41:88:70:16:d2 C eth3 192.168.2.1 ether 02:18:08:46:10:53 C eth2 172.16.0.1 ether fe:ff:ff:ff:ff:ff C eth0 Thanks, -- Xuan? ________________________________ From: Avinash Sridharan > Sent: Tuesday, August 5, 2014 11:01 AM To: Liu, Xuan (UMKC-Student) Cc: xorp-users at xorp.org Subject: Re: [Xorp-users] cannot ping one of the interfaces from an OSPF router after installing XORP Look at whats being programmed in the kernel route tables in router 5. Something like "ip route show" command should give you the routing table programmed in the linux kernel. It might give you some idea as to why the ICMP response is not being sent out. Also, make sure the ARP cache on router 5 has the ARPs resolve for 192.168.13.1 on router 5. On Tue, Aug 5, 2014 at 8:32 AM, Liu, Xuan (UMKC-Student) > wrote: Hello, I have came across this problem when I have configured a simple five-node network running OSPF protocol. The topology looks like 1 --------------- 2 / \ / \ / \ / | 4 \ / 3 | \ / | \ \ / / \ \ / / \------ 5 -----/ The link information is : rt1:eth4 -- rt2:eth1: 192.168.1.1 - 192.168.1.2 rt2:eth4 -- rt3:eth3: 192.168.6.1 - 192.168.6.2 rt3:eth2 -- rt5:eth2: 192.168.10.1 - 192.168.10.2 rt5:eth1 -- rt4:eth3: 192.168.13.2 - 192.168.13.1 rt4:eth2 -- rt1:eth2: 192.168.2.2 - 192.168.2.1 rt1:eth3 -- rt5:eth3: 192.168.3.1 - 192.168.3.2 rt2:eth2 -- rt5:eth5: 192.168.7.1 - 192.168.7.2 All link has prefix 24. Each node runs Ubuntu 12.04 OS, and I have installed XORP 1.8.5. For each node, I have configured it as an OSPF router. Most of the routing looks fine to me, except for some interfaces. For example: If I send ping request from rt1 to 192.168.7.2 (rt5), I got no response. The routing table at rt1, rt5 are like: root at rt-1> show route table ipv4 unicast ospf 192.168.6.0/24 [ospf(110)/20] > to 192.168.1.2 via eth4/eth4 192.168.7.0/24 [ospf(110)/20] > to 192.168.1.2 via eth4/eth4 192.168.10.0/24 [ospf(110)/20] > to 192.168.3.2 via eth3/eth3 192.168.13.0/24 [ospf(110)/20] > to 192.168.2.2 via eth2/eth2 root at rt-5> show route table ipv4 unicast ospf 192.168.1.0/24 [ospf(110)/20] > to 192.168.3.1 via eth3/eth3 192.168.2.0/24 [ospf(110)/20] > to 192.168.3.1 via eth3/eth3 192.168.6.0/24 [ospf(110)/20] > to 192.168.10.1 via eth2/eth2 I ran tcpdump at rt1, rt2 and rt5 and found that At rt-2 eth1: xuanliu at rt-2:~$ sudo tcpdump -i eth1 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 11:22:58.797404 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 265, length 64 11:22:59.805624 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 266, length 64 11:23:00.813283 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 267, length 64 11:23:01.821354 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 268, length 64 At rt-2 eth2: xuanliu at rt-2:~$ sudo tcpdump -i eth2 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes 11:24:08.347513 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 334, length 64 11:24:09.355769 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 335, length 64 11:24:10.363503 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 336, length 64 At rt-5 eth5: xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth5 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth5, link-type EN10MB (Ethernet), capture size 65535 bytes 11:24:52.122424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 376, length 64 11:24:53.130022 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 377, length 64 11:24:54.138424 IP 192.168.1.1 > 192.168.7.2: ICMP echo request, id 11873, seq 378, length 64 Based on the routing table at rt-5, the packet to 192.168.1.0 should be forwarded to link 192.168.3.0. So I checked the interface rt-5:eth3, and it showed nothing. xuanliu at rt-5:/usr/local/xorp/sbin$ sudo tcpdump -i eth3 icmp -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes Similarly, I couldn't ping rt-5:eth1 (192.168.13.2) from rt-1 neither. But I can ping 192.168.10.2, and 192.168.10.1, and the packets were forwarded from rt-5:eth3(192.168.3.2) to rt-5:eth2(192.168.10.2) Could you please provide any suggestion on how to troubleshooting this problem? Thanks, -- Xuan? Liu _______________________________________________ Xorp-users mailing list Xorp-users at xorp.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users _______________________________________________ Xorp-users mailing list Xorp-users at xorp.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140805/28fae248/attachment-0001.html From greearb at candelatech.com Wed Aug 6 08:17:29 2014 From: greearb at candelatech.com (Ben Greear) Date: Wed, 06 Aug 2014 08:17:29 -0700 Subject: [Xorp-users] Help In-Reply-To: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info> References: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info> Message-ID: <53E24709.7090201@candelatech.com> On 08/05/2014 11:58 PM, ??? wrote: > First I made /xorp/clickinf/Sconscript. > > I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. > But running scons, there is a KeyError : 'enable_clickinf'. > How can I avoid this error ??? > Littletree. Please show the full log of your error, and show your changes: git diff Search through the entire repository for 'enable_olsr', for instance, and make sure you are duplicating all the necessary bits when you are adding your enable_clickinf option. And finally, I deleted an over-sized message because it looked like spam, but maybe it was just encoded in a different language or attachment. Please re-send if it is legitimate. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com From xuan.liu at mail.umkc.edu Wed Aug 6 13:18:58 2014 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Wed, 6 Aug 2014 20:18:58 +0000 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <53E1583A.4000707@candelatech.com> References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu>, , <1407262401688.29229@mail.umkc.edu>, <1407262562698.15138@mail.umkc.edu> <1407276341622.9591@mail.umkc.edu>,<53E1583A.4000707@candelatech.com> Message-ID: <1407356338195.39056@mail.umkc.edu> I guess it depends on what OS the node has. For CentOS 5.5 [root at control-2 ~]# sysctl -a | grep \\.rp_filter net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.lo.rp_filter = 0 net.ipv4.conf.eth0.rp_filter = 1 For my nodes running Ubuntu 12.04: net.ipv4.conf.all.rp_filter = 1 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.lo.rp_filter = 1 net.ipv4.conf.eth0.rp_filter = 1 net.ipv4.conf.eth1.rp_filter = 1 net.ipv4.conf.eth2.rp_filter = 1 net.ipv4.conf.eth3.rp_filter = 1 net.ipv4.conf.eth4.rp_filter = 1 net.ipv4.conf.eth5.rp_filter = 1 net.ipv4.conf.eth6.rp_filter = 1 On ubuntu system, I need to run following command to turn off the reverse path filtering (assuming all my virtual interfaces are ethX, X is not 0) sudo sysctl -w net.ipv4.conf.all.rp_filter=0 sudo sysctl -w net.ipv4.conf.default.rp_filter=0 # turn off the reverse path filtering for eth1 ~ eth6 /sbin/ifconfig -a | grep eth | awk '{ if (substr($1, 4,4) != 0) { print "sudo sysctl -w net.ipv4.conf." $1 ".rp_filter=0"}}' | sh Then it looks like: net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.lo.rp_filter = 1 net.ipv4.conf.eth0.rp_filter = 1 net.ipv4.conf.eth1.rp_filter = 0 net.ipv4.conf.eth2.rp_filter = 0 net.ipv4.conf.eth3.rp_filter = 0 net.ipv4.conf.eth4.rp_filter = 0 net.ipv4.conf.eth5.rp_filter = 0 net.ipv4.conf.eth6.rp_filter = 0 I only tested XORP on Fedora and Ubuntu, so I'm not sure if this only happens to Ubuntu system. So maybe it's better to have a note in the XORP installation instruction, so that the users can be aware of this potential issue. Thanks, -- Xuan ________________________________________ From: Ben Greear Sent: Tuesday, August 5, 2014 5:18 PM To: Liu, Xuan (UMKC-Student) Cc: Avinash Sridharan; xorp-users at xorp.org Subject: Re: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP On 08/05/2014 03:05 PM, Liu, Xuan (UMKC-Student) wrote: > Okay, I just figured it out. I needs to turn off the reverse path filtering on my VM, by default it's 1. > > > sudo sysctl -w net.ipv4.conf.all.rp_filter=0 > > sudo sysctl -w net.ipv4.conf.default.rp_filter=0 > > > I also did similar thing to all other interfaces (eth1, eth2, ...) > > > Here is a bug report about this issue for ubuntu server 10.04 that has Quagga installed. > > > https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/625812 > > > Thank you for all the helps Is this something that Xorp could detect on startup and warn the user about, perhaps? If so, a patch (against latest code in git) would be welcome. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com From greearb at candelatech.com Wed Aug 6 13:26:34 2014 From: greearb at candelatech.com (Ben Greear) Date: Wed, 06 Aug 2014 13:26:34 -0700 Subject: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP In-Reply-To: <1407356338195.39056@mail.umkc.edu> References: <1407252739077.12786@mail.umkc.edu> <1407259662233.61240@mail.umkc.edu> <1407259717768.36545@mail.umkc.edu>, , <1407262401688.29229@mail.umkc.edu>, <1407262562698.15138@mail.umkc.edu> <1407276341622.9591@mail.umkc.edu>, <53E1583A.4000707@candelatech.com> <1407356338195.39056@mail.umkc.edu> Message-ID: <53E28F7A.3070906@candelatech.com> On 08/06/2014 01:18 PM, Liu, Xuan (UMKC-Student) wrote: > I guess it depends on what OS the node has. I think it is probably: if net.ipv4.conf.all.rp_filter or net.ipv4.conf.[iface-name].rp_filter then warn user I wouldn't try to make xorp actually change the config since maybe the user really wants rp_filter enabled... Thanks, Ben > > For CentOS 5.5 > [root at control-2 ~]# sysctl -a | grep \\.rp_filter > net.ipv4.conf.all.rp_filter = 0 > net.ipv4.conf.default.rp_filter = 1 > net.ipv4.conf.lo.rp_filter = 0 > net.ipv4.conf.eth0.rp_filter = 1 > > For my nodes running Ubuntu 12.04: > net.ipv4.conf.all.rp_filter = 1 > net.ipv4.conf.default.rp_filter = 1 > net.ipv4.conf.lo.rp_filter = 1 > net.ipv4.conf.eth0.rp_filter = 1 > net.ipv4.conf.eth1.rp_filter = 1 > net.ipv4.conf.eth2.rp_filter = 1 > net.ipv4.conf.eth3.rp_filter = 1 > net.ipv4.conf.eth4.rp_filter = 1 > net.ipv4.conf.eth5.rp_filter = 1 > net.ipv4.conf.eth6.rp_filter = 1 > > On ubuntu system, I need to run following command to turn off the reverse path filtering (assuming all my virtual interfaces are ethX, X is not 0) > sudo sysctl -w net.ipv4.conf.all.rp_filter=0 > sudo sysctl -w net.ipv4.conf.default.rp_filter=0 > # turn off the reverse path filtering for eth1 ~ eth6 > /sbin/ifconfig -a | grep eth | awk '{ if (substr($1, 4,4) != 0) { print "sudo sysctl -w net.ipv4.conf." $1 ".rp_filter=0"}}' | sh > > Then it looks like: > net.ipv4.conf.all.rp_filter = 0 > net.ipv4.conf.default.rp_filter = 0 > net.ipv4.conf.lo.rp_filter = 1 > net.ipv4.conf.eth0.rp_filter = 1 > net.ipv4.conf.eth1.rp_filter = 0 > net.ipv4.conf.eth2.rp_filter = 0 > net.ipv4.conf.eth3.rp_filter = 0 > net.ipv4.conf.eth4.rp_filter = 0 > net.ipv4.conf.eth5.rp_filter = 0 > net.ipv4.conf.eth6.rp_filter = 0 > > I only tested XORP on Fedora and Ubuntu, so I'm not sure if this only happens to Ubuntu system. > > So maybe it's better to have a note in the XORP installation instruction, so that the users can be aware of this potential issue. > > Thanks, > > -- Xuan > > > > > > ________________________________________ > From: Ben Greear > Sent: Tuesday, August 5, 2014 5:18 PM > To: Liu, Xuan (UMKC-Student) > Cc: Avinash Sridharan; xorp-users at xorp.org > Subject: Re: [Xorp-users] FW: cannot ping one of the interfaces from an OSPF router after installing XORP > > On 08/05/2014 03:05 PM, Liu, Xuan (UMKC-Student) wrote: >> Okay, I just figured it out. I needs to turn off the reverse path filtering on my VM, by default it's 1. >> >> >> sudo sysctl -w net.ipv4.conf.all.rp_filter=0 >> >> sudo sysctl -w net.ipv4.conf.default.rp_filter=0 >> >> >> I also did similar thing to all other interfaces (eth1, eth2, ...) >> >> >> Here is a bug report about this issue for ubuntu server 10.04 that has Quagga installed. >> >> >> https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/625812 >> >> >> Thank you for all the helps > > Is this something that Xorp could detect on startup and warn the user about, perhaps? > > If so, a patch (against latest code in git) would be welcome. > > Thanks, > Ben > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From hsjeon88 at etri.re.kr Thu Aug 7 02:46:09 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Thu, 7 Aug 2014 09:46:09 +0000 Subject: [Xorp-users] Help In-Reply-To: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info> References: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info> Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725AFFB7@SMTP3.etri.info> I overcome the below problems. But I have a question. My software programs is user mode click. and I want to control this. It uses std::string. In xorp, we use different string. How can I change string of xorp into std::string of my user mode click ? Could you give me some advices ? Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-06 15:58:28 ( +09:00 ) ?? ?? : xorp-users at xorp.org ?? : ?? : Help First I made /xorp/clickinf/Sconscript. I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. But running scons, there is a KeyError : 'enable_clickinf'. How can I avoid this error ??? Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-06 11:40:58 ( +09:00 ) ?? ?? : xorp-users at xorp.org ?? : ?? : Help I am a begginer at XORP. XORP uses scons. Now, I want to add my new creating directory, clickinf. So I change SConscript file which adds new sub directory. But after scons, when checking obj directory, my directiry is not created. So, I also deleted the existing directory cli or bgp in obj directory. And I tried scons again, but cli or bgp directory is also not created. Now I all deleted directory in obj. after scons, any directory is not created. What problems do I have ??? I attached SConscript file which are using now. I just changed SConscript file for mine. I add my new directory clickinf including sources to the XORP sources. Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. ////////////////////////////////// // SConscript file ///////////////////////////////// # Copyright (c) 2009-2011 XORP, Inc and Others # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, Version 2, June # 1991 as published by the Free Software Foundation. Redistribution # and/or modification of this program under the terms of any other # version of the GNU General Public License is not permitted. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, # see the GNU General Public License, Version 2, a copy of which can be # found in the XORP LICENSE.gpl file. # # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; # http://xorp.net # $ID$ Import('env') subdirs = [ 'cli', 'libcomm', 'libxorp', 'libxipc', 'libproto', 'libfeaclient', 'xrl/targets', 'xrl/interfaces', # 'xrl/tests', # XXX not in use. 'etc/templates', 'fea', 'fib2mrib', 'mld6igmp', 'mrt', 'pim', 'policy', 'rib', 'rtrmgr', 'static_routes', 'utils', ] if env['enable_olsr']: subdirs.append('contrib/olsr') if env['enable_wrapper']: subdirs.append('contrib/wrapper') if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. subdirs.append('clickinf') if env['enable_bgp']: subdirs.append('bgp') if env['enable_ospf']: subdirs.append('ospf') if env['enable_rip']: subdirs.append('rip') if env['enable_vrrp']: subdirs.append('vrrp') SConscript(dirs = subdirs, exports='env') ====================================================== Littletree. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140807/c87b0e60/attachment-0001.html From hsjeon88 at etri.re.kr Thu Aug 7 05:26:15 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Thu, 7 Aug 2014 12:26:15 +0000 Subject: [Xorp-users] Help In-Reply-To: <3E2A969AE41B5643ACAFCD3B7B411E06725AFFB7@SMTP3.etri.info> References: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info>, <3E2A969AE41B5643ACAFCD3B7B411E06725AFFB7@SMTP3.etri.info> Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725B0003@SMTP3.etri.info> I have one more thing to ask. In click router, there is a string. How can I use it on the XORP ? We are changing click router for new protocol. So, We want to check the status of the click such as elements list, count of each element. So, I want to use CotrolSocketClient class on the XORP. By the way, the string format of XORP is different from that of click router. Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-07 18:46:09 ( +09:00 ) ?? ?? : xorp-users at xorp.org ?? : ?? : RE: Help I overcome the below problems. But I have a question. My software programs is user mode click. and I want to control this. It uses std::string. In xorp, we use different string. How can I change string of xorp into std::string of my user mode click ? Could you give me some advices ? Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-06 15:58:28 ( +09:00 ) ?? ?? : xorp-users at xorp.org ?? : ?? : Help First I made /xorp/clickinf/Sconscript. I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. But running scons, there is a KeyError : 'enable_clickinf'. How can I avoid this error ??? Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-06 11:40:58 ( +09:00 ) ?? ?? : xorp-users at xorp.org ?? : ?? : Help I am a begginer at XORP. XORP uses scons. Now, I want to add my new creating directory, clickinf. So I change SConscript file which adds new sub directory. But after scons, when checking obj directory, my directiry is not created. So, I also deleted the existing directory cli or bgp in obj directory. And I tried scons again, but cli or bgp directory is also not created. Now I all deleted directory in obj. after scons, any directory is not created. What problems do I have ??? I attached SConscript file which are using now. I just changed SConscript file for mine. I add my new directory clickinf including sources to the XORP sources. Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. ////////////////////////////////// // SConscript file ///////////////////////////////// # Copyright (c) 2009-2011 XORP, Inc and Others # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, Version 2, June # 1991 as published by the Free Software Foundation. Redistribution # and/or modification of this program under the terms of any other # version of the GNU General Public License is not permitted. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, # see the GNU General Public License, Version 2, a copy of which can be # found in the XORP LICENSE.gpl file. # # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; # http://xorp.net # $ID$ Import('env') subdirs = [ 'cli', 'libcomm', 'libxorp', 'libxipc', 'libproto', 'libfeaclient', 'xrl/targets', 'xrl/interfaces', # 'xrl/tests', # XXX not in use. 'etc/templates', 'fea', 'fib2mrib', 'mld6igmp', 'mrt', 'pim', 'policy', 'rib', 'rtrmgr', 'static_routes', 'utils', ] if env['enable_olsr']: subdirs.append('contrib/olsr') if env['enable_wrapper']: subdirs.append('contrib/wrapper') if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. subdirs.append('clickinf') if env['enable_bgp']: subdirs.append('bgp') if env['enable_ospf']: subdirs.append('ospf') if env['enable_rip']: subdirs.append('rip') if env['enable_vrrp']: subdirs.append('vrrp') SConscript(dirs = subdirs, exports='env') ====================================================== Littletree. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140807/c8abb714/attachment.html From greearb at candelatech.com Thu Aug 7 09:08:08 2014 From: greearb at candelatech.com (Ben Greear) Date: Thu, 07 Aug 2014 09:08:08 -0700 Subject: [Xorp-users] Help In-Reply-To: <3E2A969AE41B5643ACAFCD3B7B411E06725B0003@SMTP3.etri.info> References: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info>, <3E2A969AE41B5643ACAFCD3B7B411E06725AFFB7@SMTP3.etri.info> <3E2A969AE41B5643ACAFCD3B7B411E06725B0003@SMTP3.etri.info> Message-ID: <53E3A468.1010602@candelatech.com> On 08/07/2014 05:26 AM, ??? wrote: > > I have one more thing to ask. > In click router, there is a string. > How can I use it on the XORP ? > > We are changing click router for new protocol. > So, We want to check the status of the click such as elements list, count of each element. > So, I want to use CotrolSocketClient class on the XORP. > By the way, the string format of XORP is different from that of click router. Xorp is written in C++, so using the STL and std::string should be fine as far as I remember.... It has been a while since I looked at xorp code, so please post examples of the code you are talking about, both click and xorp code... Thanks, Ben > > > Littletree. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-07 18:46:09 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *RE: Help > > > I overcome the below problems. > > But I have a question. > My software programs is user mode click. > and I want to control this. > It uses std::string. > In xorp, we use different string. > How can I change string of xorp into std::string of my user mode click ? > > Could you give me some advices ? > > Littletree. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-06 15:58:28 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *Help > > > > > First I made /xorp/clickinf/Sconscript. > > I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. > But running scons, there is a KeyError : 'enable_clickinf'. > > How can I avoid this error ??? > > Littletree. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-06 11:40:58 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *Help > > > > > > > > I am a begginer at XORP. > > XORP uses scons. > > Now, I want to add my new creating directory, clickinf. > > So I change SConscript file which adds new sub directory. > > But after scons, when checking obj directory, my directiry is not created. > > So, I also deleted the existing directory cli or bgp in obj directory. > > And I tried scons again, but cli or bgp directory is also not created. > > Now I all deleted directory in obj. > > after scons, any directory is not created. > > What problems do I have ??? > > > > I attached SConscript file which are using now. > > I just changed SConscript file for mine. > > I add my new directory clickinf including sources to the XORP sources. > > > > Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. > > > > > > > > ////////////////////////////////// > > // SConscript file > > ///////////////////////////////// > > # Copyright (c) 2009-2011 XORP, Inc and Others > # > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License, Version 2, June > # 1991 as published by the Free Software Foundation. Redistribution > # and/or modification of this program under the terms of any other > # version of the GNU General Public License is not permitted. > # > # This program is distributed in the hope that it will be useful, but > # WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, > # see the GNU General Public License, Version 2, a copy of which can be > # found in the XORP LICENSE.gpl file. > # > # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; > # http://xorp.net > > # $ID$ > > Import('env') > > subdirs = [ > 'cli', > 'libcomm', > 'libxorp', > 'libxipc', > 'libproto', > 'libfeaclient', > 'xrl/targets', > 'xrl/interfaces', > # 'xrl/tests',# XXX not in use. > 'etc/templates', > 'fea', > 'fib2mrib', > 'mld6igmp', > 'mrt', > 'pim', > 'policy', > 'rib', > 'rtrmgr', > 'static_routes', > 'utils', > ] > > if env['enable_olsr']: > subdirs.append('contrib/olsr') > > if env['enable_wrapper']: > subdirs.append('contrib/wrapper') > > if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. > subdirs.append('clickinf') > > if env['enable_bgp']: > subdirs.append('bgp') > > if env['enable_ospf']: > subdirs.append('ospf') > > if env['enable_rip']: > subdirs.append('rip') > > if env['enable_vrrp']: > subdirs.append('vrrp') > > > SConscript(dirs = subdirs, exports='env') > ====================================================== > > > > Littletree. > > > > > > > > > > > > _______________________________________________ > Xorp-users mailing list > Xorp-users at xorp.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From hsjeon88 at etri.re.kr Fri Aug 8 02:38:12 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Fri, 8 Aug 2014 09:38:12 +0000 Subject: [Xorp-users] Help In-Reply-To: <53E3A468.1010602@candelatech.com> References: <3E2A969AE41B5643ACAFCD3B7B411E06725AED5C@SMTP3.etri.info>, <3E2A969AE41B5643ACAFCD3B7B411E06725AFFB7@SMTP3.etri.info> <3E2A969AE41B5643ACAFCD3B7B411E06725B0003@SMTP3.etri.info>, <53E3A468.1010602@candelatech.com> Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725B0378@SMTP3.etri.info> Hi, Ben I added Clickinf directory as a protocol to XORP. In startup, Clickinf connects a netlink with CLICK in user mode with port 7777 and ip 127.0.0.1, local IP. When command is received from CLI, clickinf want to make a funcion call of csclient,hh. I already make a sample test using controlsocketTest.cpp , csclient.cc and csclient.hh. When you see the controlsocketTest.cpp, you can know it easily. I want to make that kind of function call using XORP. Attached file description : 1. Scons-error-mesg : When I scons in XORP, there is a error message. 2. clickinf-2-0808.tar . clickinf directory file + . /xrl/interfaces/clickinf.xif ./Xrl/targets/clickinf.tgt ./etc/templates/clickinf.cmds, clickinf.tp 3. controlsocketTest.cpp ; when you call elements lists of click, you can use this sample. + csclient.cc (clickinf-2-0808.tar) + csclient.hh (clickinf-2-0808.tar) Thank you for answering my question. Littletree, Haesook. ________________________________ ?? ?? : "Ben Greear" ?? ?? : 2014-08-08 01:08:13 ( +09:00 ) ?? ?? : ??? ?? : xorp-users at xorp.org ?? : Re: [Xorp-users] Help On 08/07/2014 05:26 AM, ??? wrote: > > I have one more thing to ask. > In click router, there is a string. > How can I use it on the XORP ? > > We are changing click router for new protocol. > So, We want to check the status of the click such as elements list, count of each element. > So, I want to use CotrolSocketClient class on the XORP. > By the way, the string format of XORP is different from that of click router. Xorp is written in C++, so using the STL and std::string should be fine as far as I remember.... It has been a while since I looked at xorp code, so please post examples of the code you are talking about, both click and xorp code... Thanks, Ben > > > Littletree. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-07 18:46:09 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *RE: Help > > > I overcome the below problems. > > But I have a question. > My software programs is user mode click. > and I want to control this. > It uses std::string. > In xorp, we use different string. > How can I change string of xorp into std::string of my user mode click ? > > Could you give me some advices ? > > Littletree. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-06 15:58:28 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *Help > > > > > First I made /xorp/clickinf/Sconscript. > > I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. > But running scons, there is a KeyError : 'enable_clickinf'. > > How can I avoid this error ??? > > Littletree. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-06 11:40:58 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *Help > > > > > > > > I am a begginer at XORP. > > XORP uses scons. > > Now, I want to add my new creating directory, clickinf. > > So I change SConscript file which adds new sub directory. > > But after scons, when checking obj directory, my directiry is not created. > > So, I also deleted the existing directory cli or bgp in obj directory. > > And I tried scons again, but cli or bgp directory is also not created. > > Now I all deleted directory in obj. > > after scons, any directory is not created. > > What problems do I have ??? > > > > I attached SConscript file which are using now. > > I just changed SConscript file for mine. > > I add my new directory clickinf including sources to the XORP sources. > > > > Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. > > > > > > > > ////////////////////////////////// > > // SConscript file > > ///////////////////////////////// > > # Copyright (c) 2009-2011 XORP, Inc and Others > # > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License, Version 2, June > # 1991 as published by the Free Software Foundation. Redistribution > # and/or modification of this program under the terms of any other > # version of the GNU General Public License is not permitted. > # > # This program is distributed in the hope that it will be useful, but > # WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, > # see the GNU General Public License, Version 2, a copy of which can be > # found in the XORP LICENSE.gpl file. > # > # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; > # http://xorp.net > > # $ID$ > > Import('env') > > subdirs = [ > 'cli', > 'libcomm', > 'libxorp', > 'libxipc', > 'libproto', > 'libfeaclient', > 'xrl/targets', > 'xrl/interfaces', > # 'xrl/tests',# XXX not in use. > 'etc/templates', > 'fea', > 'fib2mrib', > 'mld6igmp', > 'mrt', > 'pim', > 'policy', > 'rib', > 'rtrmgr', > 'static_routes', > 'utils', > ] > > if env['enable_olsr']: > subdirs.append('contrib/olsr') > > if env['enable_wrapper']: > subdirs.append('contrib/wrapper') > > if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. > subdirs.append('clickinf') > > if env['enable_bgp']: > subdirs.append('bgp') > > if env['enable_ospf']: > subdirs.append('ospf') > > if env['enable_rip']: > subdirs.append('rip') > > if env['enable_vrrp']: > subdirs.append('vrrp') > > > SConscript(dirs = subdirs, exports='env') > ====================================================== > > > > Littletree. > > > > > > > > > > > > _______________________________________________ > Xorp-users mailing list > Xorp-users at xorp.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users > -- Ben Greear Candela Technologies Inc http://www.candelatech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140808/f1011841/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Scons-error-mesg.JPG Type: image/jpeg Size: 200514 bytes Desc: Scons-error-mesg.JPG Url : http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140808/f1011841/attachment-0001.jpe -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: controlsocketTester.cpp Url: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140808/f1011841/attachment-0001.ksh -------------- next part -------------- A non-text attachment was scrubbed... Name: clickinf-2-0808.tar Type: application/x-tar Size: 61440 bytes Desc: clickinf-2-0808.tar Url : http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140808/f1011841/attachment-0001.tar From hsjeon88 at etri.re.kr Wed Aug 13 01:44:49 2014 From: hsjeon88 at etri.re.kr (=?utf-8?B?7KCE7ZW07IiZ?=) Date: Wed, 13 Aug 2014 08:44:49 +0000 Subject: [Xorp-users] Help Message-ID: <3E2A969AE41B5643ACAFCD3B7B411E06725B10C7@SMTP3.etri.info> Q1: I solved below my problems. But now stll have one problem. As I said before to you, I want to get information from CLICK router. So, I add CLI for reading routerversion of CLICK for example. But when I run the ./xorp_rtrmgr and ./xorpsh, CLI said that some information is always registed and then I can get that information. Sometimes, I don't want to set any information and just get information CLICK gives to me and prints that in CLI. I think tool directory of BGP. OSPF, RIP is behaved like that. So, I add some information for exampel. But I cannot see that CLI command. How can I see that command just to get information from CLICK. Q2: xorp_clickinf.cc file is like this. Is this content right ??? =================================================================================== #include "clickinf_module.h" #include "libxorp/xlog.h" #include "libxorp/eventloop.hh" //#inlcude "libxorp/ipv4.hh" #include "libxorp/xorp.h" #include "libxorp/debug.h" //#include "libxipc/finder_constants.hh" #include "libxipc/xrl_std_router.hh" #include "clickinf_exception.hh" #include "clickinf_target.hh" #include "clickinf.hh" int main(int argc, char* argv[]) { XorpUnexpectedHandler x(xorp_unexpected_handler); UNUSED(argc); xlog_init(argv[0], 0); xlog_set_verbose(XLOG_VERBOSE_LOW); xlog_add_default_output(); xlog_start(); try { EventLoop e; //string finder_host = FinderConstants::FINDER_DEFAULT_HOST().str(); //uint16_t finder_port = FinderConstants::FINDER_DEFAULT_PORT(); //XrlStdRouter rtr(e,"clickinf", "finder", finder_port); //XrlStdRouter rtr(e,"clickinf", "127.0.0.1", finder_port); XrlStdRouter rtr(e,"clickinf"); Clickinf cif(e); ClickinfTarget ClickinfTgt(rtr, cif); wait_until_xrl_router_is_ready(e, rtr); setup_dflt_sighandlers(); //cif.start(); while(1) e.run(); } catch(const ClickinfException& e) { XLOG_FATAL("ClickinfException: %s", e.str().c_str()); } xlog_stop(); xlog_exit(); exit(0); } Littletree. ________________________________ ?? ?? : "???" ?? ?? : 2014-08-08 18:38:13 ( +09:00 ) ?? ?? : Ben Greear ?? : xorp-users at xorp.org ?? : RE: [Xorp-users] Help Hi, Ben I added Clickinf directory as a protocol to XORP. In startup, Clickinf connects a netlink with CLICK in user mode with port 7777 and ip 127.0.0.1, local IP. When command is received from CLI, clickinf want to make a funcion call of csclient,hh. I already make a sample test using controlsocketTest.cpp , csclient.cc and csclient.hh. When you see the controlsocketTest.cpp, you can know it easily. I want to make that kind of function call using XORP. Attached file description : 1. Scons-error-mesg : When I scons in XORP, there is a error message. 2. clickinf-2-0808.tar . clickinf directory file + . /xrl/interfaces/clickinf.xif ./Xrl/targets/clickinf.tgt ./etc/templates/clickinf.cmds, clickinf.tp 3. controlsocketTest.cpp ; when you call elements lists of click, you can use this sample. + csclient.cc (clickinf-2-0808.tar) + csclient.hh (clickinf-2-0808.tar) Thank you for answering my question. Littletree, Haesook. ________________________________ ?? ?? : "Ben Greear" ?? ?? : 2014-08-08 01:08:13 ( +09:00 ) ?? ?? : ??? ?? : xorp-users at xorp.org ?? : Re: [Xorp-users] Help On 08/07/2014 05:26 AM, ??? wrote: > > I have one more thing to ask. > In click router, there is a string. > How can I use it on the XORP ? > > We are changing click router for new protocol. > So, We want to check the status of the click such as elements list, count of each element. > So, I want to use CotrolSocketClient class on the XORP. > By the way, the string format of XORP is different from that of click router. Xorp is written in C++, so using the STL and std::string should be fine as far as I remember.... It has been a while since I looked at xorp code, so please post examples of the code you are talking about, both click and xorp code... Thanks, Ben > > > Littletree. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-07 18:46:09 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *RE: Help > > > I overcome the below problems. > > But I have a question. > My software programs is user mode click. > and I want to control this. > It uses std::string. > In xorp, we use different string. > How can I change string of xorp into std::string of my user mode click ? > > Could you give me some advices ? > > Littletree. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-06 15:58:28 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *Help > > > > > First I made /xorp/clickinf/Sconscript. > > I changed /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory. > But running scons, there is a KeyError : 'enable_clickinf'. > > How can I avoid this error ??? > > Littletree. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > *?? ?? : *"???" > *?? ?? : *2014-08-06 11:40:58 ( +09:00 ) > *?? ?? : *xorp-users at xorp.org > *?? : * > *?? : *Help > > > > > > > > I am a begginer at XORP. > > XORP uses scons. > > Now, I want to add my new creating directory, clickinf. > > So I change SConscript file which adds new sub directory. > > But after scons, when checking obj directory, my directiry is not created. > > So, I also deleted the existing directory cli or bgp in obj directory. > > And I tried scons again, but cli or bgp directory is also not created. > > Now I all deleted directory in obj. > > after scons, any directory is not created. > > What problems do I have ??? > > > > I attached SConscript file which are using now. > > I just changed SConscript file for mine. > > I add my new directory clickinf including sources to the XORP sources. > > > > Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created. > > > > > > > > ////////////////////////////////// > > // SConscript file > > ///////////////////////////////// > > # Copyright (c) 2009-2011 XORP, Inc and Others > # > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License, Version 2, June > # 1991 as published by the Free Software Foundation. Redistribution > # and/or modification of this program under the terms of any other > # version of the GNU General Public License is not permitted. > # > # This program is distributed in the hope that it will be useful, but > # WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, > # see the GNU General Public License, Version 2, a copy of which can be > # found in the XORP LICENSE.gpl file. > # > # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA; > # http://xorp.net > > # $ID$ > > Import('env') > > subdirs = [ > 'cli', > 'libcomm', > 'libxorp', > 'libxipc', > 'libproto', > 'libfeaclient', > 'xrl/targets', > 'xrl/interfaces', > # 'xrl/tests',# XXX not in use. > 'etc/templates', > 'fea', > 'fib2mrib', > 'mld6igmp', > 'mrt', > 'pim', > 'policy', > 'rib', > 'rtrmgr', > 'static_routes', > 'utils', > ] > > if env['enable_olsr']: > subdirs.append('contrib/olsr') > > if env['enable_wrapper']: > subdirs.append('contrib/wrapper') > > if env['enable_clickinf']: ####################################################### This is for mine. I added this for my purpose. > subdirs.append('clickinf') > > if env['enable_bgp']: > subdirs.append('bgp') > > if env['enable_ospf']: > subdirs.append('ospf') > > if env['enable_rip']: > subdirs.append('rip') > > if env['enable_vrrp']: > subdirs.append('vrrp') > > > SConscript(dirs = subdirs, exports='env') > ====================================================== > > > > Littletree. > > > > > > > > > > > > _______________________________________________ > Xorp-users mailing list > Xorp-users at xorp.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users > -- Ben Greear Candela Technologies Inc http://www.candelatech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20140813/19556a44/attachment-0001.html