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:40]
Sridhar Gaddam
ipv6_opnfv_project:create_networks [2015/12/30 08:40] (current)
Sridhar Gaddam
Line 6: Line 6:
 Steps to be executed on the snsj113 (IP: 198.59.156.113) machine (''​refer to [[http://​spirent.app.box.com/​notes/​37713582266?​s=tgm98glcerw9zlcdy6pclavjlorgop4v|the details of lab environment]]''​). Steps to be executed on the snsj113 (IP: 198.59.156.113) machine (''​refer to [[http://​spirent.app.box.com/​notes/​37713582266?​s=tgm98glcerw9zlcdy6pclavjlorgop4v|the details of lab environment]]''​).
  
-1. Login as odl user and change directory to devstack.+1. Login as odl user and source the credentials
  
    cd ~/devstack    cd ~/devstack
 +   ​odl@opnfv-openstack-ubuntu:​~/​devstack$ source openrc admin demo   
 +2. Clone the opnfv_os_ipv6_poc repo.
  
-2Source the credentials. +   git clone https://​github.com/​sridhargaddam/​opnfv_os_ipv6_poc.git /opt/stack/opnfv_os_ipv6_poc
- +
-   ​odl@opnfv-openstack-ubuntu:​~/devstack$ source openrc admin demo+
  
 3. We want to manually create networks/​subnets that will help us to achieve the POC, so we have used the flag, ''​NEUTRON_CREATE_INITIAL_NETWORKS=False''​ in ''​local.conf''​ file. When this flag is set to False, devstack does not create any networks/​subnets during the setup phase. ​ 3. We want to manually create networks/​subnets that will help us to achieve the POC, so we have used the flag, ''​NEUTRON_CREATE_INITIAL_NETWORKS=False''​ in ''​local.conf''​ file. When this flag is set to False, devstack does not create any networks/​subnets during the setup phase. ​
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. ​ +
- +
-    $radvd -C /​opt/​stack/​opnfv_os_ipv6_poc/​scenario2/​radvd.conf -p /​tmp/​br-ex.pid.radvd -m syslog+
  
-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.+    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
  
-    sysctl -w net.ipv6.conf.$router_interface.accept_ra=2 +Configure the downstream route pointing to the eth0 iface of vRouter.  
-    ​sysctl ​-w net.ipv6.conf.$router_interface.accept_ra_rt_info_max_plen=64+    ​ip -6 route add 2001:​db8:​0:​2::/​64 via 2001:​db8:​0:​1:​f816:​3eff:​fe11:​1111
  
-    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+    Note: The routing table should now look something similar ​to shown below
     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.1450968012.txt.gz · Last modified: 2015/12/24 14:40 by Sridhar Gaddam