IP Default Gateway command..

Unanswered Question
Sep 2nd, 2007
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
mohammedmahmoud Sun, 09/02/2007 - 16:28
User Badges:
  • Green, 3000 points or more

Hi,


What do you mean by the switch never uses it ?


BR,

Mohammed Mahmoud.

dprada-gns Sun, 09/02/2007 - 16:43
User Badges:


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

lambourneb Sun, 09/02/2007 - 16:53
User Badges:

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.

dprada-gns Sun, 09/02/2007 - 17:09
User Badges:

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.




mohammedmahmoud Sun, 09/02/2007 - 17:05
User Badges:
  • Green, 3000 points or more

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.

dprada-gns Sun, 09/02/2007 - 17:55
User Badges:

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.



Richard Burts Sun, 09/02/2007 - 20:05
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

smothuku Sun, 09/02/2007 - 21:50
User Badges:
  • Silver, 250 points or more

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

Actions

This Discussion