OpenStack Neutron CLI for NSXv

  • Create a new shared network

neutron net-create network1 –name network1 –shared

  • Create a new exclusive network

neutron net-create network1 –name network1

  • Create a VLAN network

neutron net-create net-vlan –provider:segmentation_id VLAN-ID –provider:network_type vlan –provider:physical_network DVS-Switch-ID

  • Create a subnet

neutron subnet-create network1 172.16.31.0/24 –name subnet01 –allocation-pool start=172.16.31.2,end=172.16.31.254 –disable-dhcp –gateway 172.16.31.1

  • Create a DLR

neutron router-create dlr01 –distributed True

  • Create a Edge

neutron router-create –distributed false edg01 –router-type exclusive

  • Add interface to DLR or Edge

neutron router-interface-add dlr01 subnet01

  • Update the routing for Edge or DLR

neutron router-update edg01 –routes type=dict list=true destination=0.0.0.0/0,nexthop=172.16.32.1 destination=10.0.0.0/8,nexthop=10.1.1.1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s