Você está na página 1de 5

PACKET TRACER LAB 3

THIS LAB WILL SIMULATE ENABLING DHCP ON ROUTER AND THEN A


LAB WHICH ALLOW CONFIGURATION OF OSPF ROUTING ON CISCO
ROUTER .

3
LAB EXERCISE #05:
Configure DHCP (dynamic host configuration protocol) service on the router
and allow router to configure the host PCs dynamically.
Add further three host PCs and enable router to assign them the IP address
dynamically through DHCP

setup DHCP on host PC1 through IP configuration.

Assign IP to router fast Ethernet interface through CLI

Enter router prompt, configure terminal

On router (config)> int fa0/0 will lead to (config-if) then assign ip address of the
interface and

no shutdown to up the link on the interface

Now DHCP address pool and the excluded address

configure terminal

ip dhcp excluded-address 192.168.1.1 192.168.1.99

ip dhcp pool Mypool

on (dhcp-config) network 192.168.1.0 mask

default-router 192.168.1.1

dns-server _________

4
LAB EXERCISE #06:
Configure OSPF routing on CISCO router 1841 with areas 0 using the following topology with
three routers each connected with PCs

Solutions:
After constructing and wiring the topology we set up rotuers interfaces using the following
commands:

Router> enable
Router# config t
Router(config)# int Fa0/0
Router(config-if)# ip addr 192.168.158.126 255.255.255.128
Router(config-if)# no sh

And for the serial interfaces:


Router(config)# int S0/0/0
Router(config-if)# ip addr 192.168.158.126 255.255.255.128
Router(config-if)# clock rate 64000
Router(config-if)# no sh

5
IP addresses and subnet masks for all interfaces are as follows:

Router HQ:
fa0/0: 192.168.158.1, 255.255.255.128
fa0/1: 192.168.158.129, 255.255.255.192
s0/0/0: 192.168.159.97, 255.255.255.252
s0/0/1: 192.168.159.101, 255.255.255.252
Router R1:
fa0/0: 192.168.159.65, 255.255.255.224
fa0/1: 192.168.158.193, 255.255.255.192
s0/0/0: 192.168.159.98, 255.255.255.252
Router R2:
fa0/0: 192.168.157.1, 255.255.255.0
fa0/1: 192.168.159.1, 255.255.255.192
s0/0/1: 192.168.159.102, 255.255.255.252
The commands to configure OSPF on the router are
Router(config)# router ospf 1
Router(config-router)# network 192.168.158.0 0.0.0.127 area 0

where 192.168.158.0 is the network address, and 0.0.0.127 is the wildcard mask. The easiest
way to get the wildcard mask of a network is to subtract the subnet mask from 255 in the
fa0/0 example the subnet mask is 255.255.255.128 so the wildcard mask will be 255-128 = 127
(apparently 255-255=0) 0.0.0.127

We do this with all the routers, and the networks to add in ospf routing map are:
HQ:
network 192.168.158.0 0.0.0.127 area 0
network 192.168.158.128 0.0.0.63 area 0
network 192.168.159.96 0.0.0.3 area 0
network 192.168.159.100 0.0.0.3 area 0
R1:
network 192.168.159.64 0.0.0.31 area 0
network 192.168.158.192 0.0.0.63 area 0
network 192.168.159.96 0.0.0.3 area 0
R2:
network 192.168.157.0 0.0.0.255 area 0
network 192.168.159.0 0.0.0.63 area 0
network 192.168.159.100 0.0.0.3 area 0

6
After this we need to setup the hosts PCs
H1:
IP 192.168.158.126
M 255.255.255.128
GW 192.168.158.1
H2:
IP 192.168.158.190
M 255.255.255.192
GW 192.168.158.129
H3:
IP 192.168.159.94
M 255.255.255.224
GW 192.168.159.65
H4:
IP 192.168.158.254
M 255.255.255.0
GW 192.168.158.193
H5:
IP 192.168.159.62
M 255.255.255.192
GW 192.168.159.1
H6:
IP 192.168.157.126
M 255.255.255.0
GW 192.168.157.1

Você também pode gostar