cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2996
Views
0
Helpful
4
Replies

How to create multiple subnet on the same router and let devices on different subnet ping each other?

NetworkNovice
Level 1
Level 1

Hi,

 

I am using CISCO packet tracer to simulate a network, say I have PC1, PC2, and Router1

 

I connect PC1 to FastGigabitethernet0/0/0 on Router1 and connect PC2 to FastGigabiteEthernet 0/0/1 on Router1

 

1) I want to create 2 subnets on router: 10.0.1.0/24 (Subnet1) and 10.0.2.0/24 (Subnet 2).

2) Next I want to bring PC1 into Subnet1 and PC2 to Subnet 2, which means PC1 will be randomly assigned an ip address between 10.0.1.1 - 10.0.1.254 and PC2 will be 10.0.2.1 - 10.0.2.254

3) I also want to let PC1 and PC2 ping each other.

 

Can somebody let me the correct command for the process above?

 

Thanks,

 

 

 

 

1 Accepted Solution

Accepted Solutions

luis_cordova
VIP Alumni
VIP Alumni

Hi @NetworkNovice,

 

1)

R(config)# int g0/0/0

R(config-if)#ip add 10.0.1.1.255.255.255.0

R(config-ir)#no shut

R(config)#exit

R(config)# int g0/0/1

R(config-if)#ip add 10.0.2.1 255.255.255.0

R(config)#no shut

R(config)#exit 

2)

R(config)#ip dhcp excluded-address 10.0.1.1

R(config)#ip dhcp excluded-address 10.0.2.1

R(config)#ip dhcp pool subnet1

R(config-dhcp)#network 10.0.1.0 255.255.255.0

R(config-dhcp)#default-router 10.0.1.1

R(config)#ip dhcp pool subnet2

R(config-dhcp)#network 10.0.2.0 255.255.255.0

R(config-dhcp)#default-router 10.0.2.1

3)

When the two networks are connected to the same router, they will have direct connectivity between the networks.

 

Regards

 

View solution in original post

4 Replies 4

luis_cordova
VIP Alumni
VIP Alumni

Hi @NetworkNovice,

 

1)

R(config)# int g0/0/0

R(config-if)#ip add 10.0.1.1.255.255.255.0

R(config-ir)#no shut

R(config)#exit

R(config)# int g0/0/1

R(config-if)#ip add 10.0.2.1 255.255.255.0

R(config)#no shut

R(config)#exit 

2)

R(config)#ip dhcp excluded-address 10.0.1.1

R(config)#ip dhcp excluded-address 10.0.2.1

R(config)#ip dhcp pool subnet1

R(config-dhcp)#network 10.0.1.0 255.255.255.0

R(config-dhcp)#default-router 10.0.1.1

R(config)#ip dhcp pool subnet2

R(config-dhcp)#network 10.0.2.0 255.255.255.0

R(config-dhcp)#default-router 10.0.2.1

3)

When the two networks are connected to the same router, they will have direct connectivity between the networks.

 

Regards

 

Hi, follow up questions:

 

If I want to ARP discover or WSDiscover the printer, what command line should I input?

Hi @NetworkNovice ,

 

What information do you need to know?

 

Regards

 

My Laptops and printers are in different subnets in the setup, I want to configure the router so that my Laptop can WSD Discover the printer. 

Review Cisco Networking for a $25 gift card