10-24-2018 08:46 AM - edited 03-08-2019 04:28 PM
Hi all,
Been searching the forum but had no luck on finding answer...
I have a SG500-52 switch that I need to configure for Inter VLAN routing.
I have 3 vlans:
vlan database vlan 100,110,120 exit
and the following ip scheme:
interface vlan 100 name STUDENTS ip address 192.168.100.50 255.255.255.0 ip dhcp relay enable ! interface vlan 110 name MANAGEMENT ip address 192.168.110.50 255.255.255.0 ip dhcp relay enable ! interface vlan 120 name SERVERS ip address 192.168.200.50 255.255.255.0
I have PC1 in the following port:
interface gigabitethernet1/1/16 description "PC1" switchport mode access switchport access vlan 100
the gateway has ip 192.168.200.254/24 in the following port:
interface gigabitethernet1/1/48 description "GW" switchport mode access switchport access vlan 120
the sh route
SW-RT-Servidores#sh ip route Maximum Parallel Paths: 1 (1 after reset) IP Forwarding: enabled Codes: > - best, C - connected, S - static S 0.0.0.0/0 [1/1] via 192.168.200.254, 1114:13:02, vlan 120 C 192.168.1.0/24 is directly connected, vlan 1 C 192.168.100.0/24 is directly connected, vlan 100 C 192.168.110.0/24 is directly connected, vlan 110 C 192.168.200.0/24 is directly connected, vlan 120
Problem: Cannot ping outside from PC1 but from all from VLAN120.
Can you please point me in the right direction?
Thanks
Solved! Go to Solution.
10-24-2018 09:23 AM
HI there,
“Cannot ping outside from PC1 but from all from VLAN120.”
If I am reading your problem correctly, only devices on the VLAN120 subnet can reach outside, ie, internet addresses?
If that is the case, does your gateway device have routes for VLANs 100 and 110? Something like:
! ip route 192.168.50.0 255.255.255.0 192.168.200.50 ip route 192.168.110.0 255.255.255.0 192.168.200.50 !
cheers,
Seb.
10-24-2018 08:54 AM
what is the PC1 IP ? you have got when you connected to interface gigabitethernet1/1/16 ?
10-24-2018 09:23 AM
HI there,
“Cannot ping outside from PC1 but from all from VLAN120.”
If I am reading your problem correctly, only devices on the VLAN120 subnet can reach outside, ie, internet addresses?
If that is the case, does your gateway device have routes for VLANs 100 and 110? Something like:
! ip route 192.168.50.0 255.255.255.0 192.168.200.50 ip route 192.168.110.0 255.255.255.0 192.168.200.50 !
cheers,
Seb.
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