[go: up one dir, main page]

0% found this document useful (0 votes)
13 views4 pages

CN Lab Router Config

The document outlines the setup of a network with two PCs, two routers, and two switches, including their IP configurations and connection types. It provides step-by-step instructions for creating the network in Cisco Packet Tracer, configuring IP addresses, and establishing static routes between the routers. Additionally, it includes commands for testing connectivity between the two PCs using ping commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

CN Lab Router Config

The document outlines the setup of a network with two PCs, two routers, and two switches, including their IP configurations and connection types. It provides step-by-step instructions for creating the network in Cisco Packet Tracer, configuring IP addresses, and establishing static routes between the routers. Additionally, it includes commands for testing connectivity between the two PCs using ping commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

We'll create the following:

• PC1 in subnet 192.168.1.0/24

• PC2 in subnet 192.168.2.0/24

• Router1 connecting to PC1

• Router2 connecting to PC2

• A serial connection between Router1 and Router2

• Switch1 and Switch2 for connecting PCs to Routers

Visual Diagram:

PC1 → Switch1 → Router1 ⇄ Router2 ← Switch2 ← PC2

1. Open Cisco Packet Tracer.

2. From the bottom toolbar:

o Go to End Devices, drag 2 PCs.

o Go to Switches, drag 2 switches.

o Go to Routers, drag 2 routers (e.g., 2811).

Arrange them as per the diagram.

Use the "Connections" (lightning icon):

1. PC1 to Switch1: Copper straight-through cable

2. Switch1 to Router1: Copper straight-through

3. Router1 to Router2: Serial cable (choose Serial DCE cable)

4. Router2 to Switch2: Copper straight-through

5. Switch2 to PC2: Copper straight-through

Check connections:

• PC: FastEthernet0

• Switch: FastEthernet1/1 (or similar)

• Router: FastEthernet0/0 (to Switch), Serial0/0/0 (to Router)


Click on PC1:

• Desktop → IP Configuration:

o IP Address: 192.168.1.2

o Subnet Mask: 255.255.255.0

o Default Gateway: 192.168.1.1

Click on PC2:

• Desktop → IP Configuration:

o IP Address: 192.168.2.2

o Subnet Mask: 255.255.255.0

o Default Gateway: 192.168.2.1

• Click Router1 → CLI:

Router> enable

Router# configure terminal

! FastEthernet (to Switch1)

Router(config)# interface fastEthernet 0/0

Router(config-if)# ip address 192.168.1.1 255.255.255.0

Router(config-if)# no shutdown

! Serial (to Router2)

Router(config)# interface serial 0/0/0

Router(config-if)# ip address 10.0.0.1 255.255.255.252

Router(config-if)# clock rate 64000

Router(config-if)# no shutdown
Click Router2 → CLI:

Router> enable

Router# configure terminal

! FastEthernet (to Switch2)

Router(config)# interface fastEthernet 0/0

Router(config-if)# ip address 192.168.2.1 255.255.255.0

Router(config-if)# no shutdown

! Serial (to Router1)

Router(config)# interface serial 0/0/0

Router(config-if)# ip address 10.0.0.2 255.255.255.252

Router(config-if)# no shutdown

Adding Static Routes

On Router1:

Router(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2

On Router2:

Router(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1

Go to PC1:

• Desktop → Command Prompt

• Type: ping 192.168.2.2

Go to PC2:

• Desktop → Command Prompt

• Type: ping 192.168.1.2

You might also like