Resources
7.4.2 Lab - Implement DHCPv4 (Answers) (itexamanswers.net)
7.4.1 Packet Tracer – Implement DHCPv4 – Instructions Answer (itexamanswers.net)
7.4.2 Lab - Implement DHCPv4 (Answers) (itexamanswers.net)
Name/Device Network Default Usable IP Range Subnet Mask
Gateway
Ialibu 172.16.12.0/30 172.16.12.1 172.16.12.1 - 255.255.255.252
172.16.12.2
Web-Server 10.10.10.10/24 10.10.10.1 - 10.10.10.10 255.255.255.0
10.10.10.254
MTH 172.16.23.0/30 172.16.23.1 172.16.23.1 - 255.255.255.252
172.16.23.2
Internet 209.165.200.224/2 209.165.200.225 209.165.200.225- 255.255.255.248
9 209.165.200.230
VLAN Addressing
VLAN 31 192.168.99.0/26 192.168.99.1 192.168.99.1- 255.255.255.192
192.168.99.62
VLAN 32 192.168.99.64/26 192.168.99. 65
192.168.99.65- 255.255.255.192
192.168.99.126
VLAN 33 192.168.99.128/26 192.168.99.129 192.168.99.129- 255.255.255.192
192.168.99.190
VLAN 99 192.168.99.192/26 192.168.99.193 192.168.99.193- 255.255.255.192
192.168.99.254
VLAN 150 192.168.99.124/28 192.168.99.225 192.168.99.225- 255.255.255.240
192.168.99.238
Addressing Table
Device Interface IP Address Subnet Mask Switchport VLAN
GigabitEthernet0/1.33 192.168.99.129 255.255.255.192 VLAN 33
GigabitEthernet0/1.99 192.168.99.193 255.255.255.192 N/A VLAN 99
MTH Serial0/0/1 172.16.23.1 255.255.255.252 N/A N/A
POM Gig0/0 209.168.200.226 255.255.255.248 N/A N/A
G0/1 10.10.10.13 255.255.255.0
Device Interface IP Address Subnet Mask Switchport VLAN
Serial0/0/0 172.16.12.2 255.255.255.252
Serial0/0/1 172.16.23.2 255.255.255.252
FastEthernet0/1.31 192.168.31.3 255.255.255.0 VLAN 31
FastEthernet0/1.32 192.168.32.3 255.255.255.0 VLAN 32
Ialibu FastEthernet0/1.33 192.168.33.3 255.255.255.0 N/A VLAN 33
FastEthernet0/1.150 192.168.150.3 255.255.255.0 VLAN150
Serial0/0/0 192.168.99.198 255.255.255.252 N/A
Interface VLAN 99 192.168.99.5 255.255.255.0 VLAN 99
S1 Interface VLAN 99 192.168.99.7 255.255.255.0 N/A VLAN 99
S2 Interface VLAN 99 192.168.99.8 255.255.255.0 N/A VLAN 99
S3 Interface VLAN 99 192.168.99.195 255.255.255.192 N/A VLAN 99
Objectives
ChatGPT
AdminBuilding VLANs:
VLAN 31 (Student):
Subnet: 192.168.99.0/24 (same as the parent network)
Default Gateway: 192.168.99.1
Usable IP Range: 192.168.99.2 - 192.168.99.126
Broadcast Address: 192.168.99.127
Subnet Mask: 255.255.255.0
126
VLAN 32 (Staff):
Subnet: 192.168.99.128/25 (Borrowing 25 bits for hosts)
Default Gateway: 192.168.99.1
Usable IP Range: 192.168.99.129 - 192.168.99.254
Broadcast Address: 192.168.99.255
Subnet Mask: 255.255.255.128
130-254
VLAN 33 (ICT):
Subnet: 192.168.99.0/26 (Borrowing 26 bits for hosts)
Default Gateway: 192.168.99.1
Usable IP Range: 192.168.99.1 - 192.168.99.62
Broadcast Address: 192.168.99.63
Subnet Mask: 255.255.255.192
LectureBuilding VLANs:
VLAN 99 (Management):
Subnet: 192.168.99.64/26 (Borrowing 26 bits for hosts)
Default Gateway: 192.168.99.1
Usable IP Range: 192.168.99.65 - 192.168.99.126
Broadcast Address: 192.168.99.127
Subnet Mask: 255.255.255.192
VLAN 150 (Voice):
Subnet: 192.168.99.192/26 (Borrowing 26 bits for hosts)
Default Gateway: 192.168.99.1
Usable IP Range: 192.168.99.193 - 192.168.99.254
Broadcast Address: 192.168.99.255
Subnet Mask: 255.255.255.192
POM Router complete
POM
S0/0/0- Description: Connected to Ialibu: IP Address 172.16.12.2 255.255.255.252
G0/1- Description: Connected to Webserver: IP Address 10.10.10.10 255.255.255.0
S0/0/1- Description: Connected to MTH: IP Address 172.16.23.2 255.255.255.252
G0/0- Description: Connected to Internet: IP Address 209.165.200.226 255.255.255.248
Router ospf 1
Ialibu: Network 172.16.12.0 0.0.0.3
Internet: Network 209.165.200.224 0.0.0.7
Web-Server: Network 10.10.10.0 0.0.0.255
MTH: Network 172.16.23.0 0.0.0.3
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
%LINEPROTO-5-UPDOWN: Line protocol on 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
%LINEPROTO-5-UPDOWN: Line protocol on 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
POM#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
POM#
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
POM: Network 172.16.12.0 0.0.0.3 area 0
DSW: network 192.168.99.0 0.0.0.255 area 0
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
%LINEPROTO-5-UPDOWN: Line protocol on 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
Ialibu#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Ialibu#
Ialibu#
MTH Branch
S0/0/1- Description: Connected to POM: IP Address 172.16.23.1 255.255.255.252
G0/1- Description: Connected to S3: IP Address 192.168.64.2 255.255.255.0
Router ospf 3
MTH(192.168.64.0/24)→note
POM- Network 172.16.23.0 0.0.0.3 area 0
DSW-network 192.168.64.0 0.0.0.255 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
MTH(config-router)#network 192.168.64.0 0.0.0.255 area 0
MTH(config-router)#exit
MTH(config)#exit
MTH#
%SYS-5-CONFIG_I: Configured from console by console
Internet
G0/0- Description: Connected to Internet: IP Address 209.165.200.227 255.255.255.248
Router ospf 4
Network 209.165.200.224 0.0.0.7 area 0
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
%LINEPROTO-5-UPDOWN: Line protocol on 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
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to
up
Internet#
%SYS-5-CONFIG_I: Configured from console by console
Internet#
03:41:07: %OSPF-5-ADJCHG: Process 4, Nbr 209.165.200.226 on GigabitEthernet0/0 from
LOADING to FULL, Loading Done
Internet#copy running-config startup-config
Destination filename [startup-config]?
AdminBuilding 192.168.99.2 192.168.99.1 192.168.99.1 - 192.168.99.255 255.255.255.0
192.168.99.254
LectureBuilg 192.168.99.3 192.168.99.1 192.168.99.1 - 192.168.99.255 255.255.255.0
192.168.99.254
Admin building
S1
G0/1→Description Connected to S2: ip address 192.168.99.2 255.255.255.0
G0/2→ Description Connected to DSW: ip address 192.168.99.3 255.255.255.0
ICT-PC1→ ip address 192.168.99.4 255.255.255.0 → VLAN 33-ICT
Staff-PC1→ ip address 192.168.99.5 255.255.255.0 → VLAN 32- Staff
Student-PC1→ ip address 192.168.99.6 255.255.255.0 → VLAN 31-Student
Staff-Registrar→ ip address 192.168.99.7 255.255.255.0
Registrar-Phone→ ip address 192.168.99.8 255.255.255.0 → VLAN 150-VOICE
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
F0/1→Description Connected to S2: ip address 192.168.99.10 255.255.255.0
G0/2→ Description Connected to DSW: ip address 192.168.99.9 255.255.255.0
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
Hold configuration on Ialibu
ip dhcp excluded-address 192.168.99.193
ip dhcp excluded-address 192.168.99.225
ip dhcp excluded-address 192.168.99.33
ip dhcp excluded-address 192.168.99.3
ip dhcp excluded-address 192.168.99.0 192.168.99.3
ip dhcp excluded-address 192.168.99.64 192.168.99.65
ip dhcp excluded-address 192.168.99.128 192.168.99.129
ip dhcp excluded-address 192.168.99.192 192.168.99.193
ip dhcp excluded-address 192.168.99.224 192.168.99.225
!
ip dhcp pool VLAN32
network 192.168.99.64 255.255.255.192
default-router 192.168.99.65
ip dhcp pool VLAN33
network 192.168.99.128 255.255.255.192
default-router 192.168.99.129
ip dhcp pool VLAN99
network 192.168.99.192 255.255.255.192
default-router 192.168.99.193
ip dhcp pool VLAN150
network 192.168.99.224 255.255.255.240
default-router 192.168.99.225
option 150 ip 192.168.99.225
ip dhcp pool VLAN31
network 192.168.99.0 255.255.255.192
default-router 192.168.99.1
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2811/K9 sn FTX1017014N-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
description Connected to DSW
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1.31
encapsulation dot1Q 31
ip address 192.168.99.1 255.255.255.192
!
interface FastEthernet0/1.32
encapsulation dot1Q 32
ip address 192.168.99.65 255.255.255.192
!
interface FastEthernet0/1.33
encapsulation dot1Q 33
ip address 192.168.99.129 255.255.255.192
!
interface FastEthernet0/1.99
encapsulation dot1Q 99
no ip address
!
interface FastEthernet0/1.150
encapsulation dot1Q 150
ip address 192.168.99.225 255.255.255.240
!
interface Serial0/0/0
description Connected to POM
ip address 172.16.12.1 255.255.255.252
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Serial0/3/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/3/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
interface Vlan99
mac-address 0010.117d.4401
no ip address
!
router ospf 2
log-adjacency-changes
network 172.16.12.0 0.0.0.3 area 0
network 192.168.4.0 0.0.0.255 area 0
network 192.168.5.0 0.0.0.255 area 0
network 192.168.6.0 0.0.0.255 area 0
!
ip classless
ip route 192.168.99.0 255.255.255.0 FastEthernet0/1
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Users Only! ^C
!
!
!
!
telephony-service
max-ephones 3
max-dn 3
ip source-address 192.168.99.225 port 2000
auto assign 1 to 2
!
ephone-dn 1
number 74757471
!
ephone-dn 2
number 73747576
!
ephone 1
device-security-mode none
mac-address 0090.217D.A9D7
type 7960
button 1:1
!
ephone 2
device-security-mode none
mac-address 00D0.BAD3.CA1E
type 7960
button 1:2
!
line con 0
password 7 0822455D0A16
login
!
line aux 0
!
line vty 0 4
password 7 0822455D0A16
login
transport input ssh
line vty 5 15
password 7 0822455D0A16
login
transport input ssh
!
!
!
end
ip address 192.168.99.5 255.255.255.0