Ping from a switch
bencher
Member Posts: 7 ■□□□□□□□□□
in CCNA & CCENT
Can you use the ping command from switch to a directly connected router.?
Comments
-
Webmaster Admin Posts: 10,292 AdminIf the switch has a vlan interface active (by default 'interface' vlan 1) with an IP address assigned that matches ip subnet of the router's interface. See step 3 in:
www.techexams.net/techlabs/ccna/lab-switch-basics.shtml -
bencher Member Posts: 7 ■□□□□□□□□□if you place the place the port thats is connected to the router in a vlan and assign a ip address to that vlan. That will work too?
Does it have to match or should it be in the same subnet? -
Webmaster Admin Posts: 10,292 Adminif you place the place the port thats is connected to the router in a vlan and assign a ip address to that vlan. That will work too?
And yes, same subnet, not exact same IP. If you want to ping devices in other subnets (or for example ping or telnet the switch from other devices) 'outside' the ip subnet of the IP address you assigned to the vlan interface on the switch, you also need to configure the default gateway on the switch, as is also described in that TechLab.