Want to get my head around default gateway on L 2 switch.
ok 3 VLANs on L2 switch. vlan 2 vlan 3
vlan 4 is reachable through route
I have management on vlan 2 - I have an IP address 192.168.2.1 on vlan 2
I have an IP address on vlan 3 - 192.168.3.1 - I can ssh to manage switch on both of these IPs on vlan 2 and 3
vlan 4 is 192.168.4.0/24
my default gateway on the L2 switch is to my L3 switch IP 192.168.3.3
I ssh to the L2 switch on vlan 2 192.168.2.1. Can I then from this ssh session on the switch ping to VLAN 4
the default gateway L2 is not on VLAN 2 ? Does it matter that I have come into the L2 switch by ssh on vlan 2 - or do i need to ssh to VLAN 3 which has an IP on same subnet as the L2 gateway in order to ping another VLAN ?? - when I try to ping an IP on vlan 4 does it use the default gateway set on the L2 switch?