Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trunking

Status
Not open for further replies.
May 5, 2006
10
0
0
US
I set up a trunk between 2 3560 switches,

I can see them as neighbors but cannot ping them

the config is

switchport trunk encap dot1
switchport mode trunk

this is on both switches

what am I doing wrong

jack
 
Are both switches set up with management IP's on the same subnet?
Same default gateways?
 
one is under a vlan300 on the 13 network and the other is it native vlan1 but on the 8 network

thanks for the reply
 
Burt,
Thank you for replying here is the interface I am connecting to
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

interface FastEthernet0/22
switchport trunk encapsulation dot1q
switchport mode trunk

interface Vlan1
no ip address
!
interface Vlan300
ip address 172.17.13.254 255.255.255.0
no ip route-cache
no ip mroute-cache
!
interface Vlan301
description QA-301
no ip address
no ip route-cache
no ip mroute-cache
!
interface Vlan302
description QA-302
no ip address
no ip route-cache
no ip mroute-cache
!
interface Vlan303
description QA-303
no ip address
no ip route-cache
no ip mroute-cache
!
interface Vlan304
description QA-304
no ip address
no ip route-cache
no ip mroute-cache

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

here is the swict I am trying to add

interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk

interface Vlan1
ip address 172.17.8.23 255.255.255.0


Jack




!
 
Are the trunk ports connected with a crossover cable? Also, post a sh vlan and sh vtp server

Burt
 
On the first switch put an ip address on vlan 1 and make sure the second switches default gateway is pointed to that address . The way it is now it can never ping.
 
This is the switch i need to connect to on fa0/11


!
interface FastEthernet0/10
description IP Phone port
switchport access vlan 300
switchport mode access
switchport voice vlan 301
switchport port-security maximum 3
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
srr-queue bandwidth share 10 10 60 20
srr-queue bandwidth shape 10 0 0 0
mls qos trust device cisco-phone
mls qos trust cos
macro description cisco-phone | cisco-phone | cisco-phone
auto qos voip cisco-phone
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/11
switchport trunk encapsulation dot1q
switchport mode trunk
!

interface Vlan1
no ip address
!
interface Vlan13
no ip address
!
interface Vlan300
ip address 172.17.13.254 255.255.255.0
no ip route-cache
no ip mroute-cache
!
interface Vlan301
description QA-301
no ip address
no ip route-cache
no ip mroute-cache
!
interface Vlan302
description QA-302
no ip address
no ip route-cache
no ip mroute-cache
!
interface Vlan303
description QA-303
no ip address
no ip route-cache
no ip mroute-cache
!
interface Vlan304
description QA-304
no ip address
no ip route-cache
no ip mroute-cache
!
ip classless
ip http server
ip http secure-server
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I cant get a copy of the other switch right now but i did enter the ip routing command , I am using a crossover cable and the vtp mode is set to transparent.
as well as the trunking commands are
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
switchport trunk encapsulation dot1q
switchport mode trunk

thanks guys
jack

 
Do a show vlan and make sure all your layer 2 vlan definitions show active under this command . If you need more help post a "show vlan" and a sh int trunk command here .
 
there you go vipergg----jack



 
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
400 VLAN0400 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
10 enet 100010 1500 - - - - - 0 0
11 enet 100011 1500 - - - - - 0 0
12 enet 100012 1500 - - - - - 0 0
13 enet 100013 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
201 enet 100201 1500 - - - - - 0 0
202 enet 100202 1500 - - - - - 0 0
203 enet 100203 1500 - - - - - 0 0
204 enet 100204 1500 - - - - - 0 0
300 enet 100300 1500 - - - - - 0 0
301 enet 100301 1500 - - - - - 0 0
302 enet 100302 1500 - - - - - 0 0
303 enet 100303 1500 - - - - - 0 0
304 enet 100304 1500 - - - - - 0 0
400 enet 100400 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 - - - - 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
--More--  
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1005 trnet 101005 1500 - - 1 ibm - 0 0

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------


sh int trun
QA-3560-04#sh int trunk

Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1

Port Vlans allowed on trunk
Fa0/1 1-4094

