cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12930
Views
0
Helpful
5
Replies

Cannot ping between trunk port

Arie
Level 1
Level 1

Hi,
In packet tracer that works... After configuration switch 2950 cannot ping any sub-interface ip on router 1841and vice versa - router cannot ping management ip of switch in vlan 99 (10.0.0.253).

It's also funny that from switch on port 24 there is cabel which is connected to ISP router (192.168.0.1) and router is able to ping it...

Can anyone explain me what's wrong and how to fix that?

Below all necessary configuration and picture of network (enclosed)

2950 switch config:

========================================

2950#show running-config

Building configuration...

 

Current configuration : 1330 bytes

!

version 12.1

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname 2950

!

!

ip subnet-zero

!

!

spanning-tree mode pvst

no spanning-tree optimize bpdu transmission

spanning-tree extend system-id

!

!

!

!

interface FastEthernet0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

switchport trunk native vlan 99

switchport mode trunk

!

interface FastEthernet0/24

switchport access vlan 192

switchport mode access

!

interface FastEthernet0/25

!

interface FastEthernet0/26

!

interface Vlan1

no ip address

no ip route-cache

!

interface Vlan99

ip address 10.0.0.253 255.255.255.0

no ip route-cache

!

ip default-gateway 10.0.0.254

ip http server

!

line con 0

line vty 5 15

!

!

end

 

2950#

 

1841 router config:

========================================

 

Robert>en

Robert#show runn

Robert#show running-config

Building configuration...

 

Current configuration : 929 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Robert

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

!

resource policy

!

ip cef

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

interface FastEthernet0/0.11

encapsulation dot1Q 11

ip address 192.168.2.254 255.255.255.0

no snmp trap link-status

!

interface FastEthernet0/0.99

encapsulation dot1Q 99 native

ip address 10.0.0.254 255.255.255.0

no snmp trap link-status

!

interface FastEthernet0/0.192

encapsulation dot1Q 192

ip address 192.168.0.254 255.255.255.0

no snmp trap link-status

!

interface FastEthernet0/1

ip address 192.168.59.254 255.255.255.0

duplex auto

speed auto

!

!

!

no ip http server

no ip http secure-server

!

!

!

!

control-plane

!

!

!

line con 0

line aux 0

line vty 0 4

login

!

scheduler allocate 20000 1000

end

 

Robert#

5 Replies 5

Hi!

Apply this command in interface fa0/23 from switch:

switchport trunk encapsulation dot1q

switchport trunk encapsulation dot1q

this is unknow ...

I found information that for 2950: "only encapsulation type available on 2950 is dot1q,so by default it is enabled on the port" so switchport mode trunk" should be enough

Indeed, try the steps from following link: http://www.cisco.com/c/en/us/support/docs/lan-switching/inter-vlan-routing/14976-50.html

As this is an old switch, I'd recommend to apply the command switchport trunk vlan allowed all

I applied this command: "switchport trunk vlan allowed all"

but still no working.

i checked also:

2950#show int fastEthernet 0/23 switchport
Name: Fa0/23
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (Inactive)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none
2950#

look at his line:

Trunking Native Mode VLAN: 99 (Inactive)

is it something wrong here?

EDIT: ok i had vlan 99 down i bring it up and now its ok 

P.S If i restart switch vlans will be automaticly bringed up or do i need to make them up manually?

SVI's come up following a boot, you also need an interface up in the respective vlan.

Martin