R1 system identity set name=R1 interface set name=ether1-internet ether1 interface set name=ether2-toR2 ether2 interface set name=ether3-LAN ether3 ip address add address=192.168.12.152/24 interface=ether1-internet ip address add address=192.168.101.254/24 interface=ether2-toR2 ip address add address=192.168.100.254/24 interface=ether3-LAN ip route add gateway=192.168.12.2 ip dns set servers=192.168.12.2 ip firewall nat add chain=srcnat out-interface=ether1-internet action=masquerade ip dhcp-server setup R2 system identity set name=R2 interface set name=ether1-ToR1 ether1 interface set name=ether2-toR3 ether2 interface set name=ether3-toR4 ether3 interface set name=ether4-LAN ether4 ip address add address=192.168.101.1/24 interface=ether1-ToR1 ip address add address=192.168.102.254/24 interface=ether2-toR3 ip address add address=192.168.103.254/24 interface=ether3-toR4 ip address add address=192.168.10.254/24 interface=ether4-LAN ip dns set servers=192.168.12.2 ip firewall nat add chain=srcnat out-interface=ether1-ToR1 action=masquerade ip dhcp-server setup R3 system identity set name=R3 interface set name=ether1-ToR2 ether1 interface set name=ether2-ToR4 ether2 interface set name=ether3-LAN ether3 ip address add address=192.168.102.1/24 interface=ether1-ToR2 ip address add address=192.168.104.254/24 interface=ether2-ToR4 ip address add address=192.168.20.254/24 interface=ether3-LAN ip dns set servers=192.168.12.2 ip firewall nat add chain=srcnat out-interface=ether1-ToR2 action=masquerade ip dhcp-server setup R4 system identity set name=R4 interface set name=ether1-ToR3 ether1 interface set name=ether2-ToR2 ether2 interface set name=ether3-LAN ether3 ip address add address=192.168.104.1/24 interface=ether1-ToR3 ip address add address=192.168.103.1/24 interface=ether2-ToR2 ip address add address=192.168.30.254/24 interface=ether3-LAN ip dns set servers=192.168.12.2 ip firewall nat add chain=srcnat out-interface=ether2-ToR2 action=masquerade ip dhcp-server setup ---------------------------- Routing BGP R1 routing bgp instance set default as=100 router-id=1.1.1.1 routing bgp network add network=192.168.12.0/24 synchronize=no routing bgp network add network=192.168.100.0/24 synchronize=no routing bgp network add network=192.168.101.0/24 synchronize=no routing bgp peer add name=toR2 remote-address=192.168.101.1 remote-as=101 #routing bgp peer add name=toR3 remote-address=192.168.102.1 remote-as=64513 #routing bgp peer add name=toR4 remote-address=192.168.103.1 remote-as=64512 Routing BGP R2 routing bgp instance set default as=101 router-id=2.2.2.2 routing bgp network add network=192.168.101.0/24 synchronize=no routing bgp network add network=192.168.10.0/24 synchronize=no routing bgp network add network=192.168.102.0/24 synchronize=no routing bgp network add network=192.168.103.0/24 synchronize=no routing bgp peer add remote-address=192.168.101.254 remote-as=100 name=toR1 routing bgp peer add remote-address=192.168.103.1 remote-as=64512 name=toR4 routing bgp peer add remote-address=192.168.102.1 remote-as=64513 name=toR3 Routing BGP R3 routing bgp instance set default as=64513 router-id=3.3.3.3 routing bgp network add network=192.168.102.0/24 synchronize=no routing bgp network add network=192.168.104.0/24 synchronize=no routing bgp network add network=192.168.20.0/24 synchronize=no routing bgp peer add remote-address=192.168.102.254 remote-as=101 name=toR2 routing bgp peer add remote-address=192.168.104.1 remote-as=64512 name=toR4 #routing bgp peer add remote-address=192.168.103.254 remote-as=100 name=toR4 #routing bgp peer add remote-address=192.168.103.1 remote-as=64513 name=toR4 #routing bgp peer add remote-address=192.168.101.254 remote-as=100 name=toR1 Routing BGP R4 routing bgp instance set default as=64512 router-id=4.4.4.4 routing bgp network add network=192.168.104.0/24 synchronize=no routing bgp network add network=192.168.103.0/24 synchronize=no routing bgp network add network=192.168.30.0/24 synchronize=no routing bgp peer add remote-address=192.168.103.254 remote-as=101 name=toR2 #routing bgp peer add remote-address=192.168.101.254 remote-as=100 name=toR1 #routing bgp peer add remote-address=192.168.102.254 remote-as=101 name=toR2 routing bgp peer add remote-address=192.168.104.254 remote-as=64513 name=toR3 #routing bgp peer add remote-address=192.168.102.1 remote-as=64513 name=toR2