cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
286
Views
2
Helpful
9
Replies

vlan routing

itus
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

@itus 

 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

View solution in original post

9 Replies 9

ammahend
VIP Alumni
VIP Alumni

Follow the configuration example

-hope this helps-

more confused than before.

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

-hope this helps-

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 

 

 

What is SW you have 9000 series ?

MHM

@itus 

 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

thank you Flavio. configuring the IP route on the router work. thank you. thank you. thank you!!!

 

@itus 

DNS is provided by the DHCP server. How PCs are getting IP address? 

yes. i was able to setup the dns via dhcp. all good now. thank you.

Review Cisco Networking for a $25 gift card