08-29-2014 12:41 AM - edited 03-07-2019 08:34 PM
HI all.
I'm a newbie with Cisco.
I wanted to achieve something like this.
I want to make separate subnets on Layer 3 switch. I'm not using any router.
Each Interface is each vlan&subnet. So Interface fa0/2 is vlan2, interface fa0/10 is vlan10 and so on. Additionaly vlan 2 is subnet 2.x and vlan10 is subnet 10.x
I already configured Dhcp server with scopes and configured IP helper
BUT
And here starts my question.
Is that true that I have to enable IP routing between Vlans? If yes then what's the point of creating Vlans when we have to enable routing between them?
Or maybe there is a way to enable only communication with DHCP server but disable any other communication between VLans?
Let say I have DHCP server on vlan1 and want vlan5 to only communicate with DHCP server but not communicate with vlan10 and any other computersi n vlan1. Is that possible?
Thanks
Solved! Go to Solution.
08-29-2014 02:50 AM
VLANS are as the name implies, i.e. a virtual LAN. You only need to route if you want to communicate between them!
You need to configure the IP-helper on 5 (and 10, if you DHCP clients), if configured correctly, this will achieve what you want.
Martin
08-29-2014 01:00 AM
The config can be as below if i understand your question :
interface vlan 2
ip address 2.x
interface Fa0/2
switchport access vlan
interface vlan 5
ip address 5.x
interface Fa0/5
switchport access vlan 5
interface vlan 1
ip address 1.x
interface fa0/1
switchport access vlan 1
ip routing
interface fa0/3
description --> DHCP Server
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,5,2,10
switchport mode trunk
So you have DHCP server on VLAN 1. The computer on VLAN 1 can acquire IP from DHCP Server .
This is my solution, but if i not understand your question you can answer me
08-29-2014 02:50 AM
VLANS are as the name implies, i.e. a virtual LAN. You only need to route if you want to communicate between them!
You need to configure the IP-helper on 5 (and 10, if you DHCP clients), if configured correctly, this will achieve what you want.
Martin
08-29-2014 03:11 AM
Thank you.
I have no idead why I thought that you have to enable ip routing to have it working.
I tested it with IP helper without IP routing and it's working fine.
09-04-2014 06:52 AM
Hi Tomaz bogusz ,
Can you share the configuration details with my mail id(ramdineshsunil@gmail.com)
If you don't mind just for understanding
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