- B2F1As1 int f0/1
Switchport access vlan 21
B2F1As2 int f0/1
Switchport access vlan 22 - B2DS1 int range f0/23-24
Channel-protocol lacp
Channel-group 1 mode active
Exit
Int port-channel 1
Switchport trunk encapsulation dotlq
Switchport mode trunk
B2DS2 int range f0/23-24
Channel-protocol lacp
Channel-group 1 mode active
B2DS1 int range f0/1-2
Switchport trunk encapsulation dotlq
Switchport mode trunk
B2DS2 int range f0/1-2
Switchport trunk encapsulation dotlq
Switchport mode trunk
B2DS1 spanning-tree valn 21 root primary
Spanning-tree vlan 22 root secondary
B2DS2 spanning-tree vlan 22 root primary
Spanning-tree vlan 21 root secondary - B2DS1 ip routing
Int vlan 21
Ip address 172.16.21.253 255.255.255.0
Int vlan 22
Ip address 172.16.22.253 255.255.255.0
Exit
Int vlan 21
Standby 21 ip 172.16.21.1
Standby 21 priority 200
Standby 21 preempt
Int vlan 22
Standby 22 ip 172.16.22.1
Standby 22 priority 100
B2DS2 ip routing
Int vlan 21
Ip address 172.16.21.254 255.255.255.0
Int vlan 22
Ip address 172.16.22.254 255.255.255.0
Exit
Int vlan 21
Int vlan 21
Standby 21 ip 172.16.21.1
Standby 21 priority 100
Int vlan 22
Standby 22 ip 172.16.22.1
Standby 22 priority 200
Standby 22 preempt - B2DS1 int f0/3
No switchport
Ip address 172.16.1.3 255.255.255.0
Int f0/4
no switchport
ip address 172.16.2.3 255.255.255.0
B2DS2 int f0/3
No switchport
Ip address 172.16.1.4 255.255.255.0
Int f0/4
No switchport
Ip address 172.16.2.4 255.255.255.0
R2 int f0/0
Ip address 172.16.1.5 255.255.255.0
Int f0/1
Ip address 172.16.2.5 255.255.255.0
R1 int f0/0
Ip address 172.16.1.6 255.255.255.0
Int f0/1
Ip address 172.16.2.6 255.255.255.0
S1AS1 int f0/1
No switchport
Ip address 172.16.1.7 255.255.255.0
Int f0/2
No switchport
Ip address 172.16.2.7 255.255.255.0
Vlan 100
Int range f0/3-4
Switchport access vlan 100
Exit
Ip routing
Int vlan 100
Ip address 172.16.100.1 255.255.255.0 - B2DS1 route ospf 1
Network 172.16.0.0 0.0.255.255 area 0
B2DS2 route ospf 1
Network 172.16.0.0 0.0.255.255 area 0
R2 route ospf 1
Network 172.16.0.0 0.0.255.255 area 0
Network 2.1.1.0 0.0.0.3 area 0
R1 route ospf 1
Network 1.1.1.0 0.0.0.7 area 0
Network 172.16.0.0 0.0.255.255 area0
S1AS1 route ospf 1
Network 172.16.100.0 0.0.0.255 area 0
Network 172.16.0.0 0.0.255.255 area 0
ISP1-1 route ospf 1
Network 1.1.1.0 0.0.0.7 area 0
Network 3.0.0.0 0.255.255.255 area 0
ISP2-1 route ospf 1
Network 2.1.1.0 0.0.0.3 area 0
Network 4.0.0.0 0.255.255.255 area 0
ISP1-2 route ospf 1
Network 3.0.0.0 0.255.255.255 area 0
ISP2-2 route ospf 1
Network 4.0.0.0 0.255.255.255 area 0
Network 9.1.1.0 0.0.0.3 area 0 - ISP1-2 route bgp 100
Neighbor 5.0.0.2 remote-as 300
Exit
Route bgp 100
Redistribute ospf 1
Exit
Route ospf 1
Network 5.0.0.0 0.255.255.255 area 0
Redistribute bgp 100 subnets
ISP3 route bgp 200
Neighbor 6.0.0.2 remote-as 300
Redistribute ospf 1
Exit
Route ospf 1
Network 6.0.0.0 0.255.255.255 area 0
Redistribute bgp 200 subnets - R1 ip route 0.0.0.0 0.0.0.0 1.1.1.2
Route ospf 1
Default-information originate
Exit
Access-list 1 permit 172.16.0.0 0.0.255.255
Ip nat inside source list 1 int f1/0 overload
Int f1/0
Ip nat outside
Int range f0/0-1
Ip nat inside
R2 ip oute 0.0.0.0 0.0.0.0 2.1.1.2
Route ospf 1
Default-information originate
Exit
Access-list 1 permit 172.16.0.0 0.0.255.255
Ip nat inside source list 1 int f1/0 overload
Int f1/0
Ip nat outside Int range f0/0-1
Ip nat inside
R1 exit
Ip nat inside source static tcp 172.16.100.2 80 1.1.1.1 80
R2 exit
Ip nat inside source static tcp 172.16.100.2 80 2.1.1.1 80 - R3 ip route 0.0.0.0 0.0.0.0 9.1.1.1
Access-list 1 permit 192.168.1.0 0.0.0.255
Ip nat inside source list 1 int f1/0 overload
Int f1/0
Ip nat outside
Int f0/0
Ip nat inside