Requirements
...
Configuring OVSDB on Trident-II Series switches
CLI Quick 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:
set vlans vlan-id 10
set vlans vlan-id 1000 l3-interface 1000
set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000
set interface gigabit-ethernet te-1/1/10 family ethernet-switching port-mode "trunk"
set interface gigabit-ethernet te-1/1/10 family ethernet-switching vlan members 10
set vlanl3-interface interface loopback lo address 10.10.10.1 prefix-length 32
set l3-interface vlan-interface interface 1000 vif 1000 address 100.10.1.1 prefix-length 24
set protocols static route 20.20.20.1/32 next-hop 100.10.1.2
set protocols ovsdb controller ovsdb protocol ptcp
set protocols ovsdb controller ovsdb address 10.10.50.157
set protocols ovsdb controller ovsdb port 6632
set protocols ovsdb interface te-1/1/10
set vxlan ovsdb-managed true
set vxlans source-interface loopback address 10.10.10.1
...
set vlans vlan-id 10
set vlans vlan-id 1000 l3-interface 1000
set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000
set interface gigabit-ethernet te-1/1/10 family ethernet-switching port-mode "trunk"
set interface gigabit-ethernet te-1/1/10 family ethernet-switching vlan members 10
set vlanset l3-interface interface loopback lo address 20.20.20.1 prefix-length 32
set l3-interface vlan-interface interface 1000 vif 1000 address 100.10.2.1 prefix-length 24
set protocols static route 10.10.10.1/32 next-hop 100.10.2.2
set protocols ovsdb controller ovsdb protocol ptcp
set protocols ovsdb controller ovsdb address 10.10.50.159
set protocols ovsdb controller ovsdb port 6632
set protocols ovsdb interface te-1/1/10
set vxlan ovsdb-managed true
set vxlans source-interface loopback address 20.20.20.1
...
1. Configure the VLAN ID to 10 for vxlan domain.
set vlans vlan-id 10
2. Configure the VLAN ID to 1000 and 2000 for ip routing.
set vlans vlan-id 1000 l3-interface 1000
3. Configure the te-1/1/1 interface VLAN ID to 1000.
set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000
4. Configure VLAN trunk for te-1/1/10.
set interface gigabit-ethernet te-1/1/10 family ethernet-switching port-mode "trunk"
5. Configure the te-1/1/10 interfaceVLAN ID to 10.
set interface gigabit-ethernet te-1/1/10 family ethernet-switching vlan members 10
6. Configure ip address for the loopback interface.
set vlanl3-interface interface loopback lo address 10.10.10.1 prefix-length 32
7. Configure ip address for the vlan-interface 1000.
set l3-interface vlan-interface interface 1000 vif 1000 address 100.10.1.1 prefix-length 24
8. Configure static route for the VXLAN ECMP.
set protocols static route 20.20.20.1/32 next-hop 100.10.1.2
9. Configure VTEP interface sources ip address.
set vxlans source-interface loopback address 10.10.10.1
10. Enable VXLAN managed by ovsdb
set vxlan ovsdb-managed true
11. Configure ovsdb controller protocol
set protocols ovsdb controller ovsdb protocol tcp
12. Configure ovsdb controller ip address
set protocols ovsdb controller ovsdb address 10.10.50.212
13. Configure ovsdb controller port
set protocols ovsdb controller ovsdb port 6632
14. Configure ovsdb controller interface
set protocols ovsdb interface te-1/1/10
...
1. Configure the VLAN ID to 10 for vxlan domain.
set vlans vlan-id 10
2. Configure the VLAN ID to 1000 and 2000 for ip routing.
set vlans vlan-id 1000 l3-interface 1000
3. Configure the te-1/1/1 interface VLAN ID to 1000.
set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000
4. Configure VLAN trunk for te-1/1/10.
set interface gigabit-ethernet te-1/1/10 family ethernet-switching port-mode "trunk"
5. Configure the te-1/1/10 interfaceVLAN ID to 10.
set interface gigabit-ethernet te-1/1/10 family ethernet-switching vlan members 10
6. Configure ip address for the loopback interface.
set vlanset l3-interface loopback loopback lo address 20.20.20.1 prefix-length 32
7. Configure ip address for the vlan-interface 1000.
set l3-interface vlan-interface interface 1000 vif 1000 address 100.10.2.1 prefix-length 24
8. Configure static route for the VXLAN ECMP.
set protocols static route 10.10.10.1/32 next-hop 100.10.2.2
9. Configure VTEP interface sources ip address.
set vxlans source-interface loopback address 20.20.20.1
10. Enable VXLAN managed by ovsdb
set vxlan ovsdb-managed true
11. Configure ovsdb controller protocol
set protocols ovsdb controller ovsdb protocol tcp
12. Configure ovsdb controller ip address
set protocols ovsdb controller ovsdb address 10.10.50.212
13. Configure ovsdb controller port
set protocols ovsdb controller ovsdb port 6632
14. Configure ovsdb controller interface
set protocols ovsdb interface te-1/1/10
...