03-03-2021 09:16 AM
Hi
How do i setup an DHCP server on my 3750x, that will work with all my private vlans?
Best greetings from Christian Josiassen
03-03-2021 09:34 AM
Hello,
the 3750x can function as DHCP server for any range, private or public. Below an example of how the switch should be configured in order to provide IP addresses for three different Vlans. You can add as many as you want:
ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
!
ip dhcp pool VLAN10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8 8.8.4.4
!
ip dhcp pool VLAN20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8 8.8.4.4
!
ip dhcp pool VLAN30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 8.8.8.8 8.8.4.4
03-03-2021 09:46 AM
Hi
So i can't use the same ip's for every pvlan?
03-03-2021 10:37 AM
Hello,
my bad, I wasn't aware that you were talking about private Vlans...
Either way, the Cisco DHCP server assigns IP addresses from the block of addresses allocated to the primary VLAN to all secondary Vlans so yes, you can use the same IP addresses for all Vlans.
03-03-2021 10:41 AM
Hi
Is the config different then or is it the same as you send before just with the same ip's?
03-03-2021 10:44 AM
why do you need the same IP address for the Private VLAN, can you explain the use case here?
read the guidelines and Limitation :
03-03-2021 10:51 AM - edited 03-03-2021 10:56 AM
Hi
I'm just getting confused with the different gateways, i have an cisco 5512x as gateway 192.168.1.1
Does the ASA have to be configured to work with the different gateways?
Sry for stupid questions, this is new to me.
03-03-2021 11:28 AM
I do not believe you need a private VLAN, since you are confused with Gateway and you want to make the same IP address for all VLANs.
what is the requirement here?
They do not require Internet access?
Simple is Setup a DHCP Server that can automatically be allocated IP address, you do not need to remember anything.
Add default route towards ASA, So ASA can take care of NAT and user can access the Internet?
is this what you think is correct? please confirm if we understand wrong here?
03-03-2021 11:32 AM - edited 03-03-2021 11:35 AM
Hi
they do need internet access
it's okay with the different ip's
i just need one isolated vlan
one community for my primary network
and one more community vlan for lab testing
03-03-2021 11:40 AM
Hello
PVLAN isnt designed so you can reuse the same addressing its to isolate or segregate host within an address scope.
If you want to use the same addressing for multiple hosts then you would need to put those hosts in separate routing domains with vrf's.
As regards using DHCP with PVLANS never tried it to be honest but i would say your primary vlan would need a layer 3 interface associated with it so to enable the community and isolated vlans to retrieve an allocation
03-03-2021 11:49 AM - edited 03-03-2021 11:53 AM
Hi
I don't need the same ip's, i just need two community vlans and one isolated vlan all with internet access and dhcp.
03-03-2021 12:25 PM
Hello
@ChristianSchmidtJosiassen wrote:
So i can't use the same ip's for every pvlan?
I don't need the same ip's, i just need two community vlans and one isolated vlan all with internet access and dhcp.
I was replying to your previous comment - if you don't require the same ip then all good, So try adding a L3 interface for the primary vlan and test dhcp against it.
03-03-2021 12:29 PM
Hi
How do i then get internet access for the vlans from my ASA?
03-03-2021 12:41 PM - edited 03-03-2021 12:41 PM
Looks like you are confusing whole discussion, one of the posts you do not need internet, another post you asking you need internet?
Lets make clear goal and what you like to achieve.
1. you have ASA
2. You have got 3750 switch
how many VLAN you need ?
they connected, you want some VLAN Internet, some VLAN need to be Local is this correct.
Only question here is you do not need Private VLAN here, you can segment the network with different VLAN
Only VLAN required for the internet, you add them in ASA for NAT.
rest any way not go to the internet they dropped by ASA.
03-03-2021 12:44 PM
Hi
That's also a solution, but how do i do that then?
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