This procedure describes how to create the wan network for a INFN/DFA project. This is needed only if:
- This project is using a 10.64.x.0 lan network
- This project needs one or more floating IP
The "wan" network is not needed for projects using a 10.67.x.0 or 10.68.x.0 LAN
Step-by-step guide
Let's suppose that the "wan" network must be created for the GLV project (project_id = 6dae634709c4478d92f70c388897fc96)
Let's suppose that this project is using the 10.64.53.0 LAN network
First of all increase (from 1 to 2) the quota for network and subnetworks:
neutron quota-update --network 2 --tenant-id 6dae634709c4478d92f70c388897fc96 neutron quota-update --subnet 2 --tenant-id 6dae634709c4478d92f70c388897fc96
Then create the network, the subnetwork and attach it to the router (in this case please choose "10.63.53.0" for the wan subnetwork, since this project is using "10.64.53.0" for the lan)
neutron net-create --tenant-id ${PROJECT_ID} GLV-wan
neutron subnet-create ${PROJECT_COMPACT_NAME}-wan $1.$2.0/24 --enable-dhcp=True --name sub-${PROJECT_COMPACT_NAME}-wan --\
dns-nameserver $3 --dns-nameserver $4 --dns-nameserver $5 --tenant-id ${PROJECT_ID}
neutron router-interface-add ${ROUTER} sub-${PROJECT__COMPACT_NAME}-wan
neutron net-create --tenant-id ${PROJECT_ID} GLV-wan
neutron subnet-create ${PROJECT_COMPACT_NAME}-wan $1.$2.0/24 --enable-dhcp=True --name sub-${PROJECT_COMPACT_NAME}-wan --\
dns-nameserver $3 --dns-nameserver $4 --dns-nameserver $5 --tenant-id ${PROJECT_ID}
neutron router-interface-add ${ROUTER} sub-${PROJECT__COMPACT_NAME}-wan