【正文】
式傳輸?shù)?,由每一臺 終端 通過驗證數(shù)據(jù)包頭的地址信息來確定是否接收。這種方式就是共享 網(wǎng)絡帶寬 。 交換機 基本參數(shù)配置 SW1 的配置 Switchen Switchconf t Enter configuration mands, one per line. End with CNTL/Z. Switch(config)host SW1 32 SW1(config)intvlan 1 SW1(configif)ip add SW1(configif)no shut %LINK5CHANGED: Interface Vlan1, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface Vlan1, changed state to up SW1(configif)ex SW1(config)ip defaultgateway SW2 的配置 Switchen Switchconf t Enter configuration mands, one per line. End with CNTL/Z. Switch(config)host SW2 SW2(config)intvlan 1 SW2(configif)ip add SW2(configif)no shut 33 %LINK5CHANGED: Interface Vlan1, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface Vlan1, changed state to up SW2(configif)ex SW2(config)ip defaultgateway 配置 VTP 協(xié)議 SW1 的配置 SW1(config)vtp domain ca Changing VTP domain name from NULL to ca SW1(config)int fa0/23 SW1(configif)switchport mode trunk %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/23, changed state to down %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/23, changed state to up SW1(configif)int fa0/24 SW1(configif)swi mode trunk 34 %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/24, changed state to down %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/24, changed state to up SW2 的配置 SW2(config)vtp domain ca Changing VTP domain name from NULL to ca SW2(config)vtp mode client Setting device to VTP CLIENT mode. SW2(config)int fa0/23 SW2(configif) %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/23, changed state to down SW2(configif)swi mode trunk SW2(configif)int fa0/24 SW2(configif)swi mode trunk %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/24, changed state to down 35 %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/24, changed state to up 因為思科交換機默認是 VTPServer,所以 SW1 是需要配置 VTP 域名就可以。 VLAN 劃分 交換機 VLAN 配置 在 VTP Server 交換機 SW1 上添加 VLAN,并把端口加入到對應的 VLAN 中。 SW1 和 R1 之間的鏈路要配置成主干鏈路, SW1 的配置如下: SW1(config)int fa0/1 SW1(configif)swi mode trunk %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/1, changed state to down %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/1, 38 changed state to up 路由器 R1 的配置如下: R1(config)int fa0/ %LINK5CHANGED: Interface FastEther0/, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/, changed state to up R1(configsubif)encapsulation dot1Q 1 R1(configsubif)ip add R1(configsubif)int fa0/ %LINK5CHANGED: Interface FastEther0/, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/, changed state to up R1(configsubif)enca dot 2 R1(configsubif)ip add R1(configsubif)int fa0/ %LINK5CHANGED: Interface FastEther0/, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/, 39 changed state to up R1(configsubif)enca dot 3 R1(configsubif)ip add 配置 STP 協(xié)議 配置前線查看 STP 協(xié)議運行情況, SW1 上顯示如下: SW1show spanningtree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sysidext 1) Address Aging Time 300 Interface Role Sts Cost Type 40 Fa0/1 Desg FWD 19 Shr Fa0/23 Altn BLK 19 Shr Fa0/24 Root FWD 19 Shr VLAN0002 Spanning tree enabled protocol ieee Root ID Priority 32770 Address Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32770 (priority 32768 sysidext 2) Address Aging Time 300 Interface Role Sts Cost Type 41 Fa0/1 Desg FWD 19 Shr Fa0/2 Desg FWD 19 Shr Fa0/23 Altn BLK 19 Shr Fa0/24 Root FWD 19 Shr VLAN0003 Spanning tree enabled protocol ieee Root ID Priority 32771 Address Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32771 (priority 32768 sysidext 3) Address Aging Time 300 Interface Role Sts Cost Type Fa0/1 Desg FWD 19 Shr 42 Fa0/3 Desg FWD 19 Shr Fa0/23 Altn BLK 19 Shr Fa0/24 Root FWD 19 Shr 從上面的輸出可以看到,交換機上默認運行的是 PVST+,在 VLAN VLAN和VLAN3 中, SW1 都不是跟交換機,交換機上使用了擴展的 systemID,systemID等于每個 VLAN 的編號。 網(wǎng)絡中只有兩臺交換機,既然 SW1不是根交換機,那么跟交換機是 SW2。 那么接下來配置 ACL 訪問控制列表。 顯示如圖 52 45 圖 52 測試 Inter 部分連通性 NAT 的驗證 在 PC PC PC PC4 上 PingWeb 服務器的 IP 地址,顯示如圖 53: 46 圖 53 PC1 與 Web 的連通性 在 路由器 R1 上使用“ show ipnat translations”命令,查看路由器 R1 上配置的靜態(tài)和產(chǎn)生的動態(tài)轉換條目,如圖 54 所示 圖 54 NAT 顯示 從圖中可以看到, PC1 的私有地址 成功的 轉 轉換成 47 最終實驗拓撲圖如下: 48 總結 本企業(yè)網(wǎng)設計中,我們從交換模塊、 路由器 模塊 兩 個部分進行設計。 交換模塊我們根據(jù)各部門職能不同劃分了 2 個 VLAN,各部門 VLAN 被劃分為多個廣播域,從而有效地控制廣播風暴的發(fā)生,以及使網(wǎng)絡的拓撲結構變得非常靈活的優(yōu)點外,通過啟動三層交換機路由功能同時設置 ACL,還可以用于控制網(wǎng)絡中不同部門間 的互訪 。通過設置路由器的 ACL,限制 Inter 對企業(yè)內(nèi)部網(wǎng)的訪問,增強了網(wǎng)絡安全性。 Keith W. Ross,陳鳴譯,計算機網(wǎng)絡 — 自頂向下方法(第 4 版),北京:機械工業(yè)出版社, 2021。 李立軍,交換機 .路由器 .防火墻,電子工業(yè)出版社, 2021。 5. 謝希仁,計算機網(wǎng)絡(第 5 版),北京:電子工業(yè)出版社, 2021。 7. 銳捷公司路由器、交換機隨機手冊。 , 王兆文譯 , CCNP SWITCH 人民郵電出版社, 2021 , 復 俊杰譯 CCNP TSHOOT 人民郵電出版社, 2021 ,王兆文譯 CCNP ROUTE 人民郵電出版社, 2021 50 致謝 在此要感謝我的指導老師 郭輝 老師 對我悉心的指導,感謝老師給我的幫