08-29-2023
09:48 PM
- last edited on
09-04-2023
05:13 AM
by
Translator
Hi,
I want to enable the intervlan routing in Cisco C9300 switch. Does
IP routing
command is enough to do this or more config I have to do?
Solved! Go to Solution.
08-30-2023
12:16 AM
- last edited on
09-04-2023
05:23 AM
by
Translator
In your config you have A and B switch ip
default-gateway
configured to VIP IP address - 
10.91.4.1
admin switch also the same
10.91.4.1
if the switch looking to have Layer 3 routing on A and B and admin switch
change to
ip routing x.x.x.x x.x.x.x .xxxx
(removing
default gateway
to work)
also post from A and B and admin below command outcome
show ip route
show ip interface brief
show standby brief
how are you testing - Inter-vlan routing ? (connecting PC in admin switch in VLAN4 - and what gateway PC has when you configured in VLAN 4 ?)
have done traceroute to IP address where is that stuck ?
08-29-2023
11:03 PM
- last edited on
09-04-2023
05:18 AM
by
Translator
Hello @inhamit,
Considering L2 and L3 vlan config is OK, yes, do
ip routing
command for inter-VLAN routing.
08-29-2023
11:19 PM
- last edited on
09-04-2023
05:19 AM
by
Translator
Thanks. I did the
IP routing
still its not working for intervlan routing.
Attached is the core switch A and B config along with Layer 2 switch config for end device connection. We did HSRP configuration between vlan 4 and 5. Rest of the HSRP config, I will do later. Please suggest if there any changes I have to do.
08-29-2023 11:29 PM
08-30-2023
12:26 AM
- last edited on
09-04-2023
05:20 AM
by
Translator
08-30-2023
12:16 AM
- last edited on
09-04-2023
05:23 AM
by
Translator
In your config you have A and B switch ip
default-gateway
configured to VIP IP address - 
10.91.4.1
admin switch also the same
10.91.4.1
if the switch looking to have Layer 3 routing on A and B and admin switch
change to
ip routing x.x.x.x x.x.x.x .xxxx
(removing
default gateway
to work)
also post from A and B and admin below command outcome
show ip route
show ip interface brief
show standby brief
how are you testing - Inter-vlan routing ? (connecting PC in admin switch in VLAN4 - and what gateway PC has when you configured in VLAN 4 ?)
have done traceroute to IP address where is that stuck ?
08-30-2023
12:39 AM
- last edited on
09-04-2023
05:36 AM
by
Translator
Thanks,
Here Admin switch is acting as a layer 2 switch which is connected to Core switch A and B. We have connected the end devices on admin switch. Do I still need to do IP route as suggested?
Please suggest what
Ip route
I should apply and on which switch.
08-30-2023
07:18 AM
- last edited on
09-04-2023
05:24 AM
by
Translator
Here Admin switch is acting as a layer 2 switch which is connected to Core switch A and B. We have connected the end devices on admin switch. Do I still need to do IP route as suggested?
If the admin switch acting as Layer 2 - that is ok
default gateway
If the admin switch connected to Switch A and B (if the Switch A and B connected using Layer 2 Link) admin switch only have 1 path due to STP blocking here.
I have configured the default gateway for vlan 4 is 10.91.4.1 and vlan 5 is 10.91.5.1 in individual pcs. Both PC's can reach there own default gateway.
Can PC VLAN 4 can ping 10.91.5.1 ?
Can PC VLAN 5 can ping 10.91.4.1 ?
how are you testing - Inter-vlan routing ? from VLAN4 PC to VLAN5 PC ?
Does the PC have Firewall have you removed and tested ?
08-30-2023
07:43 AM
- last edited on
09-04-2023
05:30 AM
by
Translator
HI, My testing as below.
Can PC VLAN 4 can
ping 10.91.5.1
?
PC VLAN 4 is able to
ping 10.91.5.21
(Core switch A address), not
10.91.5.1
(Virtual IP for VLAN 5) or
10.91.5.22
(Core Switch B address)
Can PC VLAN 5 can
ping 10.91.4.1
?
PC VLAN 5 is able to
ping 10.91.4.1
(Virtual IP address for VLAN 4) , not
10.91.4.21
(Core switch A address) or
10.91.4.22
(Core Switch B address).
how are you testing - Inter-vlan routing ? from VLAN4 PC to VLAN5 PC ?
Yes, I am trying to ping VLAN 4 PC to VLAN 5 PC or vide versa but not able to ping.
Does the PC have Firewall have you removed and tested ?
Firewall is disabled for both PC.
I did the traceroute from another Layer 2 switch 2
(default gateway for this switch is 10.91.4.1)
to VLAN 5 PC (connected on Admin Switch 1), it is showing till core switch A address. not going forward.
I have not did any
Ip route
in both core switches as
IP routing
command is enough for intervlan routing.
08-30-2023
09:08 AM
- last edited on
09-04-2023
05:33 AM
by
Translator
I was able to resolve this. The problem was with the PC
default gateway
I have 2 ethernet adopter, one connection was for Internet and another was for switch testing. I changed the priority on the Ethernet 2 to follow the
default gateway
of switch testing and its works.
I am thankful to both of you to guide me on this problem.
08-30-2023 09:10 AM - edited 08-30-2023 09:11 AM
You're welcome @inhamit
08-30-2023 12:43 AM
you have to troubleshoot a bit further.
PCs ping their own Gateway ?
Please provide us outputs that @balaji.bandi ask.
Thanks.
08-30-2023
04:00 AM
- last edited on
09-04-2023
05:35 AM
by
Translator
Please find the attached output for
show ip route, show ip
interface brief and show standby brief.
I have configured the
default gateway for vlan 4 is 10.91.4.1 and vlan 5 is 10.91.5.1
in individual pcs. Both PC's can reach there own
default gateway
I have removed the IP
default-gateway 10.9.4.1
from the Core switch A and B. Only Admin switch have IP
default-gateway to 10.91.4.1
Could you please suggest What Ip route I have to configure here in core switches?
change to
ip routing x.x.x.x x.x.x.x .xxxx
(removing
default gateway
to work) as suggested before.
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