[NETVIRT-1472] Ipv6 Host route is not working since not finding the ipv6 route entries in VMs Created: 24/Oct/18  Updated: 29/Oct/18  Resolved: 29/Oct/18

Status: Resolved
Project: netvirt
Component/s: ipv6service
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: RajaRajan Manickam Assignee: Somashekar B
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

1. TROUBLE DESCRIPTION
1.1. Trouble summary
 Ipv6 Host route entry is not working for dhcpv6 stateful mode but its works fine with ipv4

 
1.2. Detailed trouble description

01c43da9-1a1a-48f0-81cd-ed24be39ca31 host1-n1n2        ACTIVE -          Running     n1=2001:db8:aaaa::c, 10.10.10.16; n2=10.20.20.7, 2001:db8:bbbb::5                     
300c8dee-a650-4c30-917d-f889062a7fdd hostn1-vm1        ACTIVE -          Running     n1=2001:db8:aaaa::9, 10.10.10.4                                                       
00794111-d5e4-4f9c-b89a-1cfe04bc300c hostn2-vm1        ACTIVE -          Running     n2=10.20.20.8, 2001:db8:bbbb::a       

ostinato@ostinato:~$ ifconfig
ens3      Link encap:Ethernet  HWaddr fa:16:3e:50:e3:49  
          inet addr:10.10.10.4  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe50:e349/64 Scope:Link
          inet6 addr: 2001:db8:aaaa::9/128 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:5473 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4679 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:433842 (433.8 KB)  TX bytes:386636 (386.6 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:165 errors:0 dropped:0 overruns:0 frame:0
          TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:12600 (12.6 KB)  TX bytes:12600 (12.6 KB)

not updating the host route for the network 2001:db8:bbbb::/64  due to which its not pinging
ostinato@ostinato:~$ route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001:db8:aaaa::9/128           ::                         U    256 0     0 ens3
2001:db8:aaaa::/64             ::                         UAe  256 1    60 ens3
fe80::/64                      ::                         U    256 0     0 ens3
::/0                           fe80::f816:3eff:fe17:ca52  UGDAe 1024 1    15 ens3
::/0                           ::                         !n   -1  1  3276 lo
::1/128                        ::                         Un   0   2     1 lo
2001:db8:aaaa::9/128           ::                         Un   0   2   258 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::f816:3eff:fe50:e349/128  ::                         Un   0   2     9 lo
ff00::/8                       ::                         U    256 1    11 ens3
::/0                           ::                         !n   -1  1  3276 lo
ostinato@ostinato:~$



 Comments   
Comment by Somashekar B [ 29/Oct/18 ]

IPv6 default route is missing on the VM because IPv6 subnets are not added to the router.

This is a common mistake with DHCPv6. It isn’t just a mapping of DHCP for IPv4 functionality to IPv6.
DHCPv6 does not provide the address, subnet mask, and default gateway that DHCP for IPv4 does.
RAs provide the prefix and default gateway to the client, which then use that prefix to auto-config the interface on that network.
Roughly put, functionality (DHCP for IPv4) = functionality (DHCPv6 + RA).

Generated at Wed Feb 07 20:24:09 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.