2 Cisco 2940's setting up trunk link

Associate
Joined
20 Jan 2006
Posts
313
Hi all,
Got an issue with getting this to work. I have a 2940 upstaris and one downstairs. I want to setup a Gigabit trunk between the two switches.

Config of switch 1


!
! Last configuration change at 17:45:26 BST Sat Jul 2 2011
! NVRAM config last updated at 17:45:28 BST Sat Jul 2 2011
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service sequence-numbers
!
hostname Switch
!
enable secret 5 $1$V6t5$HzlBBCvY7CCq6XxvHcR5X0
!
clock timezone gmt 0
clock summer-time BST recurring last Sun Mar 2:00 last Sun Oct 2:00
ip subnet-zero
!
ip name-server 212.23.3.100
ip name-server 212.23.6.100
ip ssh time-out 120
ip ssh authentication-retries 3
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport mode trunk
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/2
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/3
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/4
switchport mode access
switchport port-security
switchport port-security maximum 3
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/5
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/6
switchport mode access
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/7
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/8
switchport mode access
switchport port-security
switchport port-security maximum 3
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
mls qos cos override
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet0/1
switchport trunk allowed vlan 1
switchport mode trunk
macro description cisco-switch
!
interface Vlan1
ip address 192.168.1.2 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.1.1
ip http server
!
line con 0
exec-timeout 0 0
line vty 0
password 0JBWW-jbww1
login
line vty 1
password 0JBWW-jbww1
login
transport input ssh
line vty 2 4
password 0JBWW-jbww1
login
line vty 5 15
password 0JBWW-jbww1
login
!
ntp clock-period 17180106
ntp server 81.93.183.116
!
end
 
Config of switch 2


SWD#en
SWD#sh ru
Building configuration...

Current configuration : 1013 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SWD
!
enable secret 5 $1$JBVi$/ioHV9H9fDWzeVhDffH5d0
enable password Alpha13
!
no ip subnet-zero
!
ip name-server 212.23.3.100
ip name-server 212.23.6.100
ip ssh time-out 120
ip ssh authentication-retries 3
!
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 GigabitEthernet0/1
switchport trunk allowed vlan 1
switchport mode trunk
macro description cisco-switch
!
interface Vlan1
ip address 192.168.1.4 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.1.1
ip http server
!
line con 0
line vty 0 4
password *****
login
line vty 5 15
password *****
login
!
!
end
 
I know I need to config the switch ports on switch 2 but was just looking at the trunk link for now

also tried allowed vlans all but to no avail
 
I assume the purpose for the trunk is to pass vlan info?

if so then you just need to configure the switchport as a trunk, with the same native and allowed vlans at both ends, with the same encapsulation.

Interface GigabitEthernet0/1
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,3,4,5,etc
switchport trunk native vlan 1
macro description cisco-desktop

 
Back
Top Bottom