cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
294
Views
0
Helpful
1
Replies

Secondary IP Address

ragulan_dms
Level 1
Level 1

I need to understand how secondary ip address configure on router work when it is two different network

e.g:

ip address 1xx.xx.7.2 255.255.255.0 secondary

ip address 1xx.xx.6.2 255.255.255.0

secondary

and

ip route 1xx.xx.6.0 255.255.255.0 FastEthernet0/1

ip route 1xx.xx.7.0 255.255.255.0 FastEthernet0/1

Now what should be the switch port configration for the port connected to FastEthernet 0/1 of the router. If i want keep two different network by mean of vlan ( say vlan 6 and vlan 7 ) how it will work ? How to set up the dhcp server and relay on the L3 router?

1 Reply 1

Kevin Dorrell
Level 10
Level 10

If your router interface with a primary IP subnet and a secondary IP subnet, then they must be on the same VLAN on your switch. In that case, there is no way to distinguish between the two subnets as far as DHCP is concerned, unless you want to do static mapping.

It sounds to me like what you really want to do is have two seperate VLANs and two seperate subinterfaces on your router. So, set up the router connection to the switch as a dot1q trunk, and make two seperate sub-interfaces on your router:

interface FastEth 0/1.6

 encapsulation dot1q 6

 ip address 1xx.xxx.6.2 255.255.255.0

!

interface FastEth 0/1.7

 encapsulation dot1q 7

 ip address 1xx.xxx.7.2 255.255.255.0

Then you can put your switch access ports on VLAN 6 or VLAN 7 as you want. Furthermore, the DHCP pools for the two VLANs will work independently.

Kevin Dorrell

Luxembourg

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card