Port Vlans allowed and active in management domain
Fa0/1 1,10-13,200-204,300-304,400

Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1,10-13,200-204,300-304,400
QA-3560-04#
 
here is the other switch config
sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/11, Gi0/1, Gi0/2, Gi0/3
Gi0/4
10 VLAN0010 active
11 VLAN0011 active
12 VLAN0012 active
13 VLAN0013 active Fa0/22
200 VLAN0200 active
201 VLAN0201 active
202 VLAN0202 active
203 VLAN0203 active
204 VLAN0204 active
300 VLAN0300 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/23
Fa0/24, Fa0/25, Fa0/26, Fa0/27
Fa0/28, Fa0/29, Fa0/30, Fa0/31
Fa0/32, Fa0/33, Fa0/34, Fa0/35
Fa0/36, Fa0/37, Fa0/38, Fa0/39
Fa0/40, Fa0/41, Fa0/42, Fa0/43
Fa0/44, Fa0/45, Fa0/46, Fa0/47
301 VLAN0301 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/12
302 VLAN0302 active Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/23, Fa0/24
303 VLAN0303 active Fa0/25, Fa0/26, Fa0/27, Fa0/28
Fa0/29, Fa0/30, Fa0/31, Fa0/32
Fa0/33, Fa0/34, Fa0/35, Fa0/36
304 VLAN0304 active Fa0/37, Fa0/38, Fa0/39, Fa0/40
Fa0/41, Fa0/42, Fa0/43, Fa0/44
Fa0/45, Fa0/46, Fa0/47
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
10 enet 100010 1500 - - - - - 0 0
11 enet 100011 1500 - - - - - 0 0
12 enet 100012 1500 - - - - - 0 0
13 enet 100013 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
201 enet 100201 1500 - - - - - 0 0
202 enet 100202 1500 - - - - - 0 0
203 enet 100203 1500 - - - - - 0 0
204 enet 100204 1500 - - - - - 0 0
300 enet 100300 1500 - - - - - 0 0

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
301 enet 100301 1500 - - - - - 0 0
302 enet 100302 1500 - - - - - 0 0
303 enet 100303 1500 - - - - - 0 0
304 enet 100304 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 - - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>



A-3560-03#sh int trunk

Port Mode Encapsulation Status Native vlan
Fa0/21 on 802.1q trunking 300
Fa0/48 on 802.1q trunking 300

Port Vlans allowed on trunk
Fa0/21 1-4094
Fa0/48 1-4094

Port Vlans allowed and active in management domain
Fa0/21 1,10-13,200-204,300-304
Fa0/48 1,10-13,200-204,300-304

Port Vlans in spanning tree forwarding state and not pruned
Fa0/21 1,10-13,200-204,300-304
Fa0/48 1,10-13,200-204,300-304
A-3560-03#
 
You don't have the same native vlan on each side of the link , these have to match in order for the trunk to work. Looks like the native is 1 on one side and 300 on the other , this won't work. either make the native vlan 1 on both sides of the trunk or make it vlan 300 on both sides. Also i am not sure why on one side it only shows 400 as active . all your vlans should show active like they do on your 2nd switch.
The other question is which switch is doing the routing ?

switch 1
vtp domain cisco
ip routing


int vlan 1
interface Vlan1
ip address 172.17.8.1 255.255.255.0

interface Vlan300
ip address 172.17.13.254 255.255.255.0

interface FastEthernet0/22
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 1

-------------------------------------------------------------

switch 2
vtp domain cisco
no ip routing

interface Vlan1
ip address 172.17.8.23 255.255.255.0

ip default-gateway 172.17.8.1

int f0/1
switchport encapsulation dot1q
switchport mode trunk
switchpor trunk native vlan 1











 

the ip routing--this should only be on one side of the trunk?
to add voice vlan the command would be for example
switchport voice vlan 301?


ok ..so this is what i will have on both sides,

interface FastEthernet0/48
description Uplink to switch
switchport trunk encapsulation dot1q
switchport trunk native vlan 300
switchport mode trunk
speed 100
duplex full
srr-queue bandwidth share 10 10 60 20
srr-queue bandwidth shape 10 0 0 0
mls qos trust dscp
macro description cisco-router
auto qos voip trust
spanning-tree portfast trunk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top