10-03-2019 12:36 PM
Hello i have an issue where i have a PC with a vlan 10 and and IP address 172.16.10.10 on it and a switch where there is a vlan 99 on it with an IP address 192.168.1.1 and a router for intervlan, the switch is a layer 2 switch, when i ping the vlan 99 from my PC it gives me destination host unreachable, what should i do to have a successful ping.
Solved! Go to Solution.
10-03-2019 01:12 PM
Hi @alaahijazi
Draw a small diagram and point to the command:
S(config)# ip default-gateway <gateway ip>
Regards
10-03-2019 12:51 PM
Hello
For the two subnets to be able to respond to each other your need some routing.
Does your switch have l3 two interfaces enabled that can perfrom this routing if not then youll need an additional device to perfrom this function.
10-03-2019 12:54 PM
hello, what do you mean by I3 two interfaces enabled ?
thank you
10-03-2019 01:03 PM
10-03-2019 01:01 PM
Hi @alaahijazi
Check this out:
The PC must have the correct gateway
The switch port that connects to the PC must be in access mode and attached to vlan 10
The switch must have the correct gateway configured
The switch port that connects to the router must be in trunk mode
In router you must not have an ip in the physical interface
The router must have subinterfaces configured, have the correct vlan encapsulares and the correct ip gateway
Regards
10-03-2019 01:02 PM
10-03-2019 01:12 PM
Hi @alaahijazi
Draw a small diagram and point to the command:
S(config)# ip default-gateway <gateway ip>
Regards
10-03-2019 01:35 PM
10-03-2019 01:39 PM
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