Switch Default-Gateway Question

Answered Question
Sep 4th, 2007
User Badges:

How do I observer the default-gateway set on a switch? I am not able to view it with the "show running-config" command.

Correct Answer by glen.grant about 9 years 8 months ago

Use the command "show ip default " , this will list the gateway on all layer 2 switches and any layer 3 switch that has routing turned off .

Correct Answer by dominic.caron about 9 years 8 months ago

You should fing "ip default-gateway" in the config.


you can also have a IP route 0.0.0.0 0.0.0.0 entry if ip routing is enable.


The last possibility, (if the switch is working and no default gateway configure), is that the router is doing proxy-arp. This is a security issue but still possible.

Correct Answer by mahmoodmkl about 9 years 8 months ago

Hi


show running-config should list it.Check weather it is configured in the switch.


Btw what kind of this switch is.


Thanks

Mahmood

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
dominic.caron Tue, 09/04/2007 - 04:50
User Badges:
  • Silver, 250 points or more

What type of switch is it...CatOS or IOS

Correct Answer
mahmoodmkl Tue, 09/04/2007 - 04:51
User Badges:
  • Gold, 750 points or more

Hi


show running-config should list it.Check weather it is configured in the switch.


Btw what kind of this switch is.


Thanks

Mahmood

Correct Answer
dominic.caron Tue, 09/04/2007 - 05:53
User Badges:
  • Silver, 250 points or more

You should fing "ip default-gateway" in the config.


you can also have a IP route 0.0.0.0 0.0.0.0 entry if ip routing is enable.


The last possibility, (if the switch is working and no default gateway configure), is that the router is doing proxy-arp. This is a security issue but still possible.

Jagdeep Gambhir Tue, 09/04/2007 - 06:19
User Badges:
  • Red, 2250 points or more

Hi,

2950 is a layer two switch , so IP route is not supported.



Regards,

~JG

rayroyaleverest Tue, 09/04/2007 - 06:37
User Badges:

The IP default-gateway should be supported for telnet to other subnets.

Correct Answer
glen.grant Tue, 09/04/2007 - 07:03
User Badges:
  • Purple, 4500 points or more

Use the command "show ip default " , this will list the gateway on all layer 2 switches and any layer 3 switch that has routing turned off .

rayroyaleverest Tue, 09/04/2007 - 08:53
User Badges:

The command "show ip" lists the switch ip address, subnet mask, and default gateway.


Actions

This Discussion