cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
248
Views
0
Helpful
2
Replies

Unable to ping network device from switch

iftam0001
Level 1
Level 1

I'm not sure what I'm doing wrong, but I am unable to ping any of my network device from the switch if I do not configure an interface Vlan on the switch. If I leave the interface Vlan XX out, I cannot ping any devices including the router from the switch, but I can ping all the way through to the ASA that is connected to the switch from the router. If I add the interface Vlan into the switch, I can ping router, ASA and any other devices from the switch. I was asked not to configure an interface Vlan in the switch as we want this Vlan to be a layer 2 Vlan. Below is the router and switch configuration, can anyone see where the problem is?

 

Router:

interface GigabitEthernet0/1
 no ip address
 no ip redirects
 no ip proxy-arp
 no ip route-cache
 duplex auto
 speed auto
!
interface GigabitEthernet0/1.1
 description Office Subnet
 encapsulation dot1Q 1 native
 ip dhcp relay information trusted
 ip dhcp relay information check-reply
 ip dhcp relay information policy-action replace
 ip address 10.200.255.1 255.255.255.0
 ip access-group leaving_office in
 ip helper-address 10.200.255.31
 no ip redirects
 no ip proxy-arp
 ip pim sparse-mode
 no ip route-cache
 service-policy input pm-in-lan
!
interface GigabitEthernet0/1.10
 description Office Subnet
 encapsulation dot1Q 10
 ip dhcp relay information trusted
 ip dhcp relay information check-reply
 ip dhcp relay information policy-action replace
 ip address 10.210.255.1 255.255.255.0
 ip helper-address 10.200.255.31
 no ip redirects
 no ip proxy-arp
 ip pim sparse-mode
 no ip route-cache
 service-policy input pm-in-lan
!

ip route 0.0.0.0 0.0.0.0 63.148.30.189
ip route 63.148.30.189 255.255.255.255 Multilink1

 

Switch:

interface Vlan1
 ip address 10.200.255.10 255.255.255.0
 no ip route-cache
!
ip default-gateway 10.200.255.1

 

2 Replies 2

Reza Sharifi
Hall of Fame
Hall of Fame

If you are trying to ping from the switch, the switch needs to have an IP address to use as the source.

So when you remove the IP for vlan 1, than there is no IP to source it from and that is why ping does not work.  If you want to ping from the switch, than you need to have at least one IP address on the device.

HTH

Charles Hill
VIP Alumni
VIP Alumni

An ip address is needed if the switch will be managed remotely. 

 

 

 

 

 

Review Cisco Networking for a $25 gift card