OVSDB VTEP with Midonet Configuration
...
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and copy and paste the commands into the CLI.
SW1 Configure:
Code Block |
---|
set interface gigabit-ethernet te-1/1/33 speed "1000" set interface gigabit-ethernet te-1/1/33 family ethernet-switching native-vlan-id 1000 set interface gigabit-ethernet te-1/1/43 family ethernet-switching port-mode "trunk" set interface gigabit-ethernet te-1/1/43 family ethernet-switching vlan members 100 set protocols ovsdb management-ip 10.10.51.157 set protocols ovsdb controller c1 protocol "ptcp" set protocols ovsdb interface te-1/1/43 setset l3-interface vlan-interface interface 1000 vif 1000 address 192.168.10.1 prefix-length 24 set vlans vlan-id 100 set vlans vlan-id 1000 l3-interface "1000" set vxlans source-interface 1000 address 192.168.10.1 set vxlans ovsdb-managed true |
...
Configure the VLAN ID to 10 for vxlan domain.
Code Block set vlans vlan-id 100
Configure the VLAN ID to 1000 for IP routing.
Code Block set vlans vlan-id 1000 l3-interface vlan-1000
Configure the te-1/1/1 interface VLAN ID to 1000.
Code Block set interface gigabit-ethernet te-1/1/33 family ethernet-switching native-vlan-id 1000
Configure VLAN trunk for te-1/1/43.
Code Block set interface gigabit-ethernet te-1/1/43 family ethernet-switching port-mode "trunk"
Configure the te-1/1/43 interface VLAN ID to 100.
Code Block set interface gigabit-ethernet te-1/1/43 family ethernet-switching vlan members 100
Configure IP address for the loopback interface.
Code Block set vlanset l3-interface loopback lo address 10.10.10.1 prefix-length 32
Configure IP address for the vlan-interface vlan-1000.
Code Block set vlanl3-interface interface vlan-1000 vifinterface vlan-1000 address 192.168.10.1 prefix-length 24
Configure VTEP interface sources IP address.
Code Block set vxlans source-interface vlan-1000 address 192.168.10.1
Enable VXLAN managed by ovsdb
Code Block set vxlan ovsdb-managed true
Configure ovsdb management interface IP address
Code Block set protocols ovsdb management-ip 10.10.51.157
Configure ovsdb controller protocol
Code Block set protocols ovsdb controller c1 protocol ptcp
Configure ovsdb controller port
Code Block set protocols ovsdb controller ovsdb port 6632
Configure ovsdb the interface on the VTEP
Code Block set protocols ovsdb interface te-1/1/43
...