test me

Site Search:

Packet Tracer video tutorial – Connect two Switches with a Router (CLI)

If you have walked through my previous video tutorials about packet tracer, and went through the Exercise 1 and Exercise 2, you should already familiar with how to deploy pcs, hubs, switches and routers in packet tracer, and connect them with connection cables. The routers need to be configured, we can configured a router via packet tracer's config tab GUI, or via the CLI.

In Exercise 2, we configured a router through the config tab, we turned on Router interface FastEthernet0/0 and GasEthernet1/0, giving them IP addresses and subnet masks.

In this Exercise, we will configure a router. Instead of doing the config via config tab GUI, this time we will do it via the command line (CLI). We will basically do the same thing as Exercise 2: we turn on Router interface FastEthernet0/0 and GasEthernet1/0, giving them IP addresses and subnet masks.

Compare with Exercise 2, we added two general servers to the network, and configure them as DHCP servers; in Exercise 3, we will revisit DHCP service, and configure it on the router itself.


This lab include one Cisco 2811 router, 6 General PCs, and 2 General Servers. 
The router divide the network into 2 networks: at the left side of the router is 192.168.250.0/24 network; at the right side of the router is 192.168.251.0/24 network.

The two General Servers act as the DHCP servers, the left side server is the DHCP server is configured to generate IP pool for 192.168.250.0/24 network, while the right side server is configured to generate IP pool for the 192.168.250.0/24 network.

The General Server at the left side is also act as the DNS server for both 192.168.250.0/24 and 192.168.251.0/24 network.

Configure Router

To configure the router: press the CLI tab, then type in the following commands:

enable
show ip interface brief
config t
interface fa0/0
description 192.168.250.0/24 network
ip address 192.168.250.254 255.255.255.0
no shut
do wr

config t
interface fa0/1
description 192.168.251.0/24 network
ip address 192.168.251.254 255.255.255.0
no shut
do wr

Configure DHCP server for 192.168.250.0/24 network

Now we configure the DHCP server at the left side,

step 1. Press Config tab, In Global Settings, set the following:
Gateway/DNS: static
Gateway: 192.168.250.254
DNS Server: 192.168.250.100

step 2. click DHCP tab to enable DHCP service on this server.
Service: On
Pool Name: ServerPool
Ethernet Gateway: 192.168.250.254
DNS Server: 192.168.250.100
Start IP Address: 192.168.250.2
Subnet Mask: 255.255.255.0

step 3. Press save

step 4. In the IP Configuration
select static
IP Address: 192.168.250.100
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.250.254
DNS Server: 192.168.250.100

Configure DHCP server for 192.168.251.0/24 network

Now we configure the DHCP server at the right side,

step 1. In Global Settings, set the following:
Gateway/DNS: static
Gateway: 192.168.251.254
DNS Server: 192.168.250.100

step 2. click DHCP tab to enable DHCP service on this server.
Service: On
Pool Name: ServerPool
Ethernet Gateway: 192.168.251.254
DNS Server: 192.168.250.100
Start IP Address: 192.168.251.2
Subnet Mask: 255.255.255.0

step 3. Press save

step 4. In the IP Configuration
select static
IP Address: 192.168.251.100
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.251.254
DNS Server: 192.168.250.100

Configure PCs

open Desktop, in IP Configuration, select DHCP, the ip address will be auto populated.