May I use any VLAN interface IP address as Default Gateway ???

Unanswered Question
Jul 13th, 2007

I have so many vlan & vlan interface in my network, now suppose I am sitting in vlan 2 & using vlan-2 interface IP address as default gateway & working fine.

Now I change my default gateway & give vlan-3 Interface ip address as default gateway. Again I can reach every where in my network & internaet. Configuration is given below :-

interface Vlan2

description *** For Servers ***

ip address

standby 2 ip

standby 2 priority 110

standby 2 preempt


interface Vlan3

description *** For Labs ***

ip address

standby 3 ip

standby 3 priority 110

standby 3 preempt


Please suggest where I am making the mistake buddy ???

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
smothuku Fri, 07/13/2007 - 04:28

Hi ,

switch you are using supports IP routing...

I guess Intervaln routing is been done on the switch...

which switch u are using in network ...

Note : you can reach anything in network if you are in correct vlan...suppose if your pc is configured ip address of and gate and it is connected to switch port which is in another vlan you cann't reach anything in network...

Cheers :)


Richard Burts Fri, 07/13/2007 - 07:34

If I understand the original post correctly he is in VLAN 2 and then configured the PC with default gateway using the address of the VLAN 3 interface. This can work ok given 2 requirement:

- first the obvious one - that intervlan routing is enabled.

- then the not obvious one - proxy arp must be enabled.

I believe that what is happening is that the PC is configured with a "remote" address as its default gateway. It ARPs for the gateway address. The VLAN 2 interface receives the ARP request for the remote address, and if proxy arp is enabled then the interface will respond to the arp request with its own MAC address. Proxy ARP is enabled by default. I suspect that if they turn off proxy arp that the gateway in VLAN 3 will no longer work.



Jon Marshall Fri, 07/13/2007 - 08:50

Hi Rick

"If I understand the original post correctly.."

One thing i have learnt from you on this forum is that it's not wise to make assumptions :) so i just wanted to clarify before responding.


Richard Burts Fri, 07/13/2007 - 09:08


Yes indeed, as a consultant I keep being reminded that assumptions about customer networks can be dangerous. It is never a bad idea to clarify assumptions before responding.

In this case I was fairly comfortable with the assumption and thought that the assumption led to an interesting scenario which would be interesting to discuss. If it turns out that the PC is not in VLAN 2, then we will need a different discussion. But I thought that the operation of proxy ARP was something that some people would not be familiar with and was worth the mention.




This Discussion