0% found this document useful (0 votes)
124 views

CCNP Switch Lab Guild - 3

1. The document outlines the configuration steps for VLANs, trunk links, routing, and DHCP services on switches and routers for a company building network. 2. VLANs are configured on the switches for different departments and trunk links with LACP are set up between the distribution and access switches. 3. Router on a stick is used to route between the VLANs and DHCP pools are configured to assign IPs to devices in each VLAN subnet.

Uploaded by

godman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views

CCNP Switch Lab Guild - 3

1. The document outlines the configuration steps for VLANs, trunk links, routing, and DHCP services on switches and routers for a company building network. 2. VLANs are configured on the switches for different departments and trunk links with LACP are set up between the distribution and access switches. 3. Router on a stick is used to route between the VLANs and DHCP pools are configured to assign IPs to devices in each VLAN subnet.

Uploaded by

godman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CCNP Switch Lab Guild - 3

 公司建築物 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
Router(config) # interface fastEthernet 0/1
Router(config-if) # encapsulation trunk dot1q

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”

8. Spanning – Tree(DSW1, DSW2, ASW1, ASW2)

 將 PC 端用的介面改為 Portfast
 Switch(config) # interface range fastEthernet 0/1 – 9
 Switch(config-if-range) # spanning-tree portfast
9. DHCP Service
 建立 3 個 DHCP Pool(?= 1, 2, 3)

Pool Name VLANx?_POOL


IP Scope 10 . x . x? . 100 – 199 / 24
DNS Server 168.95.1.1
Domain Name Gjunx.com.tw
Gateway 10 . x . x? . 254

 Router (config) # ip dhcp excluded-address 10 . x . x? . 1 10 . x . x? . 99


 Router (config) # ip dhcp excluded-address 10 . x . x? . 200 10 . x . x? . 254
 Router (config) # ip dhcp pool VLANx?_POOL
 Router (dhcp-config) # dns-server 168 . 95 . 1 . 1
 Router (dhcp-config) # network 10 . x . x? . 0 /24
 Router (dhcp-config) # domain-name Gjunx . com . tw
 Router (dhcp-config) # default-router 10 . x . x? . 254

10. DHCP 固定指定 IP Address

 找出 IP 及 Client – ID 或 NIC MAC Address,紀錄備用

 筆電接到 VLANx3,永遠 IP Address 指定 10 . x . x3 . 200

 確認是不是有成功指派 IP 並可 Ping 到
 Router # show ip dhcp binding
 Router # clear ip dhcp binding 10 . x . x3 . 100 - 199
 Router (config) # ip dhcp pool VLANx3_POOL
 Router (dhcp-config) # no network 10 . x . x3 . 0 /24
 Router (dhcp-config) # host 10 . x . x3 . 200 /24
 Router (dhcp-config) # client-identifier **** . **** . **** . **

You might also like