Network Configuration for Cancun, Los Cabos, and Mexico
Posted on Sep 3, 2024 in Technology
Cancun
Switch Configuration
Switch>enable
Switch#conf t
Switch(config)#hostname SW-C1
SW-C1(config)#interface giga 0/1
SW-C1(config-if)#switchport mode trunk
SW-C1(config-if)#exit
SW-C1(config)#vlan 20
SW-C1(config-vlan)#name CANCUN1
SW-C1(config-vlan)#exit
SW-C1(config)#vlan 30
SW-C1(config-vlan)#name CANCUN2
SW-C1(config-vlan)#exit
SW-C1(config)#vlan 40
SW-C1(config-vlan)#name CANCUN3
SW-C1(config-vlan)#exit
SW-C1(config)#interface range fast 0/1-13
SW-C1(config-if-range)#switchport mode access
SW-C1(config-if-range)#switchport access vlan 20
SW-C1(config-if-range)#exit
SW-C1(config)#interface range fast 0/14-19
SW-C1(config-if-range)#switchport mode access
SW-C1(config-if-range)#switchport access vlan 30
SW-C1(config-if-range)#exit
SW-C1(config)#interface range fast 0/20-23
SW-C1(config-if-range)#switchport mode access
SW-C1(config-if-range)#switchport access vlan 40
SW-C1(config-if-range)#exit
SW-C1(config)#do wr
Router Configuration
Router>ena
Router#conf t
Router(config)#host CANCUN
CANCUN(config)#interface giga 0/1.20
CANCUN(config-subif)#encapsulation dot1q 20
CANCUN(config-subif)#ip address 172.16.0.1 255.255.240.0
CANCUN(config-subif)#exit
CANCUN(config)#interface giga 0/1.30
CANCUN(config-subif)#encapsulation dot1q 30
CANCUN(config-subif)#ip address 172.16.16.1 255.255.248.0
CANCUN(config-subif)#exit
CANCUN(config)#interface giga 0/1.40
CANCUN(config-subif)#encapsulation dot1q 40
CANCUN(config-subif)#ip address 172.16.24.1 255.255.252.0
CANCUN(config-subif)#exit
CANCUN(config)#interface giga 0/1
CANCUN(config-if)#no shutdown
CANCUN(config-if)#exit
CANCUN(config)#ip dhcp excluded-address 172.16.0.1 172.16.0.5
CANCUN(config)#ip dhcp pool CANCUN1
CANCUN(dhcp-config)#network 172.16.0.0 255.255.240.0
CANCUN(dhcp-config)#default-router 172.16.0.1
CANCUN(dhcp-config)#exit
CANCUN(config)#ip dhcp excluded-address 172.16.16.1 172.16.16.5
CANCUN(config)#ip dhcp pool CANCUN2
CANCUN(dhcp-config)#network 172.16.16.0 255.255.248.0
CANCUN(dhcp-config)#default-router 172.16.16.1
CANCUN(dhcp-config)#exit
CANCUN(config)#ip dhcp excluded-address 172.16.24.1 172.16.24.5
CANCUN(config)#ip dhcp pool CANCUN3
CANCUN(dhcp-config)#network 172.16.24.0 255.255.252.0
CANCUN(dhcp-config)#default-router 172.16.24.1
CANCUN(dhcp-config)#exit
CANCUN(config)#do wr
Los Cabos
Switch Configuration
Switch>ena
Switch#conf t
Switch(config)#hostname SW_CABOS
SW_CABOS(config)#interface vlan 1
SW_CABOS(config-if)#ip address 172.16.28.2 255.255.254.0
SW_CABOS(config-if)#no shutdown
SW_CABOS(config-if)#exit
SW_CABOS(config)#do wr
Router Configuration
Router>ena
Router#conf t
Router(config)#hostname LOS_CABOS
LOS_CABOS(config)#interface giga 0/1
LOS_CABOS(config-if)#ip address 172.16.28.1 255.255.254.0
LOS_CABOS(config-if)#no shutdown
LOS_CABOS(config-if)#exit
LOS_CABOS(config)#interface serial 0/0/0
LOS_CABOS(config-if)#ip address 172.16.31.5 255.255.255.252
LOS_CABOS(config-if)#clock rate 56000
LOS_CABOS(config-if)#no shutdown
LOS_CABOS(config-if)#exit
LOS_CABOS(config)#router ospf 22
LOS_CABOS(config-router)#network 172.16.28.0 0.0.1.255 area 0
LOS_CABOS(config-router)#network 172.16.31.4 0.0.0.3 area 0
LOS_CABOS(config-router)#passive-interface giga 0/1
LOS_CABOS(config-router)#exit
LOS_CABOS(config)#ip dhcp excluded-address 172.16.28.1 172.16.28.5
LOS_CABOS(config)#ip dhcp pool LOS_CABOS
LOS_CABOS(dhcp-config)#network 172.16.28.0 255.255.254.0
LOS_CABOS(dhcp-config)#default-router 172.16.28.1
LOS_CABOS(dhcp-config)#end
LOS_CABOS#wr
Mexico
Switch Configuration
Switch>enable
Switch#conf t
Switch(config)#hostname SW-MEXICO
SW-MEXICO(config)#interface vlan 1
SW-MEXICO(config-if)#ip address 172.16.30.2 255.255.255.0
SW-MEXICO(config-if)#no shutdown
SW-MEXICO(config-if)#exit
SW-MEXICO(config)#do wr
Router Configuration
Router>ena
Router#conf t
Router(config)#hostname MEXICO
MEXICO(config)#interface giga 0/1
MEXICO(config-if)#ip address 172.16.30.1 255.255.255.0
MEXICO(config-if)#no shutdown
MEXICO(config-if)#exit
MEXICO(config)#interface serial 0/1/0
MEXICO(config-if)#ip address 172.16.31.2 255.255.255.252
MEXICO(config-if)#no shutdown
MEXICO(config-if)#exit
MEXICO(config)#interface serial 0/1/1
MEXICO(config-if)#ip address 172.16.31.6 255.255.255.252
MEXICO(config-if)#no shutdown
MEXICO(config-if)#exit
MEXICO(config)#interface serial 0/0/1
MEXICO(config-if)#ip address 28.100.10.254 255.255.255.252
MEXICO(config-if)#no shutdown
MEXICO(config-if)#exit
MEXICO(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/1
MEXICO(config)#router ospf 22
MEXICO(config-router)#network 172.16.30.0 0.0.0.255 area 0
MEXICO(config-router)#network 172.16.31.0 0.0.0.3 area 0
MEXICO(config-router)#network 172.16.31.4 0.0.0.3 area 0
MEXICO(config-router)#default-information originate
MEXICO(config-router)#passive-interface giga 0/1
MEXICO(config-router)#passive-interface serial 0/0/1
MEXICO(config-router)#exit
MEXICO(config)#ip dhcp excluded-address 172.16.30.1 172.16.30.5
MEXICO(config)#ip dhcp pool MEXICO
MEXICO(dhcp-config)#network 172.16.30.0 255.255.255.0
MEXICO(dhcp-config)#default-router 172.16.30.1
MEXICO(dhcp-config)#exit
MEXICO(config)#access-list 1 permit 172.16.0.0 0.0.255.255
MEXICO(config)#ip nat inside source list 1 interface serial 0/0/1 overload
MEXICO(config)#interface giga 0/1
MEXICO(config-if)#ip nat inside
MEXICO(config-if)#exit
MEXICO(config)#interface serial 0/1/1
MEXICO(config-if)#ip nat inside
MEXICO(config-if)#exit
MEXICO(config)#interface serial 0/1/0
MEXICO(config-if)#ip nat inside
MEXICO(config-if)#exit
MEXICO(config)#interface serial 0/0/1
MEXICO(config-if)#ip nat outside
MEXICO(config-if)#exit
MEXICO(config)#end
ISP
Router(config)#hostname ISP
ISP(config)#interface serial 0/0/0
ISP(config-if)#ip address 28.100.10.253 255.255.255.252
ISP(config-if)#no shutdown
ISP(config-if)#exit
ISP(config)#interface loopback 100
ISP(config-if)#ip address 100.100.100.100 255.255.255.255
ISP(config-if)#no shutdown
ISP(config-if)#end