Вы находитесь на странице: 1из 3

CCNP Switch Lab Guild - 2

 公司建築物 VLAN 規劃資訊(x 為建築物的編號)

VLAN ID VLAN Name


x1 RD_VL
x2 IT_VL
x3 Acc_VL
x4 Sales_VL
Switch > enable
Switch # configure terminal
Switch(config) # hostname “DSW1, DSW2, ASW1, ASW2”
Switch name(config) # line vty 0 15
Switch name(config) # priviledge level 15
Switch name(config) # no login
Switch name(config) # interface vlan 1
Switch name(config-if) # ip address “10 . x . x . 201, 202, 251, 252”/24
Switch name(config-if) # no shutdown
Switch name(config) # vlan “x1, x2, x3, x4”
Switch name(config) # name “RD_VL , IT_VL, Acc_VL, Sales VL”

1. VTP Domain Name 設定為 SSGSS_Rex,且 VTP Transparent mode


Switch name(config) # vtp mode transparent
Switch name(config) # vtp domain SSGSS_Rex

2. DSW1  ASW1 & DSW2  ASW2 設定 EtherChannel 相關資訊如下:


 802.1Q Trunk Link
 Channel Protocol is LACP
 DSW is active, ASW is passive
 Only allow Vlan 1, X1, X2, X3, X4
 DSWx(config) # interface range fastEthernet 1/0/21 – 22
 DSWx(config-if-range) # channel-group * mode active
 DSWx(config-if-range) # switchport trunk encapsulation dot1q
 DSWx(config-if-range) # switchport mode trunk
 DSWx(config-if-range) # switchport trunk allowed vlan 1, x1 – x4
 ASWx(config) #interface range fastEthernet 0/21 – 22
 ASWx(config-if-range) #switchport mode trunk
 ASWx(config-if-range) # switchport trunk allowed vlan 1, x1 – x4
 ASWx(config-if-range) # channel-group * mode passive
3. DSW1  ASW2 & DSW2  ASW1 設定 EtherChannel 相關資訊如下:
 802.1Q Trunk Link
 Channel Protocol is LACP
 DSW is active, ASW is passive
 Only allow Vlan 1, X1, X2, X3, X4
 DSWx(config) # interface range fastEthernet 1/0/19 – 20
 DSWx(config-if-range) # switchport trunk encapsulation dot1q
 DSWx(config-if-range) # switchport mode trunk
 DSWx(config-if-range) # channel-group * mode active
 DSWx(config-if-range) # switchport trunk allowed vlan 1, x1 – x4

 ASWx(config) #interface range fastEthernet 0/19 – 20


 ASWx(config-if-range) # switchport mode trunk
 ASWx(config-if-range) # channel-group * mode passive
 ASWx(config-if-range) # switchport trunk allowed vlan 1, x1 – x4

4. DSW1  DSW2 設定 EtherChannel 相關資訊如下:


 ISL Trunk Link
 Channel Protocol is PAgP
 Only allow Vlan 1, X1, X2, X3, X4
 DSWx(config) # interface range fastEthernet 1/0/23 – 24
 DSWx(config-if-range) # switchport trunk encapsulation isl
 DSWx(config-if-range) # switchport mode trunk
 DSWx(config-if-range) # channel-group * mode desirable
 DSWx(config-if-range) # switchport trunk allowed vlan 1, x1 – x4

DSWx(config) # interface range fastEthernet 1/0/19 – 24


DSWx(config-if-range) # no shutdown
ASWx(config) # interface range fastEthernet 0/19 – 22
ASWx(config-if-range) # no shutdown
5. Router on a Stick 方式建立 VLAN x1 ~ VLAN x4 之間 Routing
Router(config) # interface fastEthernet 0/1
Router(config-if) # no shutdown
Router(config-if) # interface fastEthernet “0/1.x1, 1.x2, 1.x3, 1.x4”
Router(config-subif) # ip address “10 . x . x1 - x4 . 254” / 24

6. Router  DSW1 連接端設定 Trunk


DSW1(config) # interface fastEthernet 1/0/12
DSW1(config-if) # switchport encapsulation dot1q
DSW1(config-if) # switchport mode trunk

7. Access Port (DSW1, DSW2, ASW1, ASW2)


 FastEthernet 0/1 – 3, Data VLAN x1
 FastEthernet 0/4 – 6, Data VLAN x2
 FastEthernet 0/7 – 9, Data VLAN x3
 兩台電腦在不同 VLAN 之間可 Ping 通
 Switch(config) # interface range fastEthernet “0/1 – 3, 4 – 6, 7 – 9”
 Switch(config-if-range) # switchport mode access
 Switch(config-if-range) # switchport access vlan “x1, x2, x3”

Вам также может понравиться