cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1456
Views
17
Helpful
11
Replies

Routing on 2960S

james.king14
Level 1
Level 1

We have several 2960S switches and would like to enable routing.  Instead of the traditional router on the stick configuration, I would like to use the L3 functions of the SDM templates. So I have enabled routing on test switch and added three VLANS and trying to connect to a router but cannot ping the connected interface. 

11 Replies 11

glen.grant
VIP Alumni
VIP Alumni

  Did you change the template to the one that supports simple layer 3 routing ?  Did you reboot the switch after you did that ?   Which port is the router attached to  and where are you trying to ping from ?

Thanks for responding,

Yes I changed the template to sdm lanbased prefer, rebooted the switch.  Once back up I enabled Ip routing.  Gave the switch a default gateway  also put in a ip route statement.  Still no luck?

devils_advocate
Level 7
Level 7

Where are you trying to ping from and to?

Post the results of the following:

#show ip route

#show ip int brief

Thanks

Edit, I have just re-read the OP again and am thinking you are trying to ping the Routers IP address on:

205.165.254.65

Is this correct?

What type of device is is?

Have you added Static Routes so the router knows how to return traffic to the subnets its not directly connected to?

yes I am trying to ping that ip address....x.x.254.65, yes I have a return route.  That is the question where should I put the return route in the router or switch.....

it is a 2960S going to a 2911 router

The 2960 doesn't need any static routes, the vlan interfaces will show as connected routes in the routing table.

The 2960 also has a default route towards the 2911.

The 2911 needs static routes for any subnets that it's not connected to. Basically the router doesn't need to know about the subnet that sits between  itself and the 2960 as it's connected to this. It does however need to know how to reach the other subnets that exist on the 2960. 

I have added all the routes to the router and still no communication.  The router interface will not ping the switch either. Yet show up/up.....?  The second part of the text file has router configs

I think I foound the issue, when I tried putting a ip address on the switch port that is connected to the router.  The IOS said it does not know the command.  Which is strange?

test1(config-if)#ip address 205.165.254.66 255.255.255.128
                      ^
% Invalid input detected at '^' marker.

test1(config-if)#ip ?
Interface IP configuration subcommands:
  access-group  Specify access control for packets
  admission     Apply Network Admission Control
  arp           Configure ARP features
  auth-proxy    Apply authenticaton proxy
  device        IP device tracking
  dhcp          Configure DHCP parameters for this interface
  igmp          IGMP interface commands
  verify        verify

NO ip address command.  so this will not work for making a 2960S into a layer switch.

You need to enter the 'no switchport' command on the interface to move it from a L2 port to a L3 port.

If this doesn't work you can put the IP address on a vlan interface and put the port which connects to the router into this vlan.

Thanks 

Thanks

I tried that already and the switch IOS does not accept that command either.  I added a vlan to one of the other ports .

interface GigabitEthernet0/2
 description open
 switchport access vlan 11
 switchport mode access
interface Vlan11
 ip address 205.165.254.65 255.255.255.128

test1#ping 205.165.254.65
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 205.165.254.65, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

I do not think this works with Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE9, RELEASE SOFTWARE (fc1)

Can you repost the config as it is now?

It should work, the 2960s with LANBASE image supports routing between Vlans and default routes. 

Is Vlan11 up up? #show ip int brief

In order to ping the IP address assigned to vlan11, the interface needs to be up up which will only be the case if Gi0/2 is plugged into the router and is up also

Yes the router interface is up/up and the switch vlan11 is up/up.  That is the problem.  It should work but with the IOS.  Yet it does not see the vlan traffic.....