cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3640
Views
0
Helpful
20
Replies

Can't ping interface, please advise

Earl Kacin
Level 1
Level 1

I have 2851 with 2 subinterfaces on g0/0   g0/0.1   10.8.x.x    255.255.0.0   encapsulation dot1q 1

                                                                    g0/0.2   10.6.x.x    255.255.0.0   encapsulation dot1q 2

A 4948 is directly connected to g0/0 interface.Trunking is enabled on the switch interface.  I can ping g0/0.1, but I cant ping g0/0.2.  Can anyone tell me why.  This has stumped me.  The default gateway on the switch is the g0/0.1 ip.  I should still be able to ping both, correct?  Please help.

1 Accepted Solution

Accepted Solutions

I know this is sort of obvious, but usually issues like this are due to a fundamental oversight.  Did you run 'no ip routing' on the switch?  You may need to ensure that the switch is not attempting to route and is working strictly in Layer 2.

View solution in original post

20 Replies 20

Nagaraja Thanthry
Cisco Employee
Cisco Employee

Hello,

What is the native vlan? Do you have a corresponding interface for VLAN 2 on the 4948 side?

Regards,

NT

The native vlan is the 10.8.x.x vlan.  I have added the other vlan to

the vlan pool on the switch  The machines connected to the switch can ping 10.6.x.x, but the switch in the cli cant ping 10.6.x.x

Hello,

Can you please try to trace the path from the switch to 10.6.x.x address?

Also, on the switch, can you please verify that there is no other VLAN

interface with conflicting address for 10.6.x.x subnet?

show ip interface brief | exc unas

Regards,

NT

If I do a traceroute from the cli on the 4948 to the directly connected sub interface address on the 2851, i get :

1***

2***

3***

4***

5***

and so on.

Hello,

On 4948, can you issue "show run | include ip rout" and see if the switch has ip routing enabled. If it is, then please make sure that you have a default route (ip route 0.0.0.0 0.0.0.0 10.8.1.1) on the 4948. If the 4948 does not have "ip routing" enabled, then make sure that you have configured "ip default-gw" on the 4948.

Hope this helps.

Regards,

NT

The dafault gateway is set. the command shows "no ip route-cache cef" and "no ip route-cache"

Hello,

If you have configured the switch as a L3 device (ip routing enabled), then

as John said, please issue a static default route (default gateway will work

only when the device has single l3 interface and ip routing is turned off).

If you want it to be a single L3 interface device, then you can turn off the

IP routing as well.

Hope this helps.

Regards,

NT

Earl

Is ip routing enabled on the 4948 ? If so can you add to the 4948 -

ip route 0.0.0.0 0.0.0.0

Jon

Jon Marshall
Hall of Fame
Hall of Fame

Earl

Just a quick follow up to this. The 4948 is a L3 switch. Is there a reason you are using subinterfaces on the router rather than configuring L3 vlan interfaces on the 4948 ? Subinterfaces on a router are only really used nowadays when the switch is only L2 capable.

Jon

That is the only l3 switch on that segment. All layer 2 switches connect to this switch. Is there a better way to do this?

earlkacin wrote:

That is the only l3 switch on that segment.  All layer 2 switches connect to this switch.  Is there a better way to do this?


Earl

Can't read your attachment but the way to do it would be to route the vlans on the 4948 ie. on the 4948 -

int vlan 1

ip address 10.8.x.x 255.255.0.0

int vlan 2

ip address 10.6.x.x 255.255.0.0

then the 4948 will route between the 2 vlans assuming you have "ip routing" enabled. Then on the port on the 4948 that  connects to the router -

int gi0/1

no switchport

ip address 192.168.5.2 255.255.255.252

on the router remove your subinterfaces and configure gi0/0 as -

int gi0/0

ip address 192.168.5.1 255.255.255.252

then either run dynamic routing protocol between router and 4948 such as EIGRP or simply use static routes ie.

on the 4948 -

ip route 0.0.0.0 0.0.0.0 192.168.5.1

on the router -

ip route 10.6.x.x 255.255.0.0 192.168.5.2

ip route 10.8.x.x 255.255.0.0 192.168.5.2

Jon

Ive got about another 20 sub interfaces already configured on the router. I was trying to keep uniform. This wasnt my network before now. Is this the best or only way aside from doing the routing from the switch and not the router?

earlkacin wrote:

Ive got about another 20 sub interfaces already configured on the router.  I was trying to keep uniform.  This wasnt my network before now.  Is this the best or only way aside from doing the routing from the switch and not the router?

Earl

Do you mean 20 subinterfaces under the gi0/0 interface ?  If so you really should look to migrate this to the 4948. This is what L3 switches are designed for ie inter-vlan routing. Basically using subinterfaces on a router restricts the bandwidth between all your vlans. Really if you have a L3 switch the only traffic leaving the switch should be traffic destined for a remote location.

However this will require downtime so it's up to you really as to whether you want to proceed.

As for the original problem did adding a default-route on the 4948 enable you to ping the 10.6.x.x network ?

Jon

I know this is sort of obvious, but usually issues like this are due to a fundamental oversight.  Did you run 'no ip routing' on the switch?  You may need to ensure that the switch is not attempting to route and is working strictly in Layer 2.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card