#Commands are a bit different from vyos 1.3
delete interfaces ethernet eth0 address dhcp
set service ssh port 22
set interfaces ethernet eth0 vif 4 address '192.168.1.1/24'
set interfaces ethernet eth0 vif 4 description 'vlan 4 mgmt'
set protocols static route 0.0.0.0/0 next-hop 192.168.1.1
set interfaces ethernet eth0 vif 11 address '172.27.11.1/24'
set interfaces ethernet eth0 vif 11 description 'VLC vlan 11 Edge uplink 1'
set interfaces ethernet eth0 vif 12 address '172.27.12.1/24'
set interfaces ethernet eth0 vif 12 description 'VLC vlan 12 Edge uplink 2'
set interfaces ethernet eth0 vif 8 address '10.0.8.253/24'
set interfaces ethernet eth0 vif 8 description 'VLC vlan 8 vSAN '
set interfaces ethernet eth0 vif 9 address '10.0.4.253/24'
set interfaces ethernet eth0 vif 9 description 'VLC vlan 9 vMOTION'
set interfaces ethernet eth0 vif 10 address '10.0.0.1/24'
set interfaces ethernet eth0 vif 10 description 'VLC vlan 10 MGMT'
set interfaces ethernet eth0 vif 14 address '172.16.254.1/24'
set interfaces ethernet eth0 vif 14 description 'VLC vlan 14 ESXI Host Overlay TEP'
set interfaces ethernet eth0 vif 13 address '172.27.13.1/24'
set interfaces ethernet eth0 vif 13 description 'VLC vlan13 Edge Overlay TEP'
set interfaces ethernet eth0 mtu 8940
set interfaces ethernet eth0 duplex 'auto'
set interfaces ethernet eth0 speed 'auto'
set service dhcp-server shared-network-name dhcp-pool subnet 172.16.254.0/24 subnet-id 2
set service dhcp-server shared-network-name dhcp-pool authoritative
set service dhcp-server shared-network-name dhcp-pool subnet 172.16.254.0/24 range 2 start 172.16.254.6
set service dhcp-server shared-network-name dhcp-pool subnet 172.16.254.0/24 range 2 stop 172.16.254.254
set service dhcp-server shared-network-name dhcp-pool subnet 172.16.254.0/24 option default-router 172.16.254.1
set protocols bgp system-as 65000
set protocols bgp neighbor 172.27.11.2 remote-as '65003'
set protocols bgp neighbor 172.27.11.2 update-source '172.27.11.1'
set protocols bgp neighbor 172.27.12.2 remote-as '65003'
set protocols bgp neighbor 172.27.12.2 update-source '172.27.12.1'
set protocols bgp neighbor 172.27.11.3 remote-as '65003'
set protocols bgp neighbor 172.27.11.3 update-source '172.27.11.1'
set protocols bgp neighbor 172.27.12.3 remote-as '65003'
set protocols bgp neighbor 172.27.12.3 update-source '172.27.12.1'
set protocols bgp address-family ipv4-unicast redistribute connected
set protocols bgp parameters router-id '172.27.11.1'
set protocols bgp neighbor 172.27.11.2 address-family ipv4-unicast
set protocols bgp neighbor 172.27.11.3 address-family ipv4-unicast
set protocols bgp neighbor 172.27.12.2 address-family ipv4-unicast
set protocols bgp neighbor 172.27.12.3 address-family ipv4-unicast
set protocols bgp neighbor 172.27.11.2 address-family ipv4-unicast weight 1
set protocols bgp neighbor 172.27.11.2 address-family ipv4-unicast weight 2
set protocols bgp neighbor 172.27.11.2 address-family ipv4-unicast weight 3
set protocols bgp neighbor 172.27.11.2 address-family ipv4-unicast weight 4
# gives overlay networks segments on nsx a default gateway
set protocols bgp neighbor 172.27.11.2 address-family ipv4-unicast default-originate
set protocols bgp neighbor 172.27.11.3 address-family ipv4-unicast default-originate
set protocols bgp neighbor 172.27.12.2 address-family ipv4-unicast default-originate
set protocols bgp neighbor 172.27.12.3 address-family ipv4-unicast default-originate
set service ntp server 10.0.0.118
set system name-server 10.0.0.150
set system domain-search vcf.sddc.lab
set service dns forwarding listen-address '10.0.0.150'
set service dns forwarding name-server '10.0.0.150'
set service dns forwarding allow-from '0.0.0.0/0'
set service dns forwarding name-server 10.0.0.150 port 53
set service dns forwarding domain vcf.sddc.lab name-server 10.0.0.150
#get some speed accessing your nsx-t overlay network
del interfaces ethernet eth0 offload lro
set interfaces ethernet eth0 offload gro
set interfaces ethernet eth0 offload gso
set interfaces ethernet eth0 offload rfs
set interfaces ethernet eth0 offload rps
set interfaces ethernet eth0 offload sg
set interfaces ethernet eth0 offload tso