03-24-2016 05:23 AM - edited 03-08-2019 05:06 AM
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.
03-24-2016 05:30 AM
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 ?
03-24-2016 05:30 AM
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?
03-24-2016 07:23 AM
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?
03-24-2016 01:05 PM
03-24-2016 01:10 PM
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.
03-24-2016 01:24 PM
03-24-2016 01:32 PM
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.
03-24-2016 01:54 PM
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
03-24-2016 02:16 PM
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)
03-24-2016 02:31 PM
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
03-25-2016 07:54 AM
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.....
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide