cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1539
Views
4
Helpful
11
Replies

Dynamic IP Routing Configuration Help

chernoaplha1395
Level 1
Level 1

I am new to packet tracer and i have a project to complete.

So basically there are 3 floors, each floor has a lab, class, faculty. the lab network is split into two using 2 switchs each connected to 20 devices. these 2 switches are connected to main switch of the floor. there are 6 classes connected to a switch which is connected to main switch same for faculty network.

the main switch of each floor is connected to a router which is also connected to a server with custom domain.

now i cant seem to get dynamic ip routing working through dhcp might have made mistake in config, can someone guide on what exactly to do to achieve dynamic ip routing where there are 3 vlans for each floor. also how to use single vlan for 2 switches(of lab).

i have the topolgy made but cant seem to get the config right.

The pkt file is attached in zip file.

Thanks in advance.

 

topology.png 

1 Accepted Solution

Accepted Solutions

On this last example, I put the VLAN30 on the button network, the Vlan20 on the middle and the Vlan10 on the top network. All PCs as getting IP address from DHCP server.

And I also created, as an example in case you want to work on it, one interface vlan for each area on the router.

This way is possible to have like vlan, 10, 20, 30 and 40 in each area. But, vlan10 in one area will have a different IP addresss from vlan10 in another area.

 Take a look and see if helps.

View solution in original post

11 Replies 11

Hi

 I dont need you PKT file attached. Make sure you attached it and I can help you.

Hi  Flavio thanks for reaching out yes i cant see the file, 
heres gdrive link to pkt file if you could help that would be great.

https://drive.google.com/file/d/1JIkE_cADOhof62lOcBfiZ0j9p_t4y2rM/view?usp=sharing

thanks in advance.

Hi

 Take a look on the file attached.  This is a huge network , so, fix everything would take some time. But, I did the basic so that you can move forward.

 You dont need routing protocol as the only Layer3 device you have is the router. So, you just need to create all the network on the routers and all hosts must be able to ping each other as long as they have the router as the gateway.

Interface between switch always in trunk

Create the vlan on the switch but it is not necessary to put ip address. If you do, use like 192.168.10.2 as the 192.168.10.1 is on the router. Just apply the same logic for all vlans.

On the file I attached, the PC D1_C5 was able to get IP address from vlan 10 in the Router. I recommend you to use this PC as example and apply to the rest of network accordingly.

Ask if you have any doubt from here.

Good luck.

Thanks I will check the attached file and get back soon if there is any other query

Hi Flavio,

So I've checked and it doesn't seem to work, you've seen the topology, what if I replace the main switches with routers and create a VLAN for each floor and a generic server and connect it to the main router and configure the DHCP server on it, would it work? Will I still need to do trunking?

Hi

 You did it wrong, there is nothing wrong with the topology. You can not put all the switches ports as trunk, only ports that connect another switch and router is trunk. Ports that connect to PC and servers must be access.

 Take a look on the file I am sending you. I create a DHCP scope on routers and all the PCs in the Red area are receiving  IP from DHCP and ping each others.

This whole area are vlan30 as it is connected to the interface 

GigabitEthernet0/2.30 192.168.30.1

All the switches from this area must have vlan 30 created and all ports needs to be on vlan 30.

FlavioMiranda_0-1682787219510.png

 

If...you need (want) to create differents vlans on this area, then, you need to create more subinterface on routers with more networks like for example below

GigabitEthernet0/2.30 192.168.30.1 - Vlan 30

GigabitEthernet0/2.40 192.168.40.1 - vlan 40

GigabitEthernet0/2.50 192.168.50.1 - vlan 50

 

This is true for all the areas. If you have only one subinterface, you can have one vlan per area, if you want to have more then one vlan, you need more than one subinterface.

 

Hope it clarify, if not, just ask.

 

 

On this last example, I put the VLAN30 on the button network, the Vlan20 on the middle and the Vlan10 on the top network. All PCs as getting IP address from DHCP server.

And I also created, as an example in case you want to work on it, one interface vlan for each area on the router.

This way is possible to have like vlan, 10, 20, 30 and 40 in each area. But, vlan10 in one area will have a different IP addresss from vlan10 in another area.

 Take a look and see if helps.

Hi Flavio,
Thanks for providing the config file it really helped a lot, Thanks Again.
also, the devices are arranged randomly, I guess that was due to file transfer.
thanks again

Martin L
VIP
VIP

no file attached

 

Regards, ML
**Please Rate All Helpful Responses **

chernoaplha1395
Level 1
Level 1
 

chernoaplha1395
Level 1
Level 1

pkt file is attached in reply to post as zip file, for alternate ways gdrive link of pkt file is in replies.