【正文】
用、 STP 協(xié)議的配置、動態(tài) /靜態(tài)路由協(xié)議的配置、 DHCP 的配置、 NAT 的配置、 PPP 的配置及 ACL 的應(yīng)用。 Web 服務(wù)器: 18 第三章 路由器 模塊 路由器 ( Router)是連接 因特網(wǎng) 中各 局域網(wǎng) 、 廣域網(wǎng) 的設(shè)備,它會根據(jù)信道的情況自動選擇和設(shè)定路由,以最佳路徑,按前后順序發(fā)送 信號 的設(shè)備。這一區(qū)別決定了 路由 和交換在移動信息的過程中需使用不同的控制信息,所以兩者實(shí)現(xiàn)各自功能的方式是不同的。 R1 的配置如下: R1(config)int fa0/ R1(configsubif)ipnat inside R1(configsubif)ex 30 R1(config)ipnat inside source static tcp 23 2323 31 第四章 交換機(jī) 模塊 交換( switching) 是按照通信兩端傳輸信息的需要,用人工或設(shè)備自動完成的方法,把要傳輸?shù)男畔⑺偷椒弦蟮南鄳?yīng) 路由 上的技術(shù)的統(tǒng)稱。而 HUB 集線器 就是一種共享設(shè)備, HUB 本身不能識別目的地址,當(dāng)同一 局域網(wǎng) 內(nèi)的 A 主機(jī)給 B 主機(jī)傳輸數(shù)據(jù)時, 數(shù)據(jù)包 在以 HUB 為架構(gòu)的網(wǎng)絡(luò)上是以廣播方式傳輸?shù)?,由每一臺 終端 通過驗(yàn)證數(shù)據(jù)包頭的地址信息來確定是否接收。 交換機(jī) 基本參數(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 因?yàn)樗伎平粨Q機(jī)默認(rèn)是 VTPServer,所以 SW1 是需要配置 VTP 域名就可以。 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é)議運(yùn)行情況, 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 從上面的輸出可以看到,交換機(jī)上默認(rèn)運(yùn)行的是 PVST+,在 VLAN VLAN和VLAN3 中, SW1 都不是跟交換機(jī),交換機(jī)上使用了擴(kuò)展的 systemID,systemID等于每個 VLAN 的編號。 那么接下來配置 ACL 訪問控制列表。 交換模塊我們根據(jù)各部門職能不同劃分了 2 個 VLAN,各部門 VLAN 被劃分為多個廣播域,從而有效地控制廣播風(fēng)暴的發(fā)生,以及使網(wǎng)絡(luò)的拓?fù)浣Y(jié)構(gòu)變得非常靈活的優(yōu)點(diǎn)外,通過啟動三層交換機(jī)路由功能同時設(shè)置 ACL,還可以用于控制網(wǎng)絡(luò)中不同部門間 的互訪 。 Keith W. Ross,陳鳴譯,計算機(jī)網(wǎng)絡(luò) — 自頂向下方法(第 4 版),北京:機(jī)械工業(yè)出版社, 2021。 5. 謝希仁,計算機(jī)網(wǎng)絡(luò)(第 5 版),北京:電子工業(yè)出版社, 2021。 , 王兆文譯 , CCNP SWITCH 人民郵電出版社, 2021 , 復(fù) 俊杰譯 CCNP TSHOOT 人民郵電出版社, 2021 ,王兆文譯 CCNP ROUTE 人民郵電出版社, 2021 50 致謝 在此要感謝我的指導(dǎo)老師 郭輝 老師 對我悉心的指導(dǎo),感謝老師給我的幫