02-18-2019 07:57 PM - edited 03-08-2019 05:23 PM
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,
Solved! Go to Solution.
02-18-2019 08:23 PM
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
02-18-2019 08:23 PM
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
02-21-2019 11:45 AM
Hi, follow up questions:
If I want to ARP discover or WSDiscover the printer, what command line should I input?
02-21-2019 12:07 PM
02-21-2019 12:11 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide