Professional Documents
Culture Documents
Computer networking professionals getting started with Packet Tracer may find the interface to
be flustered. Being a development program, this is only natural. However, learning how to
configure a router with Packet Tracer will put professionals on the right track to mastering the
program in about half an hour.
By this time, you should already have the Packet Tracer download and have it installed on your
computer. Open the program and select the router from the lower left-hand corner, and drag it
into the center of the sandbox screen as seen below. (Click for larger picture)
We will be setting up a very basic network that allows two computers to communicate, so the
next step is to select end devices from the bottom left-hand corner and drag it to the sandbox
screen. Do this twice to make two computers appear below the router.
Now select connections from the same bottom left-hand corner. When you connect like-
devices(Such as a router and computer) you use a crossover cable, so you should select copper
cross-over cable from the second menu to the immediate right. Click on Router0, and connect
the cable via FastEthernet0/0 as seen below:
Now click the PC0 and select FastEthernet. You will notice that although a link is established, it
is not functional. You can tell by the red dots that are present on both ends of the connection.
Once the router is configured correctly, the red dots will turn green to indicate the devices are
able to communicate.
Do the same operation to PC1, only this time connect the cable to FastEthernet0/1 since
FastEthernet0/0 is already taken by PC0. Your network should be similar to the one below at
this point:
A router that is turned off doesn’t work very well! Click on your router to bring up the
configuration menu and verify that it is turned on.When on, there will be a small green light
below the switch as seen in the diagram.
Next we have to open the Ethernet ports to allow communication. Although they are physically
connected, they are in a state that is known as being in administrative shut down. Now click on
the CLI tab to access the configuration menu. If you’ve used the Cisco IOS before, you will
notice it looks and acts the same way.
2. Type enable to get to privileged mode (this gives you more options in configuring the router)
3. Type config terminal (or config t for short) to access the configuration menu.
5. Type ip address 192.168.10.1 255.255.255.0 to assign an IP address and subnet mask to the
interface.
That’s it! You should now see a message similar to the following:
Now we have to do the same thing for fastethernet0/1. If you don’t, there still won’t be a
connection to PC1! Make sure to enter the IP address carefully as seen below:
3. Type no shutdown
At this point our router is configured properly. If you test out a ping, you will notice that the
computers still don’t communicate, however!
Our last step is to configure the gateway on each desktop computer. The gateway is the address
we assigned to the Ethernet port that the desktop is connected to. It will allow the computer to
interface with another network, so our ping won’t work without it!
Click on PC0 to bring up the configuration menu. Under global settings you will find a field for
the gateway. Enter the corresponding IP address of the router’s interface, which is 192.168.10.1.
Then click the FastEthernet tab on the left column to set the actual computer’s IP address to be
on the network. Use 192.168.10.2 for the IP address, and 255.255.255.0 for the subnet mask.
Do the same thing for PC1, only use 192.168.20.1 for the gateway address, 192.168.20.2 for the
IP address, and 255.255.255.0 for the subnet mask. You can confirm that your network works by
sending out a packet of information from PC0 to PC1, and vice versa. Click the packet icon on
the right menu as seen below:
Click on PC0 and then click PC1. On the lower right of the screen you will see a message box
that says “Successful.” If it doesn’t, you may have had a syntax error when putting in an IP
address or router configuration command. Review your work or ask for help among the
community if you are stuck.
How to configure a simple static routing in packet tracer using a simple topology with two routers
here we go
Steps:
In Router 1
R1(config-if)#encapsulation ppp
R1(config-if)#no shutdown
R1(config-if)#exit
In Router 2
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config-if)#no shutdown
R2(config-if)#exit
Step 3 : Assign ip address for both Pc's with appropriate ip and subnetmask and default gateway How ?
R1(config)#ip route Destination Network| Destination N/W SubnetMask |Next Hop Address
In Router R1,Just give this command,In this case Destination is 30.0.0.0 and its subnet mask is 255.0.0.0
next hop address is 20.0.0.2
In Router R2
Thats it!!..Now both routers know all networks,check by ping ip address of host
Step 5:Double click PC move to desktop then command prompt give the command ping 30.0.0.10 in PC 0
you will get reply from 30.0.0.10 like this
From PC1
How to configure static routing using three routers in packet tracer
Steps:
Step 1: Configure ip address to all interfaces with ip address given in this topology
By default Router knows network that is directly connected, So Router R1 knows the network
10.0.0.0,20.0.0.0 it doesn't know about the network 30.0.0.0 and 40.0.0.0.Now check the R1
Routing table
R1#show ip route
Step 2 :Now add this two network using static route command
R1(config)#ip route Destination Network| Destination N/W SubnetMask |Next Hop Address
Step 3:Now, Check routing table of Router R1 by giving the command in privileged mode
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
In router R2 go to global Configuration mode add static route to 10.0.0.0 and 40.0.0.0
In router R3
#show ip route
Step 5:Now go to host command prompt and ping ip address of another host you will get reply
like this
PC>
PC>ping 40.0.0.10
Here we are going to see how to configure default route in a routers ,we can configure default
route for stub network. i.e dead end router we can point an ip address or exit interface for all
packets that came to that router.Here we go..
Steps:
Step 2:Configure static route on R2 to route packets for 10.0.0.0 and 40.0.0.0 networks like this
R2(config)#ip route Destination Network| Destination N/W SubnetMask |Next Hop Address or
Exit Interface
In Router R2
In Router R1
In Router R3
Here, 0.0.0.0 0.0.0.0 represents any network any subnetmask. i.e any packet that came to router
R1 will be forwarded to next hop address 20.0.0.2.Now check the routing table of R1
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
S* represents Static default route .Now Ping from 10.0.0.10 to 40.0.0.10 you will get reply as
PC>ping 40.0.0.10
we can also configure exit interface instead of next hop address like this
R1#config t
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet 1/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
This command is to enable the dhcp server on a router. Routers in packet tracer won't accept this
command.By default dhcp will be running on router so skip 'service dhcp' command if you are
configuring dhcp in packet tracer,just create a network pool for the network it will work.Use this
in real time or other simulators like gns3.
R1(config)#ip dhcp pool 10network "where '10network' is the pool name we can use what
ever we
want.This command get us into the DHCP Configuration mode."
R1(dhcp-config)#exit
R1(dhcp-config)#lease x 'where X is the number it sets the lease time,by default 1 (i.e. one
day).
R1(dhcp-config)#ip dhcp excluded address x.x.x.x x.x.x.x 'Range of ip address excluded from
the pool it will not be leased to the clients'.
R1(dhcp-config)#ip dhcp excluded address x.x.x.x 'To exclude only one ip address from the
range of ip address'.
Ex.
R1(dhcp-config)#netbios-server 10.0.0.2
R1(dhcp-config)#lease 2
R1(dhcp-config)#ip dhcp excluded address 10.0.0.1 10.0.0.10
R1(dhcp-config)#ip dhcp excluded address 10.0.0.35
Router#show ip dhcp binding w.x.y.z 'Displays the bindings for a specific DHCP client with
an IP address of w.x.y.z.'
Router#clear ip dhcp binding a.b.c.d 'Clears an automatic address binding from the DHCP
server database.'
Router#clear ip dhcp conflict a.b.c.d 'Clears address conflict from the database.'
Router#show ip dhcp server statistics 'Displays a list of the number of messages sent and
received by the DHCP server.'
Here,we are going to see how to configure DHCP within a LAN in a packet tracer,
DHCP Proces,(DORA)
Router>enable
Router#config t
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Step 4:Then Click on Fastethernet and assign ip address and subnet mask.I am going to use 10.0.0.2 and
subnet mask 255.0.0.0 for our server.
Step 8:Then just edit start ip address.I am going to give 10.0.0.10 and subnet mask 255.0.0.0
Step 9:In Maximum Number of Users,Here we are using Class A Network so we can use 1,67,77,216 ip
address.just give how many ip address you want in this pool.I am going to give 500
R1#config t
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet 1/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#service dhcp
This command is to enable the dhcp server on a router. Routers in packet tracer won't accept this
command.By default dhcp will be running on router so skip 'service dhcp' command if you are
configuring dhcp in packet tracer,just create a network pool for the network it will work.Use this in real
time or other simulators like gns3.
R1(config)#ip dhcp pool 10network "where '10network' is the pool name we can use what ever we
want.This command get us into the DHCP Configuration mode."
R1(dhcp-config)#exit
Now, Click on any of the PC->Desktop->ip configuration->Choose DHCP.Now PC will get an ip from DHCP
server.
Few more command We can use, but we can't configure this in packet tracer.Use gns3 simulator for this.
R1(dhcp-config)#netbios-server x.x.x.x 'where x.x.x.x is ip address of netbios server.
R1(dhcp-config)#lease x 'where X is the number it sets the lease time,by default 1 (i.e. one day).
R1(dhcp-config)#ip dhcp excluded address x.x.x.x x.x.x.x 'Range of ip address excluded from the pool it
will not be leased to the clients'.
R1(dhcp-config)#ip dhcp excluded address x.x.x.x 'To exclude only one ip address from the range of ip
address'.
Ex.
R1(dhcp-config)#netbios-server 10.0.0.2
R1(dhcp-config)#lease 2
R1(dhcp-config)#ip dhcp excluded address 10.0.0.1 10.0.0.10
R1(dhcp-config)#ip dhcp excluded address 10.0.0.35
Router#show ip dhcp binding w.x.y.z 'Displays the bindings for a specific DHCP client with an IP
address of w.x.y.z.'
Router#clear ip dhcp binding a.b.c.d 'Clears an automatic address binding from the DHCP server
database.'
Router#clear ip dhcp binding * 'Clears all automatic DHCP bindings.'
Router#show ip dhcp conflict 'Displays a list of all address conflicts recorded by the DHCP server.'
Router#clear ip dhcp conflict a.b.c.d 'Clears address conflict from the database.'
Router#show ip dhcp server statistics 'Displays a list of the number of messages sent and received by
the DHCP server.'
How to get ip From DHCP server Present away From Multiple Networks
2 DHCP, Dynamic, Rip 04:50
Here,we are going to see how to get ip from dhcp that is present away from multiple networks.
Router R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#no shutdown
R1(config-if)#exit
Router R2,
Step 3:Now, I am going to use RIP to enable dynamic routing,for that just add directly connected
networks to RIP
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
Global config mode,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#network 40.0.0.0
R2(config-router)#exit
We need to configure ip address for the gateway of our network.In this network topology we need
configure Interface fastethernet0/0 in R1 and Interface fastethernet 0/0 in R2 with 'ip helper-
address'.DHCP uses flooded Broadcast (i.e. 255.255.255.255 ) this can be forwarded from one network
to another.we tell the router by giving ip address('ip helper-address') to forward the packet to the DHCP
server if any packet arrived with this broadcast address 255.255.255.255.
In R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip helper-address 40.0.0.10
R1(config-if)#exit
In R2,
R2(config)#interface fastethernet0/0
R2(config-if)#ip helper-address 40.0.0.10
R2(config-if)#exit
Step 5:Now,Add the network pool to DHCP server,I am going add 10 and 30 network.
Click on Server->Config->DHCP,there you can see default pool for 40 network 'when we configure ip
address to fastethernet of dhcp server, it will add the network automatically to default pool by seeing
the ip address that belongs to.
Now, Add the network pool for 10 and 30 network
PoolName->10Network
Default Gateway->10.0.0.1
DNS Server->40.0.0.10
Start IP Address->10.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
PoolName->30Network
Default Gateway->30.0.0.1
DNS Server->40.0.0.10
Start IP Address->30.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
Here we are going to see, how to configure DHCP for multiple netowrks .Can we get ip address from
DHCP that is prensent in other network? yes we can.Lets see how to do with help of 'ip helper-address'.
step 2:Configure the router interface fastethernet0/0 and fastethernet 0/1 with ip address .
Router>enable
Router#config terminal
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastethernet0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Step 3:Click on server->config->then just give the gateway ip address .Gateway for this network is
10.0.0.1
Step 4:Then click on fastethernet assign ip address.I am going to give 10.0.0.2 and subnetmask
255.0.0.0.Once we have configured the ip address for the server,DHCP server automatically assign 10
network for default pool.We don't have to create pool for 10 Network again.Just we need to give ip for
DNS,Gateway and TFTP then we may configure starting ip address or leave it and Save.
Step 5:Now,Click on Pc in a LAN with Server and Check whether DHCP working fine in this network.Click
on any PC->Desktop->Ip configuration->Choose DHCP,then you will get ip from dhcp server for this PC.
Step 6:Now,we see how to get ip address for PC that is in a network without Server.For that, first we
have to add network pool in a dhcp server.
So,Click on Server->Config->DHCP.
Step 7:Just edit Pool Name with any other name.I am going to give 20Network.
Default Gateway->20.0.0.1,
DNS Server->10.0.0.2
Start Ip Address->20.0.0.10
Subnet Mask->255.0.0.0
Maximun Number Of Users->100
TFTP Server10.0.0.2
Setp 8:Now go to router and give ip helper address under fastethernet0/1,that is server address here
our server address is 10.0.0.2.Now we can get ip for this network also
Router(config)#interface fastethernet0/1
Router(config-if)#ip helper-address 10.0.0.2
Router(config-if)#exit
Step 9:Now,check whether PC from network without server getting ip from the DHCP server in another
Network.Click on any PC->Desktop->Ip configuration->Choose DHCP.Now i got ip address from dhcp
server.
I am getting ip address from dhcp server..thats it.
How to get ip From DHCP server Present away From Multiple Networks
2 DHCP, Dynamic, Rip 04:50
Here,we are going to see how to get ip from dhcp that is present away from multiple networks.
Router R1,
In global configuration mode,
R1(config)#interface fastethernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#no shutdown
R1(config-if)#exit
Router R2,
Step 3:Now, I am going to use RIP to enable dynamic routing,for that just add directly connected
networks to RIP
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#network 40.0.0.0
R2(config-router)#exit
We need to configure ip address for the gateway of our network.In this network topology we need
configure Interface fastethernet0/0 in R1 and Interface fastethernet 0/0 in R2 with 'ip helper-
address'.DHCP uses flooded Broadcast (i.e. 255.255.255.255 ) this can be forwarded from one network
to another.we tell the router by giving ip address('ip helper-address') to forward the packet to the DHCP
server if any packet arrived with this broadcast address 255.255.255.255.
In R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip helper-address 40.0.0.10
R1(config-if)#exit
In R2,
R2(config)#interface fastethernet0/0
R2(config-if)#ip helper-address 40.0.0.10
R2(config-if)#exit
Step 5:Now,Add the network pool to DHCP server,I am going add 10 and 30 network.
Click on Server->Config->DHCP,there you can see default pool for 40 network 'when we configure ip
address to fastethernet of dhcp server, it will add the network automatically to default pool by seeing
the ip address that belongs to.
PoolName->10Network
Default Gateway->10.0.0.1
DNS Server->40.0.0.10
Start IP Address->10.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
PoolName->30Network
Default Gateway->30.0.0.1
DNS Server->40.0.0.10
Start IP Address->30.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
Routing Information Protocol is distance vector routing protocol.It knows only neighbors,
Here we are going to see how to configure RIP in a simple topology,check connectivity between hosts
In Router R1,
In Router R2,
In Router R3,
R3(config)#
R3(config)#interface serial 1/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
R3(config-if)#encapsulation ppp
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
R3(config)#interface fastethernet 2/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#exit
In Router R3,
R3(config)#router rip
R3(config-router)#network 30.0.0.0
R3(config-router)#network 40.0.0.0
R3(config-router)#exit
Step 4: Now check routing table of route R1.Router will have all network information in its routing
table, router learned this route by using rip.
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Routing Information Protocol is distance vector routing protocol.It knows only neighbors,
Here we are going to see how to configure RIP in a simple topology,check connectivity between hosts
In Router R1,
In Router R3,
R3(config)#
R3(config)#interface serial 1/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
R3(config-if)#encapsulation ppp
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
R3(config)#interface fastethernet 2/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#exit
In Router R3,
R3(config)#router rip
R3(config-router)#network 30.0.0.0
R3(config-router)#network 40.0.0.0
R3(config-router)#exit
Step 4: Now check routing table of route R1.Router will have all network information in its routing
table, router learned this route by using rip.
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
How to configure a rip routing protocol with a simple toplogy in GNS 3 to check the connectivity
between hosts.
Step 1:Create a topology like this and do basic configurations ip address to the router interfaces ,ip
address and default gateway to the host same as in topology.
In Router R1,
In Router R2,
R2(config)#interface fastethernet2/0
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
Step 2:Check the routing table of the router R1 and R2 by giving the command show ip route in
privileged mode,
In Router R1,
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
In Router R2,
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Step 3:Now,Run Rip protocols on R1 and R2 .What rip will do is, it will create a routing update by adding
directly connected networks information and it will send to neighbor routers
Just add directly connected networks
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#exit
In Router R1,
R1#show ip route
R1#
Here,network 30.0.0.0 learned by the router R1 via Serial 2/0 by routing update from R2,that will be
reachable via 20.0.0.2(next hop).
[120/1]-120 Administrative distance of Rip,1-Reachable on one hop.
In Router R2,
R2#show ip route
Here,network 30.0.0.0 learned by the router R2 via Serial 2/0 by routing update from R1,that will be
reachable via 20.0.0.1(next hop).
Step 5:Now ping from the Host 10.0.0.10 to Host 30.0.0.10 by giving command
Rip Timers:
Update Interval-30
Flush After-240
Administrative Distance-120
Interior Gateway Routing Protocol is distance vector routing protocol.It is a cisco proprietery Routing
Protocol
In Router R1,
In Router R2,
In Router R3,
R3(config)#
R3(config)#interface serial 1/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
R3(config-if)#encapsulation ppp
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
R3(config)#interface fastethernet 2/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
In Router R2,
In Router R3,
Timers
Hello-10
Dead-40
Wait-40
Retransmit-5
In Router R1,
In Router R2,
In Router R3,
R3(config)#
R3(config)#interface serial 1/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
R3(config-if)#encapsulation ppp
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
R3(config)#interface fastethernet 2/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 10.0.0.0 0.255.255.255 area 3
R1(config-router)#network 20.0.0.0 0.255.255.255 area 1
R1(config-router)#exit
In Router R2,
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 20.0.0.0 0.255.255.255 area 1
R2(config-router)#network 30.0.0.0 0.255.255.255 area 0
R2(config-router)#exit
In Router R3,
R3(config)#router ospf 1
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#network 40.0.0.0 0.255.255.255 area 2
R3(config-router)#exit
You have to configure router id when we configure ospf.It is used to identify the router
Router#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Here,R2 knows Area 0.Network 20.0.0.0 connected to R2 from R1,So R1 learns networks through this
network.
R3(config)#router ospf 1, Here, 1 is Process ID, it can be 1-65535.It initializes ospf process.
There must be one interface up to keep ospf process up.So its better to configure loopback address to
routers.It is a virtual interface never goes down once we configured.
R1(config-if)#interface loopback 0
R1(config-if)#ip add 172.16.1.252 255.255.0.0
R1(config-if)#no shutdown
R2(config-if)#interface loopback 0
R2(config-if)#ip add 172.16.1.253 255.255.0.0
R2(config-if)#no shutdown
R3(config-if)#interface loopback 0
R3(config-if)#ip add 172.16.1.254 255.255.0.0
R3(config-if)#no shutdown
R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Here,R3 doesn't know about the area 3 so we have to create virtual link between R1 and R2
Step 6:Create virtual link between R1,R2,by this we create a virtual link to connect area 3 to area 0.
In Router R1,
R1(config)#router ospf 1
R1(config-router)#area 1 virtual-link 2.2.2.2
R1(config-router)#
*Feb 10 10:29:23.767: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL0 from LOADING to FULL,
Loadi
ng Done
In Rotuer R2,
*Feb 10 10:28:59.543: %OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone
area must be virtual-link but not found from 20.0.0.1, Serial1/0a
*Feb 10 10:29:09.535: %OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone
area must be virtual-link but not found from 20.0.0.1, Serial1/0.1.1
R2(config-router)#
R2(config-router)#area 1 virtual-link 1.1.1.1
R2(config-router)#exit
R2(config)#
*Feb 10 10:29:19.667: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on OSPF_VL0 from LOADING to FULL,
Loadi
ng Done
Step 7:R2 and R3 get updates about Area 3 .Now,Check routing table of R3,
R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
R3#show ip protocols
R3#show ip route ospf
R3#show ip ospf neighbors detail
R3#show ip ospf database
R3#show ip ospf interface
You will see like this,"Continue with configuration dialog? [yes/no]:".Give "no" and Press enter.Now you
will go to user mode,
Step 5:now give "enable" and press enter.Now you get into the Privileged Mode,now type "configure
terminal" and press enter to get into global configuration mode.
Step 6:Now configure router interface with ip address and subnet mask then give no shutdown to make
this interface and line protocol up(i.e. Carefully configure ip address with proper interfaces in this case
f0/0 and f1/0,f is short form of fastethernet.
Step 8:Now give this command "ping 20.0.0.10" and press enter.you will get,
connectivity between 10.0.0.10 and 20.0.0.10 is ok.Now PC1 communicates with PC2
Another way of checking connectivity is,select "simple PDU packet" from right side of packet tracer and
select source PC and Destination PC.You will get response at right bottom of the pacter tracer window.
Now we are going to see EIGRP Routing configurations with simple network topology using packet
tracer,
i.e.Always keep in mind to configure clock rate at DCE(Data Communication Equipment).we can see
clock symbol at the serial interface that is DCE other End is DTE(Data Terminal Equipment).To
avoid confusion just give this command on both side.
Now, "Interface Serial2/0, changed state to down" ,Because other end of the serial interface not
configured.So we have to configure other end of the serial interface in R2,then this interface become up.
Router R2,Config
R2(config)#
R2(config)#interface serial 3/0
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#clock rate 64000
R2(config-if)#encapsulation ppp
R2(config-if)#no shutdown
R2(config-if)#exit
Router R3,Config
R3(config)#interface fastethernet0/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
Interface fastethernet0/0 and line protocol,changed state to up
After all ip address assigned then lights in all interfaces become green.If anything wrong we get red or
amber.
Step 2:Now we see how to configure EIGRP routing protocols in this routers.
i.e.here 200 is Atonomous System Number,it is used to grouping of routers under common
admistration,Routers in different Atonomous Number
will not communicate with each other.So,Atonomous should be same in all routers.
R1#show ip route
Router R1 having all networks information in its routing table,Check for R2 and R3 also.
Step 4:Now click on Pc and select Desktop->command prompt,then check connectivity between
10.0.0.10 and 40.0.0.10
PC>Ping 40.0.0.10
In Privileged Mode,
show ip route
show ip protocol
show ip eigrp topology
Here,we are going to see how to configure DHCP within a LAN in a packet tracer,
DHCP Proces,(DORA)
Router>enable
Router#config t
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Step 3:click on server->config,then assign gateway in our example 10.0.0.1
Step 4:Then Click on Fastethernet and assign ip address and subnet mask.
I am going to use 10.0.0.2 and subnet mask 255.0.0.0 for our server.
step 2:Configure the router interface fastethernet0/0 and fastethernet 0/1 with ip address .
Router>enable
Router#config terminal
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastethernet0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Step 3:Click on server->config->then just give the gateway ip address .Gateway for this network is
10.0.0.1
Step 4:Then click on fastethernet assign ip address.I am going to give 10.0.0.2 and subnetmask
255.0.0.0.Once we have configured the ip address for the server,DHCP server automatically assign 10
network for default pool.We don't have to create pool for 10 Network again.Just we need to give ip for
DNS,Gateway and TFTP then we may configure starting ip address or leave it and Save.
Step 5:Now,Click on Pc in a LAN with Server and Check whether DHCP working fine in this network.Click
on any PC->Desktop->Ip configuration->Choose DHCP,then you will get ip from dhcp server for this PC.
Step 6:Now,we see how to get ip address for PC that is in a network without Server.For that, first we
have to add network pool in a dhcp server.
So,Click on Server->Config->DHCP.
Step 7:Just edit Pool Name with any other name.I am going to give 20Network.
Default Gateway->20.0.0.1,
DNS Server->10.0.0.2
Start Ip Address->20.0.0.10
Subnet Mask->255.0.0.0
Maximun Number Of Users->100
TFTP Server10.0.0.2
Setp 8:Now go to router and give ip helper address under fastethernet0/1,that is server address here
our server address is 10.0.0.2.Now we can get ip for this network also
Router(config)#interface fastethernet0/1
Router(config-if)#ip helper-address 10.0.0.2
Router(config-if)#exit
Step 9:Now,check whether PC from network without server getting ip from the DHCP server in another
Network.Click on any PC->Desktop->Ip configuration->Choose DHCP.Now i got ip address from dhcp
server.
I am getting ip address from dhcp server..thats it.
How to get ip From DHCP server Present away From Multiple Networks
2 DHCP, Dynamic, Rip 04:50
Here,we are going to see how to get ip from dhcp that is present away from multiple networks.
Router R1,
In global configuration mode,
R1(config)#interface fastethernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#no shutdown
R1(config-if)#exit
Router R2,
Step 3:Now, I am going to use RIP to enable dynamic routing,for that just add directly connected
networks to RIP
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#network 40.0.0.0
R2(config-router)#exit
We need to configure ip address for the gateway of our network.In this network topology we need
configure Interface fastethernet0/0 in R1 and Interface fastethernet 0/0 in R2 with 'ip helper-
address'.DHCP uses flooded Broadcast (i.e. 255.255.255.255 ) this can be forwarded from one network
to another.we tell the router by giving ip address('ip helper-address') to forward the packet to the DHCP
server if any packet arrived with this broadcast address 255.255.255.255.
In R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip helper-address 40.0.0.10
R1(config-if)#exit
In R2,
R2(config)#interface fastethernet0/0
R2(config-if)#ip helper-address 40.0.0.10
R2(config-if)#exit
Step 5:Now,Add the network pool to DHCP server,I am going add 10 and 30 network.
Click on Server->Config->DHCP,there you can see default pool for 40 network 'when we configure ip
address to fastethernet of dhcp server, it will add the network automatically to default pool by seeing
the ip address that belongs to.
PoolName->10Network
Default Gateway->10.0.0.1
DNS Server->40.0.0.10
Start IP Address->10.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
PoolName->30Network
Default Gateway->30.0.0.1
DNS Server->40.0.0.10
Start IP Address->30.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
In this post we are going to see how the switches learns MAC address and Forwards,Filters the frames in
Layer 2.
Create a topology like this,
PC-0
IP-10.0.0.10
Subnetmask-255.0.0.0
PC-1
IP-10.0.0.20
Subnetmask-255.0.0.0
PC-2
IP-10.0.0.30
Subnetmask-255.0.0.0
PC-3
IP-10.0.0.40
Subnetmask-255.0.0.0
we can also see the MAC address of the host's on that window.Now go to Switch Check the MAC
address table in Swith by giving this command,
Switch#show mac-address-table
Mac Address Table
-------------------------------------------
MAC address table is empty,now go to the host 10.0.0.10 and ping host 10.0.0.30
Click on PC0-->Desktop-->Command Prompt ,give this command 'ping 10.0.0.10' and hit enter.
PC>ping 10.0.0.30
Once we press enter to ping the ip address, PC will send the packets to switch,switch receives the
packets through the interface fastethernet0/1 and it will read the Source MAC address from the
frame.Now switch will check the MAC address table whether this MAC address already present or not,If
this is MAC address not present in the MAC address table then it will add this physial address to the
table with appropriate port address.Then it will check the Destination MAC address it will be like this
'0000.0000.0000' (because this the first time we ping so PC doesn't know the destination MAC
address,so the address will be zero next time mac address will be added from arp table).Now switch will
send this frame out on all ports because it is unknown unicast address.
Now,all host will receive this packet and every host will check the destination MAC address if it is it's
address it will reply to the host otherwise it will drop it,this is unknown unicast frames right, the MAC
address will be all Zero's.Now, the host will check the destination IP address,if the destination IP address
is matched host's IP address it will reply to the host otherwise it will drop it.
Now,the host 10.0.0.20 and 10.0.0.40 will drop this frames and host 10.0.0.30 will reply to 10.0.0.10
with source MAc address '0001.4232.090a' and the destination address '0040.0bb9.a7cc' of host
10.0.0.10.In the meantime switch waiting for the reply from any host.Now the host 10.0.0.30 sends
packets to the switch,now switch get packets from interface fastethernet0/3 learns the MAC address of
host 10.0.0.30 and it will check the destination address.It was already present in the table so it will not
broadcast the frames out in all ports it will forward the packet through interface fastethernet 0/1 to
host 10.0.0.10.
Now ping from the host 10.0.0.20 to 10.0.0.40 and check the mac address table of switch.
PC>ping 10.0.0.40
Switch#show mac-address-table
Mac Address Table
-------------------------------------------
That's it!!!....
How to Configure DHCP in Cisco Router Using Packet Tracer and Gns3
9 DHCP, Packet Tracer 02:16
R1#config t
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet 1/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#service dhcp
This command is to enable the dhcp server on a router. Routers in packet tracer won't accept this
command.By default dhcp will be running on router so skip 'service dhcp' command if you are
configuring dhcp in packet tracer,just create a network pool for the network it will work.Use this in real
time or other simulators like gns3.
R1(config)#ip dhcp pool 10network "where '10network' is the pool name we can use what ever we
want.This command get us into the DHCP Configuration mode."
R1(dhcp-config)#exit
Now, Click on any of the PC->Desktop->ip configuration->Choose DHCP.Now PC will get an ip from DHCP
server.
Few more command We can use, but we can't configure this in packet tracer.Use gns3 simulator for this.
R1(dhcp-config)#netbios-server x.x.x.x 'where x.x.x.x is ip address of netbios server.
R1(dhcp-config)#lease x 'where X is the number it sets the lease time,by default 1 (i.e. one day).
R1(dhcp-config)#ip dhcp excluded address x.x.x.x x.x.x.x 'Range of ip address excluded from the pool it
will not be leased to the clients'.
R1(dhcp-config)#ip dhcp excluded address x.x.x.x 'To exclude only one ip address from the range of ip
address'.
Ex.
R1(dhcp-config)#netbios-server 10.0.0.2
R1(dhcp-config)#lease 2
R1(dhcp-config)#ip dhcp excluded address 10.0.0.1 10.0.0.10
R1(dhcp-config)#ip dhcp excluded address 10.0.0.35
Router#show ip dhcp binding w.x.y.z 'Displays the bindings for a specific DHCP client with an IP
address of w.x.y.z.'
Router#clear ip dhcp binding a.b.c.d 'Clears an automatic address binding from the DHCP server
database.'
Router#clear ip dhcp binding * 'Clears all automatic DHCP bindings.'
Router#show ip dhcp conflict 'Displays a list of all address conflicts recorded by the DHCP server.'
Router#clear ip dhcp conflict a.b.c.d 'Clears address conflict from the database.'
Router#show ip dhcp server statistics 'Displays a list of the number of messages sent and received by
the DHCP server.'
How to get ip From DHCP server Present away From Multiple Networks
2 DHCP, Dynamic, Rip 04:50
Here,we are going to see how to get ip from dhcp that is present away from multiple networks.
Router R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#no shutdown
R1(config-if)#exit
Router R2,
Step 3:Now, I am going to use RIP to enable dynamic routing,for that just add directly connected
networks to RIP
In Router R1,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
Global config mode,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#network 40.0.0.0
R2(config-router)#exit
We need to configure ip address for the gateway of our network.In this network topology we need
configure Interface fastethernet0/0 in R1 and Interface fastethernet 0/0 in R2 with 'ip helper-
address'.DHCP uses flooded Broadcast (i.e. 255.255.255.255 ) this can be forwarded from one network
to another.we tell the router by giving ip address('ip helper-address') to forward the packet to the DHCP
server if any packet arrived with this broadcast address 255.255.255.255.
In R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip helper-address 40.0.0.10
R1(config-if)#exit
In R2,
R2(config)#interface fastethernet0/0
R2(config-if)#ip helper-address 40.0.0.10
R2(config-if)#exit
Step 5:Now,Add the network pool to DHCP server,I am going add 10 and 30 network.
Click on Server->Config->DHCP,there you can see default pool for 40 network 'when we configure ip
address to fastethernet of dhcp server, it will add the network automatically to default pool by seeing
the ip address that belongs to.
Now, Add the network pool for 10 and 30 network
PoolName->10Network
Default Gateway->10.0.0.1
DNS Server->40.0.0.10
Start IP Address->10.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
PoolName->30Network
Default Gateway->30.0.0.1
DNS Server->40.0.0.10
Start IP Address->30.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
step 2:Configure the router interface fastethernet0/0 and fastethernet 0/1 with ip address .
Router>enable
Router#config terminal
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastethernet0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Step 3:Click on server->config->then just give the gateway ip address .Gateway for this network is
10.0.0.1
Step 4:Then click on fastethernet assign ip address.I am going to give 10.0.0.2 and subnetmask
255.0.0.0.Once we have configured the ip address for the server,DHCP server automatically assign 10
network for default pool.We don't have to create pool for 10 Network again.Just we need to give ip for
DNS,Gateway and TFTP then we may configure starting ip address or leave it and Save.
Step 5:Now,Click on Pc in a LAN with Server and Check whether DHCP working fine in this network.Click
on any PC->Desktop->Ip configuration->Choose DHCP,then you will get ip from dhcp server for this PC.
Step 6:Now,we see how to get ip address for PC that is in a network without Server.For that, first we
have to add network pool in a dhcp server.
So,Click on Server->Config->DHCP.
Step 7:Just edit Pool Name with any other name.I am going to give 20Network.
Default Gateway->20.0.0.1,
DNS Server->10.0.0.2
Start Ip Address->20.0.0.10
Subnet Mask->255.0.0.0
Maximun Number Of Users->100
TFTP Server10.0.0.2
Setp 8:Now go to router and give ip helper address under fastethernet0/1,that is server address here
our server address is 10.0.0.2.Now we can get ip for this network also
Router(config)#interface fastethernet0/1
Router(config-if)#ip helper-address 10.0.0.2
Router(config-if)#exit
Step 9:Now,check whether PC from network without server getting ip from the DHCP server in another
Network.Click on any PC->Desktop->Ip configuration->Choose DHCP.Now i got ip address from dhcp
server.
I am getting ip address from dhcp server..thats it.
Packet Tracer 6.1 tutorial - DHCP configuration
Packet Tracer 6.0 implements two methods for setting up a DHCP server in your network :
Declare IP address pools on the DHCP management tab of the server like on the picture below.
One pool has to be declared for each VLAN. Don't forget to configure the right network settings
and default gateway (Router0 FA 0/0.10 and FA 0.0.20 IP address) for each VLAN.
How to get ip From DHCP server Present away From Multiple Networks
Router R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#no shutdown
R1(config-if)#exit
Router R2,
Step 3:Now, I am going to use RIP to enable dynamic routing,for that just add directly connected
networks to RIP
In Router R1,
Global config mode,
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
In Router R2,
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#network 40.0.0.0
R2(config-router)#exit
We need to configure ip address for the gateway of our network.In this network topology we
need configure Interface fastethernet0/0 in R1 and Interface fastethernet 0/0 in R2 with 'ip
helper-address'.DHCP uses flooded Broadcast (i.e. 255.255.255.255 ) this can be forwarded from
one network to another.we tell the router by giving ip address('ip helper-address') to forward the
packet to the DHCP server if any packet arrived with this broadcast address 255.255.255.255.
In R1,
R1(config)#interface fastethernet0/0
R1(config-if)#ip helper-address 40.0.0.10
R1(config-if)#exit
In R2,
R2(config)#interface fastethernet0/0
R2(config-if)#ip helper-address 40.0.0.10
R2(config-if)#exit
Step 5:Now,Add the network pool to DHCP server,I am going add 10 and 30 network.
Click on Server->Config->DHCP,there you can see default pool for 40 network 'when we
configure ip address to fastethernet of dhcp server, it will add the network automatically to
default pool by seeing the ip address that belongs to.
PoolName->10Network
Default Gateway->10.0.0.1
DNS Server->40.0.0.10
Start IP Address->10.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
PoolName->30Network
Default Gateway->30.0.0.1
DNS Server->40.0.0.10
Start IP Address->30.0.0.10
Subnetmask->255.0.0.0
Maximum Number of users->100
TFTP Server->40.0.0.10
Here we are going to see, how to configure DHCP for multiple netowrks .Can we get ip address
from DHCP that is prensent in other network? yes we can.Lets see how to do with help of 'ip
helper-address'.
step 2:Configure the router interface fastethernet0/0 and fastethernet 0/1 with ip address .
Router>enable
Router#config terminal
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastethernet0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Step 3:Click on server->config->then just give the gateway ip address .Gateway for this network
is 10.0.0.1
Step 4:Then click on fastethernet assign ip address.I am going to give 10.0.0.2 and subnetmask
255.0.0.0.Once we have configured the ip address for the server,DHCP server automatically
assign 10 network for default pool.We don't have to create pool for 10 Network again.Just we
need to give ip for DNS,Gateway and TFTP then we may configure starting ip address or leave it
and Save.
Step 5:Now,Click on Pc in a LAN with Server and Check whether DHCP working fine in this
network.Click on any PC->Desktop->Ip configuration->Choose DHCP,then you will get ip from
dhcp server for this PC.
Step 6:Now,we see how to get ip address for PC that is in a network without Server.For that, first
we have to add network pool in a dhcp server.
So,Click on Server->Config->DHCP.
Step 7:Just edit Pool Name with any other name.I am going to give 20Network.
Default Gateway->20.0.0.1,
DNS Server->10.0.0.2
Start Ip Address->20.0.0.10
Subnet Mask->255.0.0.0
Maximun Number Of Users->100
TFTP Server10.0.0.2
Setp 8:Now go to router and give ip helper address under fastethernet0/1,that is server address
here our server address is 10.0.0.2.Now we can get ip for this network also
Router(config)#interface fastethernet0/1
Router(config-if)#ip helper-address 10.0.0.2
Router(config-if)#exit
Step 9:Now,check whether PC from network without server getting ip from the DHCP server in
another Network.Click on any PC->Desktop->Ip configuration->Choose DHCP.Now i got ip
address from dhcp server.
I am getting ip address from dhcp server..thats it.
How to configure DHCP within a LAN in a packet Tracer
DHCP Proces,(DORA)
Router>enable
Router#config t
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Step 8:Then just edit start ip address.I am going to give 10.0.0.10 and subnet mask 255.0.0.0
Step 9:In Maximum Number of Users,Here we are using Class A Network so we can use
1,67,77,216 ip address.just give how many ip address you want in this pool.I am going to give
500
Now we are going to see EIGRP Routing configurations with simple network topology using
packet tracer,
Now, "Interface Serial2/0, changed state to down" ,Because other end of the serial interface not
configured.So we have to configure other end of the serial interface in R2,then this interface
become up.
Router R2,Config
R2#config terminal
R2(config)#interface serial 2/0
R2(config-if)#ip address 20.0.0.2 255.0.0.0
R2(config-if)#encapsulation ppp
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
R2(config)#interface serial 3/0
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#clock rate 64000
R2(config-if)#encapsulation ppp
R2(config-if)#no shutdown
R2(config-if)#exit
Router R3,Config
In Global configuration mode,
R3(config)#interface fastethernet0/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
After all ip address assigned then lights in all interfaces become green.If anything wrong we get
red or amber.
Step 2:Now we see how to configure EIGRP routing protocols in this routers.
i.e.here 200 is Atonomous System Number,it is used to grouping of routers under common
admistration,Routers in different Atonomous Number
will not communicate with each other.So,Atonomous should be same in all routers.
R1#show ip route
Router R1 having all networks information in its routing table,Check for R2 and R3 also.
Step 4:Now click on Pc and select Desktop->command prompt,then check connectivity between
10.0.0.10 and 40.0.0.10
PC>Ping 40.0.0.10
In Privileged Mode,
show ip route
show ip protocol
show ip eigrp topology
http://chennaicisco.blogspot.in/2013/10/how-to-configure-ip-address-to-pc-and.html