05-01-2017 10:13 PM - edited 03-08-2019 10:24 AM
Hello All,
I was wondering if I can configure Cisco 2960-x and CX series switches as L3 for inter vlan routing with LAN Base IOS. And also if I can configure DHCP relay on these vlans?
Thanks
Gaurav
05-02-2017 12:22 AM
Hi
you can check your specific features are available per license and platform on the feature navigator
http://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/index.jsp
The X series can do basics routing , and the ip routing command is there for intervlan routing
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/routing/configuration_guide/b_rt_152ex_2960-x_cg/b_rt_152ex_2960-x_cg_chapter_010.html
By default, IP routing is disabled on the switch. For detailed IP routing configuration information, see the Cisco IOS IP Configuration Guide, Release 12.2 from the Cisco.com page under Documentation > Cisco IOS Software Releases > 12.2 Mainline > Configuration Guides.
In these procedures, the specified interface must be a switch virtual interface (SVI)-a VLAN interface created by using the interface vlanvlan_id global configuration command and by default a Layer 3 interface. All Layer 3 interfaces on which routing will occur must have IP addresses assigned to them. See the "Assigning IP Addresses to SVIs" section .
![]() Note |
The switch supports 16 static routes (including user-configured routes and the default route) and any directly connected routes and default routes for the management interface. You can use the "lanbase-default" SDM template to configure the static routes. The switch can have an IP address assigned to each SVI. |
Procedures for configuring routing:
By default, the switch is in Layer 2 switching mode and IP routing is disabled. To use the Layer 3 capabilities of the switch, you must enable IP routing.
Command or Action | Purpose | |
---|---|---|
Step 1 | configure terminal Example: Switch# configure terminal |
|
Step 2 | ip routing Example: Switch(config)# ip routing |
The XR is probably what you want its the layer 3 version of 29xx
05-02-2017 12:27 AM
Thanks Mark. Just now I tested the command and both of the features inter vlan routing and ip helper address work in cisco 2960 with lanlite.
Also can you suggest if I need to alter sdm template in order to support these features without affecting the switch performance as I was using default template.
Thanks
Gaurav
05-02-2017 12:30 AM
Hi
You should have something like this to use ....sdm pre lanbase-routing
05-02-2017 12:33 AM
Please find below output from Cisco Switch. Does it suggest lanbase-defaul is better than lanbase-routing?
Switch(config)#sdm prefer ?
default Default bias
lanbase-default Enhanced support for both IPv4 and IPv6 Routing
lanbase-routing Supports both IPv4 and IPv6 Static Routing
Thanks
Gaurav
05-02-2017 12:35 AM
Yes if you have enhanced use that , my standard 29s don't have that as an option as there used for pure layer 2 access
05-02-2017 12:37 AM
Thank you Mark for sorting this out for me.
12-06-2017 02:21 PM
I have used "ip routing" without changing the template from lanbase-default on a 2960X. If you look at the tables of resources it would seem to me the lanbase-default supports more of everything so why would one choose the lanbase-routing template?
2960X-1#show sdm prefer lanbase-routing
"lanbase-routing" template:
The selected template optimizes the resources in
the switch to support this level of features for
0 routed interfaces and 255 VLANs.
number of unicast mac addresses: 4K
number of IPv4 IGMP groups + multicast routes: 0.375k
number of IPv4 unicast routes: 0.875k
number of directly-connected IPv4 hosts: 0.875k
number of indirect IPv4 routes: 80
number of IPv6 multicast groups: 0.25K
number of IPv6 unicast routes: 0.875k
number of directly-connected IPv6 addresses: 0.75K
number of indirect IPv6 unicast routes: 32
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.375k
number of IPv4/MAC security aces: 0.375k
number of IPv6 policy based routing aces: 0
number of IPv6 qos aces: 0.125k
number of IPv6 security aces: 0.25K
2960X-1#show sdm prefer
The current template is "lanbase-default" template.
The selected template optimizes the resources in
the switch to support this level of features for
0 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 16K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 3K
number of directly-connected IPv4 hosts: 2K
number of indirect IPv4 routes: 1K
number of IPv6 multicast groups: 1K
number of IPv6 unicast routes: 3K
number of directly-connected IPv6 addresses: 2K
number of indirect IPv6 unicast routes: 1K
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.5K
number of IPv4/MAC security aces: 0.625k
number of IPv6 policy based routing aces: 0
number of IPv6 qos aces: 0.5K
number of IPv6 security aces: 0.625k
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