cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4003
Views
7
Helpful
12
Replies

Intervlan Routing in Cisco C9300 switch

inhamit
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

In your config you have A and B switch ip

default-gateway

configured to VIP IP address -&nbsp

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 ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

12 Replies 12

M02@rt37
VIP
VIP

Hello @inhamit,

Considering L2 and L3 vlan config is OK, yes, do

ip routing

command for inter-VLAN routing.

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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.

@inhamit 

What is the license ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Hi, Core switch License:
-----------------------------------------------------------------------------

network-advantage (C9300X-12/24Y Network ...) 2 IN USE
dna-advantage (C9300X-12/24Y DNA Adva...) 2 IN USE

In your config you have A and B switch ip

default-gateway

configured to VIP IP address -&nbsp

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 ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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.

 

 

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 ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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.

 

 

@balaji.bandi M02@rt37 

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.

You're welcome @inhamit 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

@inhamit,

you have to troubleshoot a bit further.

PCs ping their own Gateway ? 

Please provide us outputs that @balaji.bandi ask.

Thanks.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

M02@rt37 @balaji.bandi 

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.