RoaS w/DHCP?
spartangtr
Member Posts: 111
in CCNP
Not sure if this can be done and my googling hasn't gotten me very far. Right now I have my 1721 set up with router on a stick routing for 3 of my switches for 3 different VLANs. Up until now i've just statically configured IP address but is it possible to make the 1721 act as a DHCP server for all 3 VLANs/subnets?
VLAN1 172.16.1.0 /24
VLAN2 172.16.2.0 /24
VLAN3 172.16.3.0 /24
I've setup all 3 pools on the router already but is there someway to pull this off or will my clients on the switches end up pulling address for subnets that are part of a different vlan? Hope that made sense....
VLAN1 172.16.1.0 /24
VLAN2 172.16.2.0 /24
VLAN3 172.16.3.0 /24
I've setup all 3 pools on the router already but is there someway to pull this off or will my clients on the switches end up pulling address for subnets that are part of a different vlan? Hope that made sense....
Comments
-
wastedtime Member Posts: 586 ■■■■□□□□□□Nope they will pull from the right dhcp pool. The router will see which vlan they came in on and assign based on that. If you haven't seen this you may want to look at this cisco document on dhcp.
Cisco IOS IP Configuration*Guide, Release*12.2 - Configuring DHCP - Cisco Systems -
spartangtr Member Posts: 111wastedtime wrote: »Nope they will pull from the right dhcp pool. The router will see which vlan they came in on and assign based on that. If you haven't seen this you may want to look at this cisco document on dhcp.
Cisco IOS IP Configuration*Guide, Release*12.2 - Configuring DHCP - Cisco Systems
Yea it ended up working. I've been going at this for the better part of an hour only to find out my stupid mistake was causing it from working. I have my desktop connected to the second switch and it's switchport is assigned to VLAN2. The switch is a vtp client, and I realized I never setup on the Vlans on the server switch. Once I took care of that all worked as planned.
Go figure. -
wastedtime Member Posts: 586 ■■■■□□□□□□spartangtr wrote: »Yea it ended up working. I've been going at this for the better part of an hour only to find out my stupid mistake was causing it from working. I have my desktop connected to the second switch and it's switchport is assigned to VLAN2. The switch is a vtp client, and I realized I never setup on the Vlans on the server switch. Once I took care of that all worked as planned.
Go figure.
Chalk it up to a learning experience. It should only help you in the future. -
burbankmarc Member Posts: 460wastedtime wrote: »Nope they will pull from the right dhcp pool. The router will see which vlan they came in on and assign based on that. If you haven't seen this you may want to look at this cisco document on dhcp.
Cisco IOS IP Configuration*Guide, Release*12.2 - Configuring DHCP - Cisco Systems
That is awesome. I was just thinking about that this morning. Thanks.