11-25-2011 02:19 AM - edited 03-07-2019 03:35 AM
Hello,
I try to connect two switch Catalyst 3750G without success.
switch1 (192.168.2.10 vlan 2) <=> (192.168.2.11 vlan2) switch2
I use this configuration for swich1 :
enable
configure terminal
enable password MDP
end
copy running-config startup-config
configure terminal
hostname switch1
interface vlan 2
ip address 192.168.2.10 255.255.255.0
exit
ip default-gateway 192.168.2.252
end
copy running-config startup-config
configure terminal
vlan 2
name zone_client
end
copy running-config startup-config
configure Terminal
interface Gi1/0/3
switchport mode trunk
switchport trunk encapsulation dot1q
switchport nonegotiate
switchport trunk native vlan 2
switchport trunk allowed vlan 1,2,3,4
end
copy running-config startup-config
I use this configuration for swich2 :
enable
configure terminal
enable password MDP
end
copy running-config startup-config
configure terminal
hostname switch1
interface vlan 2
ip address 192.168.2.11 255.255.255.0
exit
ip default-gateway 192.168.2.252
end
copy running-config startup-config
configure terminal
vlan 2
name zone_client
end
copy running-config startup-config
configure Terminal
interface Gi1/0/3
switchport mode trunk
switchport trunk encapsulation dot1q
switchport nonegotiate
switchport trunk native vlan 2
switchport trunk allowed vlan 1,2,3,4
end
copy running-config startup-config
when i use ping in console terminal, ping fail.
Somebody can help me?
Solved! Go to Solution.
11-28-2011 02:57 AM
Hi,
it didn't take the switchport mode trunk command because you configured it before switchport trunk encapsulation dot1q
so reenter this command switchport mode trunk and it should be good, I still wonder how I didn't remark that before.
Regards.
Alain
11-28-2011 02:58 AM
Hi,
You need to add "switchport mode trunk" on Gi1/0/3 on both switches.
!
interface GigabitEthernet1/0/3
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 1-4
switchport mode trunk
!
HTH,
Toshi
11-28-2011 07:39 AM
Hi,
PC<=>(Vlan 2 in access mode)switch1(vlan 2 in trunk mode)<=> (vlan in tagged mode ) HP swich <=> Gateway
If on sw1 Vlan 2 is the native vlan , it will be sent on the trunk untagged so it must be untagged also on the HP switch or you can force tagging of vlan 2( the native vlan) on the Cisco with the global config command: vlan dot1q tag native
Regards.
Alain
11-25-2011 03:00 AM
Hi,
verify your vlan interface is up/up ---> sh ip int br | i Vlan
Regards.
Alain
11-25-2011 05:24 AM
Thank you cadet alain for your reply.
switch2>
switch2>enable
Password:
switch2#sh ip int br | i Vlan
Vlan1 unassigned YES unset up up
Vlan2 192.168.2.11 YES manual up down
switch2#
switch1>enable
Password:
switch1#sh ip int br | i Vlan
Vlan1 unassigned YES unset up up
Vlan2 192.168.2.10 YES manual up down
switch1#
I don't understand what is down. Can you explain?
11-25-2011 05:44 AM
Hi,
what is the output of :
show vlan brief
sh spanning-tree vlan 2
Regards.
Alain
11-28-2011 01:06 AM
switch1#sh ip int br | i Vlan
Vlan1 unassigned YES manual up up
Vlan2 192.168.2.10 YES manual up down
switch1#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi1/0/1, Gi1/0/2, Gi1/0/3
Gi1/0/4, Gi1/0/5, Gi1/0/6
Gi1/0/7, Gi1/0/8, Gi1/0/9
Gi1/0/10, Gi1/0/11, Gi1/0/12
Gi1/0/13, Gi1/0/14, Gi1/0/15
Gi1/0/16, Gi1/0/17, Gi1/0/18
Gi1/0/19, Gi1/0/20, Gi1/0/21
Gi1/0/22, Gi1/0/23, Gi1/0/24
Gi1/0/25, Gi1/0/26, Gi1/0/27
Gi1/0/28
2 zone_client active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
switch1#
switch1#sh spanning-tree vlan 2
Spanning tree instance(s) for vlan 2 does not exist.
switch1#
Gi1/0/3 doesn't seems in VLAN 2 but i don't know why...
11-28-2011 01:16 AM
Hello,
Please post "show interface trunk" on both switches.
Toshi
11-28-2011 01:27 AM
switch2#show interface trunk
switch1#show interface trunk
switch1#
(answer nothing )
11-28-2011 01:32 AM
Hello,
it's kinda weird. Please post "show vtp status" and "show ip interface brief" on both switches.
Toshi
11-28-2011 01:51 AM
switch1#show vtp status
VTP Version : running VTP1 (VTP2 capable)
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : *************************************
Configuration last modified by 0.0.0.0 at 3-1-93 00:05:45
Local updater ID is 0.0.0.0 (no valid interface found)
switch1#
switch2>enable
Password:
Password:
switch2#show vtp status
VTP Version : running VTP1 (VTP2 capable)
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : *************************************
Configuration last modified by 0.0.0.0 at 3-1-93 00:29:00
Local updater ID is 0.0.0.0 (no valid interface found)
11-28-2011 01:53 AM
switch1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES manual up up
Vlan2 192.168.2.10 YES manual up down
GigabitEthernet1/0/1 unassigned YES unset down down
GigabitEthernet1/0/2 unassigned YES unset down down
GigabitEthernet1/0/3 unassigned YES unset up up
GigabitEthernet1/0/4 unassigned YES unset down down
GigabitEthernet1/0/5 unassigned YES unset down down
GigabitEthernet1/0/6 unassigned YES unset down down
GigabitEthernet1/0/7 unassigned YES unset down down
GigabitEthernet1/0/8 unassigned YES unset down down
GigabitEthernet1/0/9 unassigned YES unset down down
GigabitEthernet1/0/10 unassigned YES unset down down
GigabitEthernet1/0/11 unassigned YES unset down down
GigabitEthernet1/0/12 unassigned YES unset down down
GigabitEthernet1/0/13 unassigned YES unset down down
GigabitEthernet1/0/14 unassigned YES unset down down
GigabitEthernet1/0/15 unassigned YES unset down down
GigabitEthernet1/0/16 unassigned YES unset down down
GigabitEthernet1/0/17 unassigned YES unset down down
GigabitEthernet1/0/18 unassigned YES unset down down
GigabitEthernet1/0/19 unassigned YES unset down down
GigabitEthernet1/0/20 unassigned YES unset down down
GigabitEthernet1/0/21 unassigned YES unset down down
GigabitEthernet1/0/22 unassigned YES unset down down
GigabitEthernet1/0/23 unassigned YES unset down down
GigabitEthernet1/0/24 unassigned YES unset down down
GigabitEthernet1/0/25 unassigned YES unset down down
GigabitEthernet1/0/26 unassigned YES unset down down
GigabitEthernet1/0/27 unassigned YES unset down down
GigabitEthernet1/0/28 unassigned YES unset down down
switch1#
switch2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES manual up up
Vlan2 192.168.2.11 YES manual up down
GigabitEthernet1/0/1 unassigned YES unset down down
GigabitEthernet1/0/2 unassigned YES unset down down
GigabitEthernet1/0/3 unassigned YES unset up up
GigabitEthernet1/0/4 unassigned YES unset down down
GigabitEthernet1/0/5 unassigned YES unset down down
GigabitEthernet1/0/6 unassigned YES unset down down
GigabitEthernet1/0/7 unassigned YES unset down down
GigabitEthernet1/0/8 unassigned YES unset down down
GigabitEthernet1/0/9 unassigned YES unset down down
GigabitEthernet1/0/10 unassigned YES unset down down
GigabitEthernet1/0/11 unassigned YES unset down down
GigabitEthernet1/0/12 unassigned YES unset down down
GigabitEthernet1/0/13 unassigned YES unset down down
GigabitEthernet1/0/14 unassigned YES unset down down
GigabitEthernet1/0/15 unassigned YES unset down down
GigabitEthernet1/0/16 unassigned YES unset down down
GigabitEthernet1/0/17 unassigned YES unset down down
GigabitEthernet1/0/18 unassigned YES unset down down
GigabitEthernet1/0/19 unassigned YES unset down down
GigabitEthernet1/0/20 unassigned YES unset down down
11-28-2011 01:54 AM
Hi Toshi,
He already posted the sh ip int br output and the vlan 2 interface was up/down
@ informatique cns: the vlan is active on switch 1 but it is not showing on g1/0/3 because this is a trunk
g1/0/3 is an access port in vlan 1 as sh vlan br outputs:
1 default active Gi1/0/1, Gi1/0/2, Gi1/0/3
So as Toshi remarked and as your sh int trunk output proves there is something wrong with the trunk.
Can you do on both switches sh int g1/0/3 switchport and sh int g1/0/3 status and sh spanning-tree
@ Toshi by default VTP is OFF as Domain= null and if there is no trunk it can't anything
Regards.
Alain
11-28-2011 02:04 AM
switch2#sh int g1/0/3 switchport
Name: Gi1/0/3
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 2 (zone_client)
Administrative Native VLAN tagging: enabled
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 Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: 1-4
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
switch1#
switch1#
switch1#sh int g1/0/3 switchport
switch2#sh int g1/0/3 switchport
Name: Gi1/0/3
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 2 (zone_client)
Administrative Native VLAN tagging: enabled
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 Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: 1-4
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
***************
switch1# sh int g1/0/3 status
Port Name Status Vlan Duplex Speed Type
Gi1/0/3 connected 1 a-full a-1000 10/100/1000BaseTX
switch1#
switch2# sh int g1/0/3 status
Port Name Status Vlan Duplex Speed Type
Gi1/0/3 connected 1 a-full a-1000 10/100/1000BaseTX
****************
switch1# sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 2c3f.3876.0200
Cost 4
Port 3 (GigabitEthernet1/0/3)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 68bc.0ceb.8200
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi1/0/3 Root FWD 4 128.3 P2p
switch1#
switch2# sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 2c3f.3876.0200
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 2c3f.3876.0200
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi1/0/3 Desg FWD 4 128.3 P2p
11-28-2011 02:06 AM
Hi Alain,
Ahh, he alreay posted the outout of "show ip int brief" ;- ). I just want to make sure that there is nothing wrong with vtp mismatch its gonna break the trunk.
It seems your port acting as access port. Operational Mode: static access.
Please post "show running". To make sure that you correctly configured.
HTH,
Toshi
11-28-2011 02:21 AM
Hi Toshi,
Bu why are these access ports as he configured them as unconditional trunks ?
We only got sw2 output for sh int switchport but there is something strange:
switch2#sh int g1/0/3 switchport
Name: Gi1/0/3
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 2 (zone_client)
Administrative Native VLAN tagging: enabled
Is this the default to tag the native vlan ? I don't think so
Can the OP post the same output for sw1.
Regards.
Alain
11-28-2011 02:24 AM
Hi Alian,
It should not be a problem with changing native vlan. I need to see the whole configuration. It has to be Operational Mode: trunk.
HTH,
Toshi
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide