02-07-2013 06:19 AM - edited 03-07-2019 11:34 AM
I have a Cisco 1921 Router, a Cisco Catalyst 2960 and a Cisco Catalyst 2970 and I want the router to be able to assign ip-addresses by what VLAN a device is active on.
VLAN1: 10.0.0.0/24
VLAN2: 10.0.1.0/24
The router is connected to the Catalyst 2960 and there on to the Catalyst 2970 so the VLAN1 and VLAN2 is active on the to switches and the Router.
My main question: Is this possible?
Solved! Go to Solution.
02-07-2013 03:07 PM
Hi,
When you say it is working from 2960 do you mean you are able to get the ip address from dhcp scope of vlan 1 and vlan 2?
On the non working switch try to issue below command and give a try
Config terminal
No ip routing
Regards
Najaf
Sent from Cisco Technical Support iPhone App
02-07-2013 06:35 AM
Hi,
you can configure multiple dhcp scopes on Cisco IOS but could you elaborate your requirements .
Regards
Alain
Don't forget to rate helpful posts.
02-07-2013 07:09 AM
Hi Erik,
Hope the below diagram represent what you want to archive. Also please find the typical configuration on router and switch.
Regards
Najaf
Please rate when applicable or helpful !!!
02-07-2013 07:22 AM
Does this require 2 NIC? The 1921 one have 2 nic without extension cards, eth0/0 act as WAN port and eth0/1 is the LAN port.
Does it work with multiple vlans on the same NIC?
02-07-2013 07:42 AM
Hi Eric,
If the interface can support sub interface then you dont need two interface. You can check if the device support sub interface with below command.
conf terminal
int eth0/1.1
enacapsulation dot1q 1
int eth0/1.2
enacapsulation dot1q 2
Hope this helps
Regards
Najaf
Please rate when applicable or helpful !!!
02-07-2013 02:31 PM
I can't get it to work on my Cisco Catalyst 2970, No servers are getting any ip-address, if I try on the 2969 it works, what am I doing wrong?
Catalyst 2970 Config:
Catlust 2960 Config:
02-07-2013 03:07 PM
Hi,
When you say it is working from 2960 do you mean you are able to get the ip address from dhcp scope of vlan 1 and vlan 2?
On the non working switch try to issue below command and give a try
Config terminal
No ip routing
Regards
Najaf
Sent from Cisco Technical Support iPhone App
02-07-2013 11:31 PM
So I mangage to get everything up, i just reloaded all the devices and it works..dont know i I forgot to same something but it works not.. Thanks all for the help
02-08-2013 01:14 AM
Hi Erik,
Glad to know that everything is woking as expected.
Please dont forget to rate for the useful answers.
Regards
Najaf
Please rate when applicable or helpful !!!
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