PING
-
Hi Sir, I cannot ping from vlan 10 to vlan 20, even i set the default gateway 192.168.16.1/24 on each computer. could you please tell me. -
Each VLAN will need it's own default gateway.
That gateway in your diagram will be on Router0 which you will need to create subinterface for each vlan and add your gateway there.
Router0>enable Router0#config t Router0(config)#interface fa0/0.10 Router0(config-if)#encapsulation dot1q 10 Router0(config-if)# ip address 192.168.10.1 255.255.255.0 Router0(config-if)# description default gateway for vlan 10 ! Router0(config)#interface fa0/0.20 Router0(config-if)#encapsulation dot1q 10 Router0(config-if)# ip address 192.168.20.1 255.255.255.0 Router0(config-if)# description default gateway for vlan 20 ! Router0(config-if)#interface fa0/0 Router0(config-if)#no shutdown !
If your switch 1 is configured as a trunk and link to switch 2 configured as a trunk and your hosts all are in the proper vlans. You will need to change all the hosts with the new gateways for each vlan.
-
@Ronnie-Wong thanku sir problem solved