cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
742
Views
0
Helpful
6
Replies

Unable to ping default Gateway

ahaldar91
Level 1
Level 1

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.

6 Replies 6

M02@rt37
VIP
VIP

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

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Hello
have you created the L2 vlan associated with the l3 svi and assigned that to the port your laptop is attached to?


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

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

Mancunian
Spotlight
Spotlight

Please follow as suggested @Joshqun Ismayilov 

NoorTP
Level 1
Level 1

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

Devaa
Spotlight
Spotlight

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