前几天在一个学校遇到一个问题,核心层交换用的是一台华为的6503交换机做核心转发,底下汇聚层用的是几台华为的3928交换机,每个教室部门以及机房都划分了不同的VLAN,当时配置的时候就遇到一个问题,教学楼A这边一台3928交换机的10/100/1000M电口跟教学楼B一台3928 10/100/1000交换机电口配置trunk接口都处于down状态。(2台交换级联通过5类双绞线)
   A交换机电口配置:
   interface GigabitEthernet1/1/3
  description TO 3928-B
   port link-type trunk
   port trunk permit vlan all
 A楼交换机上VLAN主要有VLAN1,11,12,15,16,20几个VLAN,B楼交换机上面只有一个VLAN16,后期可能还会增加部门划分VLAN。
   B交换机相同的int g1/1/3接口配置如上。但是接口始终无法起来,导致B交换机VLAN16无法访问外网。speed 也改成100m duplex 也是改成auto自适应,最后看到B楼交换机只有一个VLAN16干脆把接口改成access接入模式,接口才up起来。
   杯具至今我还没有找到为什么2个接口配置trunk的时候起不来?有人看到此文章请给我回复,大家共同学习交流。
   下面是3928A楼配置:
  super password level 3 cipher aU\E';$R3)UJ;6ELGCM,X1!!
#
 local-server nas-ip 127.0.0.1 key huawei
#
 domain default enable system
#
 queue-scheduler wrr 1 2 3 4 5 9 13 15
#
radius scheme system
#
domain system
#
local-user admin
 password cipher aU\E';$R3)UJ;6ELGCM,X1!!
 service-type telnet
 level 3
#
vlan 1
#
vlan 11
 description dian'naojifang1
#
  vlan 12
 description Teacher
#
vlan 15
 description XingZheng
#
vlan 16
#
vlan 20
#
interface Vlan-interface1
 ip address 192.168.1.253 255.255.255.0
#
interface Vlan-interface20
 ip address 192.168.20.251 255.255.255.0
#
interface Aux1/0/0
#
interface Ethernet1/0/1
 port access vlan 12
#
interface Ethernet1/0/2
 port access vlan 12
interface Ethernet1/0/3
 port access vlan 12
#
interface Ethernet1/0/4
 port access vlan 12
#
interface Ethernet1/0/5
 port access vlan 12
#
interface Ethernet1/0/6
 port access vlan 12
#
interface Ethernet1/0/7
 port access vlan 12
#
interface Ethernet1/0/8
 port access vlan 12
#
interface Ethernet1/0/9
 port access vlan 12
#
interface Ethernet1/0/10
 port access vlan 12
#
interface Ethernet1/0/11
 port access vlan 12
#
interface Ethernet1/0/12
 port access vlan 12
#
interface Ethernet1/0/13
 port access vlan 12
#
interface Ethernet1/0/14
 port access vlan 12
#
interface Ethernet1/0/15
 port access vlan 12
#
interface Ethernet1/0/16
 port access vlan 12
#
interface Ethernet1/0/17
description TO 6503
 port link-type trunk
 port trunk permit vlan all
#
interface Ethernet1/0/18
 description TO 6503
 port link-type trunk
 port trunk permit vlan all
#
interface Ethernet1/0/19
 port access vlan 15
#
interface Ethernet1/0/20
 port access vlan 15
#
interface Ethernet1/0/21
 port access vlan 15
#
interface Ethernet1/0/22
 port access vlan 15
#
interface Ethernet1/0/23
port access vlan 11
#
interface Ethernet1/0/24
 port access vlan 11
#
interface GigabitEthernet1/1/1
 port link-type trunk
 undo port trunk permit vlan 1
 port trunk permit vlan 20
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
 description TO 3928-B
 port link-type trunk
 port trunk permit vlan all
#
interface GigabitEthernet1/1/4
 description TO 3928-B
 port link-type trunk
 port trunk permit vlan all

#
sysname tianrui3928-A
 undo irf-fabric authentication-mode
