05-15-2018 10:35 AM - edited 03-08-2019 03:01 PM
Hi all,
I am configuring cisco ASA 5525-x .I configured port-channel sub interfaces for multiple vlans.
I also configured ASA as a dhcp server for these vlans.
I created different dhcp scope for different vlans and evenn it works fine, clients are receiving IP addresses from dhcp server.
Problem is I do not know how to configure default gateway for each vlan differently.
I configured default gateway by using given command:
# dhcpd option 3 10.10.100.x(ip add of default-gateway for vlan 100)
but if I am trying same command to configure default-gateway for other vlans then it overwrite the previous command.
Below is the configuration of dhcp server on ASA:
interface GigabitEthernet0/6
channel-group 1 mode passive
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/7
channel-group 1 mode passive
no nameif
no security-level
no ip address
!
!
interface Port-channel1
lacp max-bundle 8
no nameif
no security-level
no ip addres
!
interface Port-channel1.102
vlan 102
nameif vlan102
security-level 100
ip address 10.10.102.x 255.255.255.0
!
interface Port-channel1.103
vlan 103
nameif vlan103
security-level 100
ip address 10.10.103.x 255.255.255.0
dhcpd option 3 ip 10.10.100.x
dhcpd address 10.10.102.10-10.10.102.50 vlan102
dhcpd enable vlan102
!
dhcpd address 10.10.103.10-10.10.103.50 vlan103
dhcpd enable vlan103
Please help....
Thank you
Mandeep
Solved! Go to Solution.
05-15-2018 10:47 AM - edited 05-15-2018 10:48 AM
So the DHCP server in the ASA is not the best but you can configure it by appending the interface name at the end of the line:
dhcpd option 3 ip 10.10.100.254 interface vlan100
dhcpd option 3 ip 10.10.101.254 interface vlan101
05-15-2018 11:04 AM
Hello,
the syntax looks right:
dhcpd option 3 ip ip_address interface interface_name
Is that how you enter it ?
05-15-2018 10:47 AM - edited 05-15-2018 10:48 AM
So the DHCP server in the ASA is not the best but you can configure it by appending the interface name at the end of the line:
dhcpd option 3 ip 10.10.100.254 interface vlan100
dhcpd option 3 ip 10.10.101.254 interface vlan101
05-15-2018 11:30 AM
05-15-2018 11:04 AM
Hello,
the syntax looks right:
dhcpd option 3 ip ip_address interface interface_name
Is that how you enter it ?
05-15-2018 11:31 AM
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