Date: Mon, 18 Feb 2013 01:08:56 -0800 From: Craig Leres <leres@ee.lbl.gov> To: freebsd-hackers@freebsd.org Subject: "ndp -s" doesn't join the solicited node multicast group (9.1-RELEASE) Message-ID: <5121EFA8.1020902@ee.lbl.gov>
next in thread | raw e-mail | index | archive | help
I've been using openvpn to tunnel IPv4 into work for a few years now. By using addresses from the same subnet as the endpoint at at work and "arp -s" I can work from home and access services as if I am on the subnet at work. I recently tried to add IPv6 to my openvpn setup. It wasn't difficult to get the endpoints configured so I could ping across the tunnel from one to the other (well, I think there are a couple of bugs in openvpn-2.3.0 with respect to ifconfig-ipv6 but I was able to "fix" them). But I'm not having much success using "ndp -s" to have my endpoint respond to neighbor solicitation requests from hosts on the subnet. I have systems using IPv6 interface aliases and using "route monitor" I see that in addition to the RTM_ADD that happens when you add an interface alias, there's also a RTM_NEWMADDR to join the solicited node multicast group so that the host will actually receive neighbor solicitations: got message of size 140 on Sun Feb 17 22:49:35 2013 RTM_NEWADDR: address being added to iface: len 140, metric 0, flags:<HOST> sockaddrs: <NETMASK,IFP,IFA> (0) 0 0 0 ffff ffff ffff ffff 0 0 0 0 0 0 em0:0.30.48.74.90.52 2620:83:8000:5502::1187 got message of size 272 on Sun Feb 17 22:49:35 2013 RTM_ADD: Add Route: len 272, pid: 0, seq 0, errno 0, flags:<UP,HOST,STATIC> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK> 2620:83:8000:5502::1187 0.30.48.74.90.52 (0) 0 0 0 ffff ffff ffff ffff 0 0 0 0 0 0 got message of size 160 on Sun Feb 17 22:49:35 2013 RTM_NEWMADDR: new multicast group membership on iface: len 160, sockaddrs: <GATEWAY,IFP,IFA> 33.33.ff.0.11.87 em0:0.30.48.74.90.52 ff02::1:ff00:1187%em0 But that does not happen when I add the IPv6 address to my ndp table using "ndp -s": got message of size 256 on Mon Feb 18 00:48:35 2013 RTM_GET: Report Metrics: len 256, pid: 24410, seq 1, errno 0, flags:<UP,DONE> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK> 2620:83:8000:5502:: (255) ffff ffff ffff ffff ffff ffff ffff got message of size 240 on Mon Feb 18 00:48:35 2013 RTM_ADD: Add Route: len 240, pid: 24410, seq 2, errno 0, flags:<HOST,DONE,LLINFO,STATIC,PROTO2> locks: inits: sockaddrs: <DST,GATEWAY> 2620:83:8000:5502::d5 0.30.48.74.90.52 I can see my new address in ndp -an output: 2620:83:8000:5502::d5 00:30:48:74:90:52 em0 permanent R p but without joining the solicited node multicast group it's no surprise the host doesn't respond properly. Anybody know what I'm doing wrong? Craig
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5121EFA8.1020902>