#
interface NULL0
#
 arp static 192.168.16.253 000f-e218-de87
 arp static 192.168.16.250 000f-e237-ea27
 arp static 192.168.16.252 000f-e220-82a0
 arp static 192.168.15.122 0013-d355-b5ae
 arp static 192.168.15.253 000f-e218-de87
 arp static 192.168.15.215 0016-76ad-3750
 arp static 192.168.15.66 0013-d355-b4e4
 arp static 192.168.15.219 0016-769d-a753
 arp static 192.168.15.123 0011-5bd8-1e0c
 arp static 192.168.15.62 0013-d354-452f
 arp static 192.168.15.61 0013-d355-b4d6
 arp static 192.168.15.33 0010-5ccd-cc67
 arp static 192.168.15.26 0010-5ccd-ca30
 arp static 192.168.15.41 0010-5ccd-ce07
 arp static 192.168.15.11 0010-5ccd-cc62
 arp static 192.168.15.37 0016-76a7-4074
 arp static 192.168.15.3 0016-76ad-02a7
 arp static 192.168.15.5 0014-2a3b-30cd
 arp static 192.168.15.28 0010-5ccd-cc5d
 arp static 192.168.15.27 0010-5ccd-cbe4
 arp static 192.168.15.34 0016-76a7-eb07
 arp static 192.168.15.14 0016-769c-8c47
 arp static 192.168.15.23 0010-5ccd-cbe6
 arp static 192.168.15.21 0014-2a3b-3fa3
 arp static 192.168.15.39 0010-5ccd-cd26
 arp static 192.168.15.20 0010-5ccd-cdc2
 arp static 192.168.15.9 0010-5ccd-cc5b
 arp static 192.168.15.19 0010-5ccd-cbea
 arp static 192.168.15.6 0010-5ccd-cba0
 arp static 192.168.15.40 0014-2a3e-6810
 arp static 192.168.15.2 0010-5ccd-cdbb
 arp static 192.168.15.35 0016-76a7-eafb
 arp static 192.168.15.29 0010-5ccc-2034
 arp static 192.168.15.32 0010-5ccd-c6e9
 arp static 192.168.15.31 0010-5ccd-ce06
 arp static 192.168.15.44 0016-76a7-e89e
 arp static 192.168.15.13 0010-5ccd-ca63
 arp static 192.168.15.8 0014-2a3b-3787
 arp static 192.168.15.7 0014-2a3b-4f54
 arp static 192.168.15.10 0014-2a3b-44d7
  arp static 192.168.15.18 0016-76a7-3ffa
 arp static 192.168.15.133 0013-d355-b4e7
 arp static 192.168.12.253 000f-e218-de87
 arp static 192.168.12.55 0016-76ad-3866
 arp static 192.168.12.128 0016-76ad-3c7c
 arp static 192.168.12.154 0016-76ad-1437
 arp static 192.168.12.39 0016-76ad-35ea
 arp static 192.168.12.148 0016-76ad-387c
 arp static 192.168.12.242 0016-76ad-383d
 arp static 192.168.12.214 0016-76ad-3ad0
 arp static 192.168.12.218 0013-d355-b570
 arp static 192.168.12.222 0016-76ac-97f6
 arp static 192.168.12.189 0016-76ad-151e
 arp static 192.168.12.172 0013-d355-b4eb
 arp static 192.168.12.112 0013-d355-b53d
 arp static 192.168.12.67 0016-76ad-386a
 arp static 192.168.12.185 0016-76b7-53d7
 arp static 192.168.12.212 0016-76ad-14e6
 arp static 192.168.12.215 0016-76ad-1528
 arp static 192.168.12.11 0016-76ad-114c
 arp static 192.168.12.233 0016-76ad-3adc
 arp static 192.168.12.204 0016-769d-a776
 arp static 192.168.12.162 0016-76ad-3854
 arp static 192.168.12.243 0012-3f6a-e5ae
 arp static 192.168.12.127 0016-76ad-124c
 arp static 192.168.12.134 0013-d355-b516
 arp static 192.168.12.211 0016-76ad-15be
 arp static 192.168.12.231 0013-d355-b4d0
 arp static 192.168.12.206 0016-76ad-160a
 arp static 192.168.16.197 0013-d355-b645
 arp static 192.168.16.83 0010-5ccd-c6b8
 arp static 192.168.16.1 0014-2a3b-3b4e
 arp static 192.168.15.126 0013-d355-b4de
 arp static 192.168.15.202 0014-2a51-49fa
 arp static 192.168.15.45 0010-5ccd-c9c0
 arp static 192.168.15.145 0010-5ccd-ccdf
 arp static 192.168.12.208 0016-76ad-3897
 arp static 192.168.12.224 0016-76ad-15ff
 arp static 192.168.12.153 0013-d355-b4e8
 arp static 192.168.12.146 0016-76ad-1761
 arp static 192.168.12.213 0016-76ad-3ac6
 arp static 192.168.12.187 0016-76b7-6dcc
 arp static 192.168.1.251 000f-e220-870e
 arp static 192.168.20.253 000f-e218-de87
 arp static 192.168.1.3 0013-725a-80cd
 arp static 192.168.1.254 000f-e218-de87
  arp static 192.168.1.2 0013-725a-6d76
 arp static 192.168.1.1 0013-725c-fc81
#
 ip route-static 0.0.0.0 0.0.0.0 192.168.20.254 preference 60
#
 snmp-agent
 snmp-agent local-engineid 800007DB000FE22047876877
 snmp-agent community read public
 snmp-agent community write private
 snmp-agent sys-info version all
 snmp-agent target-host trap address udp-domain 192.168.1.3 udp-port 5001 params securityname public
#
user-interface aux 0 7
 set authentication password cipher aU\E';$R3)UJ;6ELGCM,X1!!
user-interface vty 0 4
 set authentication password cipher aU\E';$R3)UJ;6ELGCM,X1!!
#
return