This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ipv6_opnfv_project:create_networks [2015/10/21 15:25] Sridhar Gaddam |
ipv6_opnfv_project:create_networks [2015/12/22 10:59] Sridhar Gaddam |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Step 5: Creating Networks and Subnets ===== | + | ===== Step 4: Creating Networks and Subnets ===== |
OPNFV POC OpenStack Setup Instructions. | OPNFV POC OpenStack Setup Instructions. | ||
Line 94: | Line 94: | ||
7. Copy the contents of the following url to ''metadata.txt'' (i.e., metadata which enables IPv6 router functionality inside vRouter) | 7. Copy the contents of the following url to ''metadata.txt'' (i.e., metadata which enables IPv6 router functionality inside vRouter) | ||
- | http://fpaste.org/276989/39903414/ | + | http://fpaste.org/303942/50781923/ |
8. Boot the vRouter using ''Fedora20'' image on the Compute node (hostname: opnfv-odl-ubuntu) | 8. Boot the vRouter using ''Fedora20'' image on the Compute node (hostname: opnfv-odl-ubuntu) | ||
- | nova boot --image Fedora20 --flavor m1.small --user-data=./metadata.txt --availability-zone nova:opnfv-odl-ubuntu --nic net-id=$(neutron net-list | grep -w ipv4-int-network2 | awk '{print $2}') --nic net-id=$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') --key-name vRouterKey vRouter | + | nova boot --image Fedora20 --flavor m1.small --user-data ./metadata.txt --availability-zone nova:opnfv-odl-ubuntu --nic net-id=$(neutron net-list | grep -w ipv4-int-network2 | awk '{print $2}') --nic net-id=$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') --key-name vRouterKey vRouter |
9. Verify that Fedora20 image boots up successfully and the ssh keys are properly injected. | 9. Verify that Fedora20 image boots up successfully and the ssh keys are properly injected. | ||
Line 138: | Line 138: | ||
# 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}') | + | 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 |
# Copy the following contents to some file (say ''/tmp/br-ex.radvd.conf'') | # Copy the following contents to some file (say ''/tmp/br-ex.radvd.conf'') | ||
- | interface $router-interface | + | interface $router_interface |
{ | { | ||
AdvSendAdvert on; | AdvSendAdvert on; | ||
Line 159: | Line 159: | ||
$radvd -C /tmp/br-ex.radvd.conf -p /tmp/br-ex.pid.radvd -m syslog | $radvd -C /tmp/br-ex.radvd.conf -p /tmp/br-ex.pid.radvd -m syslog | ||
- | You will also have to add an ipv6 route which points to the ''eth0'' interface of vRouter. This is necessary for the ipv6 router to know that ''2001:db8:0:2::/64'' is reachable via the ''eth0'' interface of vRouter. | + | Configure the $router_interface proc entries to process the Router Advts from vRouter and automatically add a downstream route pointing to the LLA of the vRouter eth0 iface. |
- | ip -6 route add 2001:db8:0:2::/64 via <LLA-of-eth0-iface-on-vRouter> dev <qr-iface> | + | sysctl -w net.ipv6.conf.$router_interface.accept_ra=2 |
- | + | sysctl -w net.ipv6.conf.$router_interface.accept_ra_rt_info_max_plen=64 | |
- | # Verify that the route is properly added. | + | |
+ | 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 | ||
Line 190: | Line 190: | ||
{{:ipv6_opnfv_project:setup-os_odl.png}} | {{:ipv6_opnfv_project:setup-os_odl.png}} | ||
+ | |||
+ | [[http://199.188.118.108:8181/index.htm| ODL DLUX UI]] would display the two nodes as shown below. | ||
+ | |||
+ | {{:ipv6_opnfv_project:odl-dlux_ipv6_poc.png}} |