VlanTrunk

简单的vlan trunk的配置:

第一步:添加vlan

 1 Switch>enable
 2 Switch#show vlan
 3 
 4 VLAN Name                             Status    Ports
 5 ---- -------------------------------- --------- -------------------------------
 6 1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
 7                                                 Fa0/5, Fa0/6, Fa0/7, Fa0/8
 8                                                 Fa0/9, Fa0/10, Fa0/11, Fa0/12
 9                                                 Fa0/13, Fa0/14, Fa0/15, Fa0/16
10                                                 Fa0/17, Fa0/18, Fa0/19, Fa0/20
11                                                 Fa0/21, Fa0/22, Fa0/23, Fa0/24
12 1002 fddi-default                     act/unsup 
13 1003 token-ring-default               act/unsup 
14 1004 fddinet-default                  act/unsup 
15 1005 trnet-default                    act/unsup 
16 
17 VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
18 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
19 1    enet  100001     1500  -      -      -        -    -        0      0
20 1002 fddi  101002     1500  -      -      -        -    -        0      0   
21 1003 tr    101003     1500  -      -      -        -    -        0      0   
22 1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
23 1005 trnet 101005     1500  -      -      -        ibm  -        0      0   
24 
25 Remote SPAN VLANs
26 ------------------------------------------------------------------------------
27 
28 
29 Primary Secondary Type              Ports
30 ------- --------- ----------------- ------------------------------------------
31 Switch#vlan database 
32 % Warning: It is recommended to configure VLAN from config mode,
33   as VLAN database mode is being deprecated. Please consult user
34   documentation for configuring VTP/VLAN in config mode.
35 
36 Switch(vlan)#vlan 2
37 VLAN 2 added:
38     Name: VLAN0002
39 Switch(vlan)#vlan 3
40 VLAN 3 added:
41     Name: VLAN0003

 第二步:建立vlan trunk

Switch# configure terminal 
    Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode trunk

 

第三步:将相应的端口添加到相应的vlan

 

posted @ 2015-03-24 11:47  HuijunZhang  阅读(216)  评论(0编辑  收藏  举报
中国