Router 1
configure snmp sysName exo-1
create vlan 100
configure bgp AS-number 100
configure bgp routerid 1.1.1.1
configure bgp maximum-paths 8 - optional
create bgp neighbor 10.10.10.2 remote-AS-number 200
enable bgp neighbor 10.10.10.2
enable bgp export direct address-family ipv4-unicast
create vlan 100
configure vlan 100 add port 1 tagged
configure vlan 100 ipaddress 10.10.10.1/30
enable ipforwarding vlan 100
configure bgp AS-number 100
configure bgp routerid 1.1.1.1
configure bgp maximum-paths 8 - optional
create bgp neighbor 10.10.10.2 remote-AS-number 200
enable bgp neighbor 10.10.10.2
enable bgp export direct address-family ipv4-unicast
enable bgp export ospf-extern1 address-family ipv4-unicast export-policy bgpallow
-- Above line is if you have an BGP policy for certain networks.
enable bgp
enable bgp
configure vlan Default delete ports 1-6
// routed vlan interface must have a active link or it will not come through in the BGP table.
create vlan 11
configure vlan 11 add port 6 tagged
configure vlan 11 ipaddress 11.11.11.1/24
enable ipforwarding vlan 11
Router 2
configure snmp sysName exo-2
create vlan 100
configure vlan 100 add port 1 tagged
configure vlan 100 ipaddress 10.10.10.2/30
enable ipforwarding vlan 100
configure bgp AS-number 200
configure bgp routerid 2.2.2.2
create bgp neighbor 10.10.10.1 remote-AS-number 100
enable bgp neighbor 10.10.10.1
enable bgp export direct address-family ipv4-unicast
enable bgp
create vlan 22
configure vlan 22 add port 2 tagged
configure vlan 22 ipaddress 22.22.22.1/24
enable ipforwarding vlan 22