01-29-2025 10:19 PM
Switching
I have CISCO 9300 switch, its standalone switch, I want to configure it,
I've given 192.168.0.2/24 to Laptop and 192.168.0.1/24 (GW) to Switch
able to ping 0.2 but not able to ping 0.1, please have a look into it.
01-29-2025 10:45 PM - edited 01-29-2025 10:48 PM
Hello @ahaldar91
Please ensure Switch port where endpoint is connected to is configured in switchport mode access and you add vlan id also with this command: switchport access vlan <x>
Double check also SVI configuration on your C9300:
interface Vlan x
ip address 192.168.0.1 255.255.255.0
no shutdown
01-30-2025 12:15 AM
Hello
have you created the L2 vlan associated with the l3 svi and assigned that to the port your laptop is attached to?
01-30-2025 10:57 AM
From where you can ping to 0.2 and can't ping 0.1 ?
Can you ping from Sw to laptop (Disable Windows firewall)
Share :
#show vlan brief
Thanks,
Joshqun Ismayilov
01-30-2025 06:55 PM
Please follow as suggested @Joshqun Ismayilov
01-30-2025 09:17 PM - edited 01-30-2025 09:19 PM
Hi,
Replace X with the VLAN you want to use:
interface Vlan X
ip address 192.168.0.1 255.255.255.0
interface you wish to connect :
interface GigabitEthernet1/0/X
switchport access vlan X
switchport mode access
01-30-2025 09:22 PM
Along with the points shared above, if all the 6 checks given below are good, hopefully it should work. If not, let us know.
1. Make sure 0.1 (SVI) and 0.2 (PC) are part of same VLAN. Also, check if SVI is up (no shut) and reachable locally from switch
show vlan
show ip int brief
SW# ping 192.168.0.1
2. Validate IP Address and Subnet mask (should be same at both ends) configured properly
In SW:
show runn int vlan X
In Windows:
ipconfig
In Linux and Mac:
ifconfig
3. Check ARP and Mac address table if it's learning mac of PC. Make sure the mac is NOT configured to drop for the vlan.
show runn | i drop
sh ip arp
sh mac add
4. Check if the PC mac or the SVI mac is learned via some other port and not flapping between multiple ports, apart from expected to isolate duplicate mac or loop, etc.
! check multiple times and it shows same port always
show mac address-table | i <pc-mac>
show mac address-table | i <svi-mac>
5. Verify if there is no ACLs configured to block icmp in Switch SVI.
show runn int vlan X
6. If dot1x is configured, make sure there is no ACLs from dot1x block icmp.
sh access-session interface X details
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