User Tools

Site Tools


ipv6_opnfv_project:create_networks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ipv6_opnfv_project:create_networks [2015/12/24 14:42]
Sridhar Gaddam
ipv6_opnfv_project:create_networks [2015/12/30 08:40] (current)
Sridhar Gaddam
Line 141: Line 141:
 # Configure the IPv6 address on the <​qr-xxx>​ iface. # Configure the IPv6 address on the <​qr-xxx>​ iface.
  
-    router_interface=$(ip a s | grep -w "​global qr-*" | awk '​{print $7}')+    ​export ​router_interface=$(ip a s | grep -w "​global qr-*" | awk '​{print $7}')
     ip -6 addr add 2001:​db8:​0:​1::​1 dev $router_interface     ip -6 addr add 2001:​db8:​0:​1::​1 dev $router_interface
  
-# Update the file /​opt/​stack/​opnfv_os_ipv6_poc/​scenario2/​radvd.conf with $router_interface+# Update the sample ​radvd.conf ​file with the $router_interface ​and spawn ''​radvd''​ daemon inside the namespace to simulate an external IPv6 router. ​
  
-# Spawn a ''​radvd'' ​daemon to simulate an external router+    cp /​opt/​stack/​opnfv_os_ipv6_poc/​scenario2/​radvd.conf /​tmp/​radvd.$router_interface.conf 
 +    sed -i 's/​$router_interface/​'$router_interface'/g' ​/tmp/radvd.$router_interface.conf 
 +    $radvd -C /​tmp/​radvd.$router_interface.conf -p /​tmp/​br-ex.pid.radvd -m syslog
  
-    $radvd -C /​opt/​stack/​opnfv_os_ipv6_poc/​scenario2/​radvd.conf -/tmp/​br-ex.pid.radvd -m syslog+Configure the downstream route pointing to the eth0 iface of vRouter 
 +    ip -6 route add 2001:​db8:​0:​2::​/64 via 2001:​db8:​0:​1:​f816:​3eff:​fe11:​1111
  
-Configure the $router_interface proc entries to process the Router Advts from vRouter and automatically add a downstream route pointing to the LLA (fe80::​f816:​3eff:​fe11:​1111) of the vRouter eth0 iface. +    ​Note: The routing table should now look something similar ​to shown below
- +
-    sysctl -w net.ipv6.conf.$router_interface.accept_ra=2 +
-    sysctl -w net.ipv6.conf.$router_interface.accept_ra_rt_info_max_plen=64 +
- +
-    ​Note: After the vRouter successfully initializes and starts sending Router Advts, you would see an IPv6 route to the ''​2001:​db8:​0:​2::/​64''​ prefix reachable via LLA of vRouter eth0 iface. You can execute the following command ​to list the IPv6 routes+
     ip -6 route show     ip -6 route show
     2001:​db8:​0:​1::​1 dev qr-42968b9e-62 ​ proto kernel ​ metric 256     2001:​db8:​0:​1::​1 dev qr-42968b9e-62 ​ proto kernel ​ metric 256
     2001:​db8:​0:​1::/​64 dev qr-42968b9e-62 ​ proto kernel ​ metric 256  expires 86384sec     2001:​db8:​0:​1::/​64 dev qr-42968b9e-62 ​ proto kernel ​ metric 256  expires 86384sec
-    2001:​db8:​0:​2::/​64 via fe80::​f816:​3eff:​fe11:​1111 dev qr-42968b9e-62 ​ proto ra  metric 1024  expires 29sec+    2001:​db8:​0:​2::/​64 via 2001:db8:0:1:​f816:​3eff:​fe11:​1111 dev qr-42968b9e-62 ​ proto ra  metric 1024  expires 29sec
     fe80::/64 dev qg-3736e0c7-7c ​ proto kernel ​ metric 256     fe80::/64 dev qg-3736e0c7-7c ​ proto kernel ​ metric 256
     fe80::/64 dev qr-42968b9e-62 ​ proto kernel ​ metric 256     fe80::/64 dev qr-42968b9e-62 ​ proto kernel ​ metric 256
ipv6_opnfv_project/create_networks.1450968138.txt.gz · Last modified: 2015/12/24 14:42 by Sridhar Gaddam