HP 2650 - "Default Gateway" vs. "Static route 0.0.0.0" (497 Views)
Reply
Occasional Advisor
David Nemeth
Posts: 13
Registered: ‎09-16-2002
Message 1 of 4 (497 Views)

HP 2650 - "Default Gateway" vs. "Static route 0.0.0.0"

I'm working with an HP 2650 (J4899A) FW: H.08.53

I ran into an odd issue that I managed to understand and "fix", but I was curious as to how others feel about this confusing configuration option.

Environment:
I enabled routing on the switch ("ip routing" command) to route between a several port based VLANs defined ON the switch. Each VLAN has an IP address defined on the switch. IP routing shows that these all work fine. i.e. I can ping between each VLAN and the VLAN interface OK.

Problem:
I (thought) I had configured a "Default gateway" via the command line "ip default-gateway 10.1.1.1"

After testing routing I discovered that this option DID NOT forward packets from the VLAN ports of the switch with unknown destinations to "10.1.1.1" (also on a different VLAN port)!!!

I had to use the "ip route 0.0.0.0 0.0.0.0 10.1.1.1" command to accomplish this.

After much searching I found the following references to "IP Routing & Default Gateway"

Quoting from the Respective chapters in the Manuals:

7-5 - Advanced Traffic Management

The default gateway, which is configured as part of the IP address configuration described in chapter 7, "IP Addressing", is used only when routing is not enabled on the switch.

8-11 Management Guide: The switch uses the IP default gateway only while operating as a Layer 2 device. While routing is enabled on the switch, the IP default gateway is not used. Thus, to avoid loss of Telnet access to off-subnet management stations, you should use the ip route command to configure a static (default) route before enabling routing. Refer to chapter 16, "IP Routing Features", for more information.

How do others feel about having two different options, that technically should MEAN the SAME thing, do different things depending if the device acts on layer 2 or 3?
Honored Contributor
Ron Kinner
Posts: 4,444
Registered: ‎06-21-2001
Message 2 of 4 (497 Views)

Re: HP 2650 - "Default Gateway" vs. "Static route 0.0.0.0"

It's pretty common for there to be that difference between the default gateway and a static 0.0.0.0 0.0.0.0 route. The default gateway is used when the routing is not turned on and the static route when it is. Cisco routers are this way too and always have been. HP appears to work fairly closely with Cisco so it doesn't surprise me at all. Just something that bites you once and then you won't forget it again.

Ron

Occasional Advisor
David Nemeth
Posts: 13
Registered: ‎09-16-2002
Message 3 of 4 (497 Views)

Re: HP 2650 - "Default Gateway" vs. "Static route 0.0.0.0"

Thanks for your reply... I guess my problem is with the documentation since it doesn't explain this difference right up front.

I do see why there is a difference... essentially the "Default gateway" option is used when the switch behaves like a single device on a network VS. "static routes" when routing is on..

David
Occasional Advisor
David Nemeth
Posts: 13
Registered: ‎09-16-2002
Message 4 of 4 (497 Views)

Re: HP 2650 - "Default Gateway" vs. "Static route 0.0.0.0"

Read the manual very carefully...
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.