Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Static Route Error

I'm trying to set the gateway of last resort on my L3 switch. Trying to set port 1 on a 3750G switch.

Switch(config)#ip route 0.0.0.0 0.0.0.0 g2/0/1

% Must specify a L3 port as the next hop interface

2 REPLIES
Gold

Re: Static Route Error

You in general don't want to set it to a interface because it is dependant on proxy arp to work but to your issue.

Unless a gig port works different this means that this is a switch port. IE you did not type NO SWITCHPORT on the interface. In general you have to also place a IP address on the interface since it is not much use to turn off the switch port and not have a ip address on it.

If it is a switch port becuase it is something like a trunk then you only option is to use a vlan interface as you route destination. This is also a bad idea since you now have arps possible going out many interfaces.

Best bet is to find a IP address can act as your default route.

Re: Static Route Error

hi,,,

just convert the g2/0/1 port into layer 3 port using command "no switchport" under the interface configuration mode...

interface g2/0/1

no switchport

this configuration convert your g2/0/1 port in to the layer 3 port...

hope this will work...

rate this post if it works

regards

Devang

5530
Views
0
Helpful
2
Replies
CreatePlease to create content