cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
25152
Views
5
Helpful
8
Replies

IP Default Gateway command..

dprada-gns
Level 1
Level 1

How can I force a 2960 switch to use the default gateway parameter.?

I try with the command :

ip defautl-gateway 10.10.10.1

but the switch never use it.

Thanks in advanced

8 Replies 8

mohammedmahmoud
Level 11
Level 11

Hi,

What do you mean by the switch never uses it ?

BR,

Mohammed Mahmoud.

By default 2960 switches never uses the

IP default-gateway parameter in order to reach remote networks.

The switches just send an ARP request with the destiantion IP.

So, I want to force the 2960 switch to use the parameter as a normal client IP use the Deafult Gateway parameter to reach other subnets.

Thanks

default gateway is only for admin (telnet etc)

Unless you have a routing protol enabled and use the comand default netowrk, the switch only works at layer 2, where you want it to work at layer 3. You may need an enhanced image for the switch.

Im configuring 802.1x user authentication in the 2960 edge switch using a Radius server located in other subnet.

The core is compose with two 3750 L3 switches running HSRP redundancy.

So is very important to force the 2960 edge switch to use the default gateway parameter (Virtual Default Gateway) in order to comunicate with the radius server.

The problem appears when one of the Core switch goes down and the edge switch keep using the old MAC address in order to comunicate with the radius server.

Hi,

The default gateway should point to the IP address of the next-hop router interface that is directly connected to the switch. Once the default gateway is configured, the switch has connectivity to the remote networks with which a host needs to communicate. The only special case is when your switch is configured to route with IP, but this is not the case with 2960 as AFAIK it can't do IP routing (only 2948G-L3 from the 2900 series supports routing, and for it to utilize the default-gateway, no ip routing should be configured).

Make sure that the management VLAN interface and the default gateway are in the same IP subnet and that you can ping the gateway IP.

http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/software/release/12.2_25_sed/configuration/guide/swipaddr.html#wp1037806

HTH,

Mohammed Mahmoud.

Im configuring 802.1x user authentication in the 2960 edge switch using a Radius server located in other subnet.

The core is compose with two 3750 L3 switches running HSRP redundancy.

So is very important to force the 2960 edge switch to use the default gateway parameter (Virtual Default Gateway) in order to comunicate with the radius server.

The problem appears when one of the Core switch goes down and the edge switch keep using the old MAC address in order to comunicate with the radius server.

Diego

When you say that the edge switch keep using the old MAC address, it sounds like the default gateway that you have configured is not the HSRP shared address (which I think that it probably should be).

Perhaps if we had some specifics to work with we could find the problem more efficiently. Can you provide the following information:

- address of the edge switch.

- HSRp address of the core switches.

- address that you are defining in the default-gateway command?

HTH

Rick

HTH

Rick

smothuku
Level 7
Level 7

Hi ,

config the core and 2960 as below.

configure the vlan x on core and 2960 switches.

configure the hsrp between both the core switches.

configure the trunk link between core siwtches and 2960 switch.

configure ip default-gateway which is hsrp ip of core siwthces.

Thanks,

satish

Review Cisco Networking for a $25 gift card