cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1475
Views
5
Helpful
8
Replies

Different VLANS and Networks

alaahijazi
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Hi @alaahijazi 

 

Draw a small diagram and point to the command:


S(config)# ip default-gateway <gateway ip>9E5BD6DB-43F4-42F5-883D-2E67075EBD50.jpeg

 

Regards 

View solution in original post

8 Replies 8

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.

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

hello, what do you mean by I3 two interfaces enabled ?

thank you

I think i don't think the switch have this option enabled because it's a layer 2 switch

luis_cordova
VIP Alumni
VIP Alumni

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

 

 

hello, i think im missing this one : The switch must have the correct gateway configured
how should configure it

Hi @alaahijazi 

 

Draw a small diagram and point to the command:


S(config)# ip default-gateway <gateway ip>9E5BD6DB-43F4-42F5-883D-2E67075EBD50.jpeg

 

Regards 

You are the Best thank you !

check out the ip default-gateway on the switch, you can perform a ping from the router also but using the source parameter on the ping command.

ping 192.168.1.1 source 172.16.10.10

where the 172.16.10.10 should be the router interface for on the pc's lan.

for more visibility can you add the show ip int brief output from the router? and the switch show run?