×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Routing with secondary ip address

Unanswered Question
Jan 15th, 2003
User Badges:

I have a setup with the following:

s0 <- 1720 -> fa0 -> 5 port basic switch <- e0 <- 1720 -> fa0 -> LAN

| | |

VoIP phone adapters (the adapters should acatually be hanging off the switch, but my format is off in the diagram)


1. The s0 interface is connected to a T1

2. The 1720 fa0 is connected to a 5 port switch.

3. The 1721 e0 is connected to the same switch

4. There are 3 VoIP phone adapters connected to the same switch

5. The 1721 fao is the default gateway of the LAN.

The config of the 1720 is:

interface s0

1.1.1.1/30

Interface fa0

10.10.10.1/29 (subnet for VOip phone adapters)

10.10.10.9/30 secondary

ip route 0.0.0.0 0.0.0.0 1.1.1.2

The config of the 1721 is:

Interface e0

10.10.10.10/30

Interface fa0

172.16.1.1/24

route 0.0.0.0 0.0.0.0 10.10.10.9


With this setup, I cannot ping, telnet or have any communication between the 1720 fa0 and the 1721 e0. I believe part of the problem is that the secondary address is not seen as routable so the gateway on the 1721 should actually be 10.10.10.1 (the primary of the interface). Can anyone help me with this config? Do I need a switch that does VLANs?


Thanks,

RJ

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
deilert Wed, 01/15/2003 - 10:46
User Badges:
  • Silver, 250 points or more

Rj


I believe your problem is related to your default route on the 1720 is sending all traffic there is no route for out the s0 interface. try adding a static route on the 1720


ip route 172.16.1.0 255.255.255.0 10.10.10.10



9mmurphy Wed, 01/15/2003 - 11:46
User Badges:

There are a couple of things to look at...


Does your routing protocol support VLSM?


10.10.10.9/30 is the network number, not a valid address(unless you use IP SUBNET ZERO). Use 10 and 11 as the host addresses, 9 is the network number and 12 is the broadcast address.


There is a technical issue when you configure one router with a primary and secondary address and another router on the same segment with only the secondary. I cannot remember the TAC document, but it can cause some routing issues and in general is probably not a good practice.


If you had to keep the config, make the 10.10.10.9/30 network as your primary and make the 10.10.10.0/29 network as the secondary on the WAN router only. That way, your primary(WAN) is talking to the only address on the LAN router.


HTH

deilert Wed, 01/15/2003 - 12:08
User Badges:
  • Silver, 250 points or more

the correct subnet is 10.10.10.8/30 .9 & .10 are hosts .11 is the broadcast 10.10.10.12 would be a new network


networks


10.10.10.0/30

10.10.10.4/30

10.10.10.8/30

10.10.10.12/30

9mmurphy Wed, 01/15/2003 - 12:49
User Badges:

Thanks for correcting me.... sorry for the confusion.


I need to wear those glasses and not store them in my desk drawer.

9mmurphy Wed, 01/15/2003 - 13:58
User Badges:

I just checked the config in the lab and you need to have the interface with two ip addresses setup such that the primary address matches the other end routers only ip address.


The error is "not on common subnet" for your current configuration.


I felt complelled to check it after goofing up the network address/mask answer.

ttuncaral Thu, 01/16/2003 - 00:18
User Badges:

Did you try changing primary and secondary address definitions of fast 0 interface? This would help you to access both addresses. Generally, using highest address as secondary from the similar subnets would cause some network routing problems. Probably adding a static route for inaccessible network to the router which has two interface address, will solve the problem but I'm not sure and I am unable to try on my lab now.

Hope this helps.

rj.remien Thu, 01/16/2003 - 09:18
User Badges:

Thanks for all the posts. I found out that I have to have a secondary ip address on both routers in the same subnet and a primary ip address on both routers in the same subnet.


RJ

Actions

This Discussion