01-19-2025 06:33 PM
Hello,
I am unable ping to router Int/0.
my router int/0 is 192.167.1.1
I have layer 2/3 switch. i have 2 VLAN(default 1 and VLAN 10). VLAN 10 IP address 192.167.10.1/24.
I setup switch int on te1/0/1 as layer 3 with ip 192.167.1.2.
IP routing 0.0.0.0 0.0.0.0 to 192.167.1.1
I am able to ping 192.167.1.1, 192.167.1.2 and internet(8.8.8.8) from the switch.
my pc is connected to switch on int te1/0/2(VLAN 10). i can ping 192.167.10.2, 192.167.1.2, but NOT 192.167.1.1(router Int)
what configuration do i need to perform to get VLAN10 talking to router int/0
Solved! Go to Solution.
01-20-2025 04:29 AM
Make sure you have routng enabled on L3 switch
conf t
ip routing
And the router need to have a route returning traffic to your local network
On the Router
ip route 192.167.10.0 255.255.255.0 192.167.1.2
01-19-2025 06:43 PM - edited 01-19-2025 07:46 PM
Follow the configuration example
01-19-2025 07:14 PM
more confused than before.
01-19-2025 07:37 PM - edited 01-19-2025 07:39 PM
on the router configure this and try
Router(config)# interface GigabitEthernet0/1.1
Router(config-subif)# encapsulation dot1Q 1 native
Router(config-subif)# ip address 192.168.1.1 255.255.255.0
Router(config-subif)# exit
Router(config)# interface GigabitEthernet0/1.10
Router(config-subif)# encapsulation dot1Q 10
Router(config-subif)# ip address 192.168.10.1 255.255.255.0
Router(config-subif)# exit
on the switch connected to router
Switch(config)# interface GigabitEthernet1/0/1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan 1
Switch(config-if)# switchport trunk allowed vlan 1,10
Switch(config-if)# no shutdown
or just google "cisco router on stick" configuration
01-19-2025 08:17 PM - edited 01-19-2025 08:45 PM
thank you ammahend for assisting me.
i believed by router setting is correct. i am able to ping to the internet from the switch.
when i changed my switch per your suggestion, i am no longer able to ping to the internet from the switch or pc interface.
i have changed my interface G1/0/1 back to layer 3 and now i am able to ping the internet again.
again, i can ping the router and internet just fine from the switch. just can't ping the router on vlan10 client. i can ping g1/0/1 interface on the client
01-19-2025 10:44 PM
What is SW you have 9000 series ?
MHM
01-20-2025 04:29 AM
Make sure you have routng enabled on L3 switch
conf t
ip routing
And the router need to have a route returning traffic to your local network
On the Router
ip route 192.167.10.0 255.255.255.0 192.167.1.2
01-21-2025 08:45 AM - edited 01-21-2025 09:11 AM
thank you Flavio. configuring the IP route on the router work. thank you. thank you. thank you!!!
01-21-2025 09:11 AM
DNS is provided by the DHCP server. How PCs are getting IP address?
01-21-2025 11:24 AM
yes. i was able to setup the dns via dhcp. all good now. thank you.
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