cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1171
Views
0
Helpful
4
Replies

how to configure multiple default gateways on ASA for diff. vlans

MandeepDeol
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

rasmus.elmholt
Level 7
Level 7

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

View solution in original post

Hello,

 

the syntax looks right:

 

dhcpd option 3 ip ip_address interface interface_name

 

Is that how you enter it ?

View solution in original post

4 Replies 4

rasmus.elmholt
Level 7
Level 7

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

thankyou rasmus.It works!!


Hello,

 

the syntax looks right:

 

dhcpd option 3 ip ip_address interface interface_name

 

Is that how you enter it ?

Yeah, this is correct command. works fine.


thankyou for help
Review Cisco Networking for a $25 gift card