<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>As you suggested I added the IPv6 address 2020::2/120 manually to my client using the below command:</div><div><br></div><div>










<p style="margin:0in;font-size:11pt"><i><span style="font-family:monospace,monospace">ip
-6 addr add 2020::2/120 dev eth1</span></i></p>




</div><div><br></div><div>when I pinged the server it failed :</div><div><br></div><div><i><span style="font-family:monospace,monospace">root@Ubuntu3481:~# ping6 -I 2020::2 1040::2<br>PING 1040::2(1040::2) from 2020::2 : 56 data bytes<br>ping: sendmsg: Network is unreachable<br>ping: sendmsg: Network is unreachale</span></i></div><div><br></div><div>Then I added a default route:</div><div><br></div><div><i><span style="font-family:monospace,monospace">root@Ubuntu3481:~# ip -6 route add default via 2020::1<br>root@Ubuntu3481:~# ip -6 route<br>2020::/120 dev eth1  proto kernel  metric 256<br>fe80::/64 dev eth0  proto kernel  metric 256<br>fe80::/64 dev eth1  proto kernel  metric 256<br>default via 2020::1 dev eth1  metric 1024</span></i></div><div><br></div><div>I see the ping is working fine now:</div><div><br></div><div><i><span style="font-family:monospace,monospace">root@Ubuntu3481:~# ping6 -I 2020::2 1040::2<br>PING 1040::2(1040::2) from 2020::2 : 56 data bytes<br>64 bytes from 1040::2: icmp_seq=1 ttl=63 time=0.278 ms<br>64 bytes from 1040::2: icmp_seq=2 ttl=63 time=0.178 ms<br>64 bytes from 1040::2: icmp_seq=3 ttl=63 time=0.172 ms</span></i></div><div><br></div><div>But when I remove the manually configured IPv6 address and try to get a new IPv6 using "dhclient -6 eth1" again it fails. I see the same log lines in dnsmasq log:</div><div><br></div><div>Jan  7 07:19:54 dnsmasq-dhcp[3815]: DHCPSOLICIT(m1s1p7) 00:01:00:01:23:c5:ba:1b:00:50:56:96:d1:7c<br>Jan  7 07:19:54 dnsmasq-dhcp[3815]: DHCPADVERTISE(m1s1p7) 2020::19 00:01:00:01:23:c5:ba:1b:00:50:56:96:d1:7c<br>Jan  7 07:19:55 dnsmasq-dhcp[3815]: DHCPSOLICIT(m1s1p7) 00:01:00:01:23:c5:ba:1b:00:50:56:96:d1:7c<br>Jan  7 07:19:55 dnsmasq-dhcp[3815]: DHCPADVERTISE(m1s1p7) 2020::19 00:01:00:01:23:c5:ba:1b:00:50:56:96:d1:7c<br></div><div><br></div><div>When we have enable-ra configured wont dnsmasq advertise the gateway IP's ? Do we need to enable RA even in the switch where relay agent is running ?  can we configure default gateway to the clients via dhcpv6 options similar to IPv4 ?</div><div><br></div><div><b>PS: If I replace dnsmasq server with ISC DHCP server everything works fine.<br></b></div><div><br></div><div>Thanks</div><div>-Sandeep</div><div><br></div><div><br></div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 4, 2019 at 7:32 PM Geert Stappers <<a href="mailto:stappers@hendrikx-itc.nl">stappers@hendrikx-itc.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Jan 04, 2019 at 05:34:03PM +0530, Sandeep K M wrote:<br>
> Hi,<br>
> <br>
> On Fri, Jan 4, 2019 at 3:59 PM Geert Stappers wrote:<br>
> > On Fri, Jan 04, 2019 at 02:47:11PM +0530, Sandeep K M wrote:<br>
> > > On Fri, Jan 4, 2019 at 2:30 PM Geert Stappers wrote:<br>
> > > > On Fri, Jan 04, 2019 at 11:55:49AM +0530, Sandeep K M wrote:<br>
> > > > > [ .... ]<br>
> > > > > Please let me know if any other information is required.<br>
> > > ><br>
> > > > At the server<br>
> > > >   ip link       # what interfaces are there<br>
> > > >   ip -6 address<br>
> > > >   ip -6 route<br>
> > ><br>
> > > Here are the output of the commands:<br>
> > ><br>
> > > root@8320:~# *ip -6 addr*<br>
> > > 49: m1s1p7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UNKNOWN qlen 1000<br>
> > >     inet6 1040::2/120 scope global<br>
> > >        valid_lft forever preferred_lft forever<br>
> > >     inet6 fe80::480f:cf00:7af:8444/64 scope link<br>
> > >        valid_lft forever preferred_lft forever<br>
> ><br>
> > Based upon that: there is only 1 interface<br>
<br>
But it are about sixty<br>
<br>
<br>
> > > root@8320:~# *ip -6 route*<br>
> > > 1040::/120 dev m1s1p7  proto kernel  metric 256  pref medium<br>
> > > 2020::/120 via 1040::1 dev m1s1p7  proto static  metric 512  pref medium<br>
> ><br>
> > So there is some kind of routing information where the 2020::/120 network<br>
> > is ...<br>
> ><br>
<br>
In the non-stripped version<br>
> fe80::/64 dev bridge-vrf  proto kernel  metric 256  pref medium<br>
> fe80::/64 dev tap0  proto kernel  metric 256  pref medium<br>
> fe80::/64 dev tap-br0  proto kernel  metric 256  pref medium<br>
> fe80::/64 dev m1s1p7  proto kernel  metric 256  pref medium<br>
(do notice there is no default route)<br>
<br>
> > > Sorry forgot to capture "ip link" output. The setup is disassembled as of<br>
> > > now but if it is required then I will recreate the setup and send you the<br>
> > > output.<br>
> ><br>
> > Come again?<br>
> > As in: "How was the output of `ip -6 addr` and `ip -6 route` generated?"<br>
> ><br>
> These command output is what I have captured previously for my reference<br>
> before dissembling the setup.<br>
<br>
OK. Thanks for explaining.<br>
<br>
> *I have recreated the setup and attached (ip-command-output.txt) is the<br>
> output of the commands that you have requested in full*.<br>
<br>
> Please let me know if any other information is needed.<br>
<br>
Not yet mentioned in this thread is working connectity between "server"<br>
and "client".  This will require temporary manual configuration<br>
of an IPv6 address at client. Let say it is 2020::2/120.<br>
Then verify with more than "ping". Example given:  `ssh 1040::2`<br>
<br>
It shall reveal how well router ( with the odd name 'Switch' ) is<br>
configured for routing between 1040::/120 and 2020::/120.<br>
Also if the ssh deamon is able to send packets out on the right<br>
interface.<br>
<br>
I do know that it might seem a detour. And we also known that<br>
original poster is already stuck with current setup. So the "detour"<br>
could be a step forward.   Good luck.<br>
<br>
<br>
Groeten<br>
Geert Stappers<br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div>