Subneting
Subneting
VLAN Addressing
Addressing Table
Objectives
ChatGPT
AdminBuilding VLANs:
VLAN 31 (Student):
126
VLAN 32 (Staff):
130-254
VLAN 33 (ICT):
LectureBuilding VLANs:
VLAN 99 (Management):
POM
Router ospf 1
Commands
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname POM
POM(config)#no ip domain lookup
POM(config)#enable secret class
POM(config)#line console 0
POM(config-line)#password cisco
POM(config-line)#login
POM(config-line)#service password-encryption
POM(config)#line vty 0 15
POM(config-line)#password cisco
POM(config-line)#login
POM(config-line)#service password-encryption
POM(config)#banner motd $ Authorized Users Only! $
POM(config-line)#exit
POM(config)#int g0/0
POM(config-if)#IP Address 209.165.200.226 255.255.255.248
POM(config-if)#description Connected to Internet
POM(config-if)#no shut
POM(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
POM(config-if)#int s0/0/0
POM(config-if)#IP Address 172.16.12.2 255.255.255.252
POM(config-if)#description Connected to Ialibu
POM(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
POM(config)#router ospf 1
POM(config-router)#network 192.168.4.0 0.0.0.255 area 0
POM(config-router)#network 192.168.5.0 0.0.0.255 area 0
POM(config-router)#network 192.168.6.0 0.0.0.255 area 0
POM(config-router)#exit
POM(config)#int g0/1
POM(config-if)# ip address 10.10.10.13 255.255.255.0
POM(config-if)# description Connected to Web-server
POM(config-if)#no shut
POM(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
POM(config-if)#exit
POM(config)#int s0/0/1
POM(config-if)#IP Address 172.16.23.2 255.255.255.252
POM(config-if)#description Connected to MTH
POM(config-if)#NO SHUT
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
POM(config)#router ospf 1
POM(config-router)#network 192.168.4.0 0.0.0.255 area 0
POM(config-router)#network 192.168.5.0 0.0.0.255 area 0
POM(config-router)#network 192.168.6.0 0.0.0.255 area 0
POM(config-router)#exit
POM(config)#router ospf 1
POM(config-router)#network 172.16.12.0 0.0.0.3 area 0
POM(config-router)#network 209.168.200.224 0.0.0.7 area 0
POM(config-router)#network 10.10.10.0 0.0.0.255 area 0
POM(config-router)#network 172.16.23.0 0.0.0.3 area 0
POM(config-router)#exit
POM(config)#exit
POM#
%SYS-5-CONFIG_I: Configured from console by console
Ialibu Branch
S0/0/0- Description: Connected to POM: IP Address 172.16.12.1 255.255.255.252
F0/1- Description: Connected to DSW: IP Address 192.168.99.1 255.255.255.0
Router ospf 2
Commands
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Ialibu
Ialibu(config)#no ip domain lookup
Ialibu(config)#enable secret class
Ialibu(config)#line console 0
Ialibu(config-line)#password cisco
Ialibu(config-line)#login
Ialibu(config-line)#line vty 0 15
Ialibu(config-line)#password cisco
Ialibu(config-line)#login
Ialibu(config-line)#service password-encryption
Ialibu(config)#banner motd $ Authorized Users Only! $
Ialibu(config)#exit
Ialibu(config)#int s0/0/0
Ialibu(config-if)#IP Address 172.16.12.1 255.255.255.252
Ialibu(config-if)#description Connected to POM
Ialibu(config-if)#no shut
Ialibu(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
Ialibu(config-if)#
Ialibu(config-if)#exit
Ialibu(config)#router ospf 2
Ialibu(config-router)#router ospf 2
Ialibu(config-router)#network 192.168.4.0 0.0.0.255 area 0
Ialibu(config-router)#network 192.168.5.0 0.0.0.255 area 0
Ialibu(config-router)#network 192.168.6.0 0.0.0.255 area 0
Ialibu(config-router)#Network 172.16.12.0 0.0.0.3 area 0
Ialibu(config-router)#network 192.168.99.0 0.0.0.255 area 0
00:09:49: %OSPF-5-ADJCHG: Process 2, Nbr 209.165.200.226 on Serial0/0/0 from LOADING
to FULL, Loading Done
Ialibu(config-router)#exit
Ialibu(config)#exit
Ialibu#
%SYS-5-CONFIG_I: Configured from console by console
MTH Branch
Router ospf 3
MTH(192.168.64.0/24)→note
POM- Network 172.16.23.0 0.0.0.3 area 0
Commands
Router(config)#hostname MTH
MTH(config)#no ip domain lookup
MTH(config)#enable secret class
MTH(config)#line console 0
MTH(config-line)#password cisco
MTH(config-line)#login
MTH(config-line)#line vty 0 15
MTH(config-line)#password cisco
MTH(config-line)#login
MTH(config-line)#service password-encryption
MTH(config)#banner motd $ Authorized Users Only! $
MTH(config)#exit
MTH#
%SYS-5-CONFIG_I: Configured from console by console
MTH#exit
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname MTH
MTH(config)#enable secret class
MTH(config)#line vty 0 15
MTH(config-line)#password cisco
MTH(config-line)#login
MTH(config-line)#exit
MTH(config)#int s0/0/1
MTH(config-if)#IP Address 172.16.23.1 255.255.255.252
MTH(config-if)#description Connected to POM
MTH(config-if)#NO SHUT
MTH(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
MTH(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up
EXIT
MTH(config)#router ospf 3
MTH(config-router)#Network 172.16.23.0 0.0.0.3 area 0
MTH(config-router)#
03:20:06: %OSPF-5-ADJCHG: Process 3, Nbr 209.165.200.226 on Serial0/0/1 from LOADING
to FULL, Loading Done
Internet
G0/0- Description: Connected to Internet: IP Address 209.165.200.227 255.255.255.248
Router ospf 4
Commands
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Internet
Internet(config)#enable password class
Internet(config)#line vty 0 15
Internet(config-line)#password cisco
Internet(config-line)#login
Internet(config-line)#exit
Internet(config)#int g0/0
Internet(config-if)#ip address 209.165.200.227 255.255.255.248
Internet(config-if)#description Connected to POM
Internet(config-if)#no shut
Internet(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Internet(config-if)#router ospf 4
Internet(config-router)#network 209.165.200.224 0.0.0.7 area 0
Internet(config-router)#exit
Internet(config)#end
Internet(config)#int g0/1
Internet(config-if)#ip address 209.165.200.244 255.255.255.248
Internet(config-if)#no description Connected to S4
Internet(config-if)#no shut
Internet(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Internet#
03:41:07: %OSPF-5-ADJCHG: Process 4, Nbr 209.165.200.226 on GigabitEthernet0/0 from
LOADING to FULL, Loading Done
S1
Commands
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#enable secret class
S1(config)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S1#int g0/1
^
% Invalid input detected at '^' marker.
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int g0/1
S1(config-if)#ip address 192.168.99.2 255.255.255.0
^
% Invalid input detected at '^' marker.
S1(config-if)#ip address 192.168.99.2.255.255.255.0
^
% Invalid input detected at '^' marker.
S1(config-if)#exit
S1(config)#vlan 33
S1(config-vlan)#name ICT
S1(config-vlan)#vlan 32
S1(config-vlan)#name Staff
S1(config-vlan)#vlan 31
S1(config-vlan)#name Student
S1(config-vlan)#vlan 150
S1(config-vlan)#name VOICE
S1(config-vlan)#EXIT
S1(config)#int F0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 33
S1(config-if)#exit
S1(config)#int f0/2
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 32
S1(config-if)#exit
S1(config)#int f0/3
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 31
S1(config-if)#exit
S1(config)#int f0/4
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 150
S1(config-if)#switchport voice vlan 150
S1(config-if)#exit
S1(config)#
DSW
COMMANDS
S2
Switch>
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S2
S2(config)#line vty 0 15
S2(config-line)#password cisco
S2(config-line)#exit
S2(config)#enable secret class
S2(config)#vlan 31
S2(config-vlan)#name Student
S2(config-vlan)#vlan 32
S2(config-vlan)#name Staff
S2(config-vlan)#vlan 33
S2(config-vlan)#name ICT
S2(config-vlan)#vlan 99
S2(config-vlan)#name Management
S2(config-vlan)#
Part 3: Configurations