05-28-2023 06:41 AM
Hi I am trying to enable routing on cisco 9000v for intervlan routing betwen two vlans.
I am trying to enable routing as explained in different articles using ip routing command however this command doesn't work as there are other options that need to be executed post this command and I ma not sure what to use. Please suggest
```
switch(config)# ip routing
event-history internal multicast
switch(config)# ip routing
^
% Incomplete command at '^' marker.
```
05-28-2023 06:52 AM
Hi
Nexus you be the command
conf t
feature interface-vlan
05-28-2023 07:02 AM
Hi Flavio,
I am not sure I quite followed what you said
If you are talking about interface-vlan feature that's already enabled.
```
switch(config)# feature interface-vlan
switch(config)#
switch(config)#
switch(config)# ip routing
^
% Incomplete command at '^' marker.
```
05-28-2023 07:10 AM
I believe the routing will work after that. Did you try to setup ip address on two interfaces vlan and they did not ping each other?
05-28-2023 07:15 AM
That's right
```
Eth1/1 2003 eth access up none 1000(D)
Eth1/2 2003 eth access up none 1000(D)
Eth1/3 2004 eth access up none 1000(D)
```
I have assigned 2003 an ip of 192.168.15.1 and 2004 as 192.168.20.1, the hosts ips are 192.168.15.2(host1) and 192.168.20.2(host2)
I have set the gateway of the host1 as 192.168.15.1 which is the gateway of the vlan2003.
I am able to ping 192.168.15.1 from host1, however ping doesn't go through when I try to it from host1 to gateway2 i.e 192.168.20.1(vlan2004)
05-28-2023 07:32 AM
Which licensing do you have on this device?
05-28-2023 07:46 AM
the NSK dont add VLAN automatic when you config switchport with access vlan
you need to add vlan to DB by
VLAN2003
VLAN2004
05-28-2023 07:49 AM
switch(config)# show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Eth1/4, Eth1/5, Eth1/6, Eth1/7
Eth1/8, Eth1/9, Eth1/10, Eth1/11
Eth1/12, Eth1/13, Eth1/14
Eth1/15, Eth1/16, Eth1/17
Eth1/18, Eth1/19, Eth1/20
Eth1/21, Eth1/22, Eth1/23
Eth1/24, Eth1/25, Eth1/26
Eth1/27, Eth1/28, Eth1/29
Eth1/30, Eth1/31, Eth1/32
Eth1/33, Eth1/34, Eth1/35
Eth1/36, Eth1/37, Eth1/38
Eth1/39, Eth1/40, Eth1/41
Eth1/42, Eth1/43, Eth1/44
Eth1/45, Eth1/46, Eth1/47
Eth1/48, Eth1/49, Eth1/50
Eth1/51, Eth1/52, Eth1/53
Eth1/54, Eth1/55, Eth1/56
Eth1/57, Eth1/58, Eth1/59
Eth1/60, Eth1/61, Eth1/62
Eth1/63, Eth1/64
2003 VLAN2003 active Eth1/1, Eth1/2
2004 VLAN2004 active Eth1/3
2005 VLAN2005 active
VLAN Type Vlan-mode
---- ----- ----------
1 enet CE
2003 enet CE
2004 enet CE
2005 enet CE
Remote SPAN VLANs
-------------------------------------------------------------------------------
Primary Secondary Type Ports
I believe vlan is already added to db
05-28-2023 07:50 AM
show interface ip brief
05-28-2023 07:56 AM
switch(config)# show ip interface brief
IP Interface Status for VRF "default"(1)
Interface IP Address Interface Status
Vlan2003 192.168.15.1 protocol-up/link-up/admin-up
Vlan2004 192.168.20.1 protocol-up/link-up/admin-up
Vlan2005 192.168.12.1 protocol-down/link-down/admin-up
05-28-2023 07:40 AM
show version
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
Copyright (c) 2002-2021, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
http://www.gnu.org/licenses/gpl.html.
Nexus 9000v is a demo version of the Nexus Operating System
Software
BIOS: version
NXOS: version 9.3(7a)
BIOS compile time:
NXOS image file is: bootflash:///nxos.9.3.7a.bin
NXOS compile time: 6/18/2021 0:00:00 [06/18/2021 01:31:45]
Hardware
cisco Nexus9000 C9300v Chassis
Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz with 8163732 kB of memory.
Processor Board ID 94OMPAIMD33
Device name: switch
bootflash: 4287040 kB
Kernel uptime is 3 day(s), 3 hour(s), 46 minute(s), 17 second(s)
Last reset
Reason: Unknown
System version:
Service:
plugin
Core Plugin, Ethernet Plugin
Active Package(s):
It's cisco 9000v, created this vm using the ova of cisco 9300 virtual switch from the cisco website
05-28-2023 07:44 AM
show license usage
show run int Eth1/1
show run int Eth1/3
please
05-28-2023 07:52 AM
You are going to need to create VRF first.
Take a look on this video
https://www.youtube.com/watch?v=GWTLCCuhz6I
05-28-2023 07:55 AM
I am trying to setup a simple routing between two hosts (residing in different vlans)using the switch as a layer 3.
Do I need to setup the VRF for this simple communication?
05-28-2023 08:03 AM
I basically want to setup multi layer switch vlan routing using a single switch
This video talks about it
https://www.youtube.com/watch?v=NmkFzDrZsXM
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