網(wǎng)段和vlan在交換機中的關系.doc_第1頁
網(wǎng)段和vlan在交換機中的關系.doc_第2頁
網(wǎng)段和vlan在交換機中的關系.doc_第3頁
網(wǎng)段和vlan在交換機中的關系.doc_第4頁
網(wǎng)段和vlan在交換機中的關系.doc_第5頁
已閱讀5頁,還剩18頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

第一章 交換機與VLAN一、 創(chuàng)建VLAN的兩種方法n 在進入配置狀態(tài)下生成VLAN 20SwitchenSwitch#conf tSwitch(config)#vlan 20Switch(config-vlan)#name test20Switch(config-vlan)#endSwitch#show vlan 20n 在enable狀態(tài)下生成VLAN 20SwitchenSwitch#vlan databaseSwitch(vlan)#vlan 20 name test20Switch(vlan)#exitSwitch#show vlan 20二、 刪除VLAN的兩種方法n 在進入配置狀態(tài)下刪除VLAN 20SwitchenSwitch#conf tSwitch(config)#no vlan 20Switch(config)#endSwitch#show vlan briefn 在vlan database進入VLAN狀態(tài)下刪除VLAN 20SwtichenSwitch#vlan databaseSwitch(vlan)#no vlan 20 name test20Switch(vlan)#exitSwitch#show vlan brief三、 在VLAN中添加和刪除端口n 把交換機F0/1端口分配到VLAN 20中SwitchenSwitch#conf tSwitch(config)#interface f0/1Switch(config-if)#swichport mode accessSwitch(config-if)#switchport access vlan20Switch(config-if)endSwitch#show interface f0/1 switchport n 把交換機F0/1端口從VLAN 20中刪除SwtichenSwitch#conf tSwitch(config)#interface f0/1Switch(config-if)#no switchport access vlan 20Switch(config-if)#endSwitch#show vlan brief 第二章 跨交換機的VLAN通訊一、 在交換機端口上配置Trunkn 在交換機端口F0/2上配置TrunkSwitchenSwitch#conf tSwitch(config)#interface f0/2Switch(config-if)#switchport mode trunkSwitch(config-if)#endSwitch#show interface f0/2 switchport二、 從Trunk中添加和刪除VLANn 在端口F0/2的Trunk中增加VLAN 20SwitchenSwitch#conf tSwitch(config)#interface f0/2Switch(config-if)#switchport trunk allowed vlan add 20 Switch(config-if)#endSwitch#show interface f0/2 switchportn 在端口F0/2的Trunk中刪除VLAN 20SwitchenSwitch#conf tSwitch(config)# interface f0/2Switch(config-if)#switchport trunk allowed vlan remove 20Switch(config-if)#endSwitch#show interface f0/2 switchport三、 以太通道的配置n 把交換機的端口F0/1-F0/3綁定成ChannelSwitchenSwitch#conf tSwitch(config)#interface range f0/1 3Switch(config-if)#channel-group 1 mode onSwitch(config-if)#endSwitch#show etherchannel 1 summaryn 把交換機的端口F0/1和F0/3、F0/5綁定成ChannelSwitchenSwitch#conf tSwitch(config)#interface range f0/1 , f0/3 , F0/5Switch(config-if)#channel-group 1 mode onSwitch(config-if)#endSwitch#show etherchannel 1 summary 第三章 VLAN的Trunk協(xié)議(VTP)一、 創(chuàng)建和VTP域n 給交換機分配一個域名,域名為testSwitchenSwitch#conf tSwitch(config)#vtp domain testSwitch(config)#endSwitch#show vtp status二、 配置VTP模式n 在全局配置模式下,將模式修改為server/client/transpatentSwitchenSwitch#conf tSwitch(config)#vtp mode server/client/transpatentSwitch(config)#endSwitch#show vtp status三、 配置VTP的安全n 在全局配置模式下,為VTP域設置口令,口令設置為ciscoSwitchenSwitch#conf tSwitch(config)#vtp password ciscoSwitch(config)#endSwitch#show vtp statusn 刪除VTP域口令SwitchenSwitch#conf tSwitch(config)#no vtp password ciscoSwitch(config)#endSwitch#show vtp status四、 配置VTP的修剪和版本n 在全局配置模式下,為VTP域配置VTP修剪和版本SwitchenSwitch#conf tSwitch(config)#vtp pruningSwitch(config)#vtp version 2Switch(config)#endSwitch#show vtp statusn 關閉修剪和版本,配置如下SwitchenSwitch#conf tSwitch(config)#no vtp pruningSwitch(config)#no version 2Switch(config)#endSwitch(config)#show vtp status五、 在VTP域內(nèi)增加和減少交換機n 在域中增加一臺交換機,這臺交換機的配置如下SwitchenSwitch#conf tSwitch(config)#erase startup-configSwitch(config)#endSwitch#reloadSwitchenSwitch#conf tSwitch(config)#vtp domain testSwitch(config)#vtp password ciscoSwitch(config)#endSwitch#show vtp statusn 在域中減少一臺交換機,只要把域名改成其他的就行,比如benetSwitchenSwitch#conf tSwitch(config)#vtp domain benetSwitch(config)#endSwitch#show vtp status 第五章 VLAN與生成樹和生成樹的配置一、 啟動生成樹協(xié)議n 在VLAN 20上啟動生成樹協(xié)議SwitchenSwitch#conf tSwitch(config)#spanning-tree vlan 20Switch(config)#endSwitch#show spanning-tree summary二、人為建立根網(wǎng)橋n 將交換機A手工配置成根網(wǎng)橋SwitchAenSwitchA#conf tSwitchA(config)#spanning-tree vlan 20 root primarySwitchA(config)#endSwitchA#show spanning-tree vlan 20 detail三、修改端口成本n 將交換機A的F0/1端口的端口成本配置為50SwitchAenSwitchA#conf tSwitchA(config)#interface f0/1SwitchA(config)#spanning-tree vlan 20 cost 50SwitchA(config)#endSwitchA#show spanning-tree interface f0/1 detail四、修改端口優(yōu)先級n 將交換機A的F0/1端口的端口優(yōu)先級設置為80。缺省為128。SwitchAenSwitchA#conf tSwitchA(config)#interface f0/1SwitchA(config)#spanning-tree vlan 20 port-priority 80SwitchA(config)#endSwitchA#show spanning-tree interface f0/1 detail五、修改生成樹計時器n 在交換機A的VLAN 20上將STP的Hello時間更改為3秒,forward時間更改為10秒,將最大老化時間更改為15秒SwitchAenSwitchA#conf tSwitchA(config)#spanning-tree vlan 20 hello-time 3SwitchA(config)#spanning-tree vlan 20 forward-time 10SwitchA(config)#spanning-tree vlan 20 max-age 15六、速端口的配置n 將交換機A的F0/3配置為速端口SwitchAenSwitchA#conf tSwitchA(config)#interface f0/3SwitchA(config-if)#spanning-tree portfastSwitchA(config-if)#endSwitch#show spanning-tree interface f0/3 detail七、上行速鏈路的配置n 在交換機B上啟用上行速鏈路SwitchBenSwitchB#conf tSwitchB(config)#spanning-tree uplinkfastSwitchB(config)#endSwitchB#show spanning-tree summary 第六章 路由基礎(1)一、 簡單靜態(tài)路由n 在交換機A和交換機C上設置靜態(tài)路由圖1 SwitchAen SwitchA#conf t SwitchA(config)#ip route 192.168.10.64 255.255.255.224 192.168.10.34 SwitchA(config)#end SwitchCen SwitchC#conf t SwitchC(config)#ip route 192.168.10.32 255.255.255.224 192.168.10.65 SwitchC(config)#end二、 匯總路由圖2n 使用匯總路由,路由D,A,C的靜態(tài)路由設置如下RouteDenRouteD#conf tRoutreD(config)#ip route 192.168.1.0 255.255.255.0 192.168.1.193RouterD(config)#ip route 10.4.0.0 255.255.255.0 192.168.1.193RouteAenRouteA#conf tRouteA(config)#ip route 192.168.1.192 255.255.255.224 192.168.1.66RouteA(config)#ip route 10.0.0.0 255.0.0.0 192.168.1.66RouteCenRouteC#conf tRouteC(config)#ip route 192.0.0.0 255.0.0.0 10.4.6.1RouteC(config)#ip route 10.1.0.0 255.255.0.0 10.4.6.1三、 選擇路由n 參照圖2,路由A與C直接相連,所有從A到網(wǎng)絡10.0.0.0的數(shù)據(jù)包都使用這條新的路徑。路由A的配置如下RouteAenRouteA#conf tRouteA(config)#ip route 192.168.1.192 255.255.255.224 192.168.1.66RouteA(config)#ip route 10.0.0.0 255.0.0.0 192.168.1.34RouteA(config)#ip route 10.1.0.0 255.255.0.0 192.168.1.66RouteA(config)#ip route 10.4.7.25 255.255.255.255 192.168.1.66四、 浮動路由n 參照圖3,路由D和E的設置如下RouteDenRouteD#conf tRouteD(config)#ip route 192.168.1.0 255.255.255.0 192.168.1.193RouteD(config)#ip route 10.4.0.0 255.255.0.0 192.168.1.193RouteD(config)#ip route 10.1.30.0 255.255.255.0 10.1.10.2RouteD(config)#ip route 10.1.30.0 255.255.255.0 10.1.20.2 50RouteEenRouteE#conf tRouteE(config)#ip route 10.4.0.0 255.255.0.0 10.1.10.1RouteE(config)#ip route 10.4.0.0 255.255.0.0 10.1.20.1 50圖3 RouteE(config)#ip route 10.1.5.0 255.255.255.0 10.1.10.1 RouteE(config)#ip route 10.1.5.0 255.255.255.0 10.1.20.1 50 RouteE(config)#ip route 192.168.0.0 255.255.0.0 10.1.10.1 RouteE(config)#ip route 192.168.0.0 255.255.0.0 10.1.20.1 50五、 負載均衡n 參照圖3,為了實現(xiàn)靜態(tài)路由的負載均衡,路由D和E的配置如下RouteDenRouteD#conf tRouteD(config)#ip route 192.168.1.0 255.255.255.0 192.168.1.193RouteD(config)#ip route 10.4.0.0 255.255.0.0 192.168.1.193RouteD(config)#ip route 10.1.30.0 255.255.255.0 10.1.10.2RouteD(config)#ip route 10.1.30.0 255.255.255.0 10.1.20.2RouteEenRouteE#conf tRouteE(config)#ip route 10.4.0.0 255.255.0.0 10.1.10.1RouteE(config)#ip route 10.4.0.0 255.255.0.0 10.1.20.1RouteE(config)#ip route 10.1.5.0 255.255.255.0 10.1.10.1RouteE(config)#ip route 10.1.5.0 255.255.255.0 10.1.20.1RouteE(config)#ip route 192.168.0.0 255.255.0.0 10.1.10.1RouteE(config)#ip route 192.168.0.0 255.255.0.0 10.1.20.1六、 遞歸表查詢圖4n 參照圖4,以路由A為例,配置如下RouteAenRouteA#conf tRouteA(config)#ip route 10.1.30.0 255.255.255.0 10.1.10.2RouteA(config)#ip route 10.1.10.0 255.255.255.0 192.168.1.194RouteA(config)#ip route 192.168.1.192 255.255.255.224 192.168.1.66 第八章 路由信息協(xié)議-版本1(RIP-V1)一、 RIP的基本配置圖5n 以路由A為例,RIP的設置如下RouteAenRouteA#conf tRouteA(config)#interface loopback0RouteA(config-if)#ip add 10.1.1.1 255.255.255.0RouteA(config-if)#interface S0RouteA(config-if)#ip add 192.1.1.1 255.255.255.0RouteA(config-if)#interface E0RouteA(config-if)#ip add 148.1.1.1 255.255.255.0RouteA(config-if)#exitRouteA(config)#router ripRouteA(config-router)#network 10.0.0.0RouteA(config-router)#network 148.1.0.0RouteA(config-router)#network 192.1.1.0RouteA(config-router)#endRouteA#conf tRouteA(config)#interface S0RouteA(config-if)#no ip slitp-horizon (關閉水平分割)RouteA(config-if)#endRouteA#show ip routeRouteA#debug ip rip (監(jiān)視傳輸?shù)穆酚蛇x擇更新信息)二、 配置Passive端口n 參照圖5,以路由A為例,把路由A的借口S0設置成被動借口,它不發(fā)出任何路由選擇信息,但是接受路由更新信息。配置如下RouteAenRouteA#conf tRouteA(config)#router ip RouteA(config-router)#passive-interface S0三、 單播更新的配置n 參照圖6,路由A指定向相連的路由器B,以單播的形式發(fā)送路由選擇更新信息,配置如下圖6 RouteAen RouteA#conf t RouteA(config)#router rip RouteA(config-router)#passive-interface E0 RouteA(config-router)#neighbor 192.1.1.2四、 不連續(xù)的子網(wǎng)的配置n 不連續(xù)的子網(wǎng),只要把不連續(xù)的接口配置主IP地址和輔助IP地址,就可以通信。以路由A為例。配置如下圖7 RouteAen RouteA#conf t RouteA(config)#interface E0 RouteA(config-if)#ip add 10.33.5.1 255.255.240.0 RouteA(config-if)#interface S0 RouteA(config-if)#ip add 192.168.83.244 255.255.255.0 RouteA(config-if)#ip add 10.33.55.1 255.255.240.0 secondary RouteA(config-if)#end 第九章 路由信息協(xié)議-版本2(RIP-V2)一、 RIP-V2協(xié)議的基本配置n 參照圖5,以路由A為例。運行V2。具體配置如下RouteAenRouteA#conf tRouteA(config)#router rip RouteA(config)#version 2二、 RIP-V2與V1相結合n 參照圖5,路由器B運行V2,而路由器A和C運行V1.路由器A和C的配置都只啟動V1,路由器B的配置如下RouterBenRouteB#conf tRouteB(config)#interface S0RouteB(config-if)#ip add 192.1.1.2 255.255.255.0RouteB(config-if)#ip rip send version 1RouteB(config-if)#ip rip receive vesion 1RouteB(config-if)#interface S1RouteB(config-if)#ip add 193.1.1.1 255.255.255.0RouteB(config-if)#ip rip send version 1RouteB(config-if)#ip rip receive vesion 1RouteB(config-if)#exitRouteB(config)#router rip RouteB(config-router)#version 2三、 不連續(xù)的子網(wǎng)和無類路由n 如下圖所示。B類網(wǎng)絡172.16.0.0的兩個子網(wǎng)沒有連續(xù)上,V2在主網(wǎng)絡邊界上缺省進行路由匯總,為了關閉路由匯總功能一允許被通告的子網(wǎng)通過主網(wǎng)絡邊界,路由A、B、C都關閉自動匯總,以路由器A為例。配置如下圖8RouteAenRouteA#conf tRouteA(config)#router ripRouteA(config-router)#no auto-summary 第十二章配置OSPF路由協(xié)議Chapter 10 12OSPF基本設置:(參照下面的拓撲圖)1/299/2910/29A192. 168. 30. 0Area 11/302/30192. 168. 20. 0192. 168. 10. 01/272/27BCD33/2865/26Area 0Area 192. 168. 10. 0路由器A的配置(在路由器A上啟動一個ospf進程 10)RouterA(config)# router ospf 10 (指定路由器上運行ospf協(xié)議的接口和它們所在的區(qū)域,其中接口范圍是使用一隊地址和反向掩碼)RouterA(config-router)# network 0.0.0.0 255.255.255.255 area 1 路由器B的配置RouterB(config)# router ospf 20 RouterB(config-router)# network 192.168.30.0 0.0.0.255 area 1RouterB(config-router)# network 192.168.20.0 0.0.0.255 area 0 路由器C的配置RouterC(config)# router ospf 30 RouterC(config-router)# network 192.168.20.0 0.0.0.3 area 0RouterC(config-router)# network 192.168.10.0 0.0.0.31 area 192.168.10.0路由器D的配置RouterD(config)# router ospf 40RouterD(config-router)# network 192.168.10.2 0.0.0.0 area 192.168.10.0RouterD(config-router)# network 192.168.10.33 0.0.0.0 area 192.168.10.0OSPF中把某一區(qū)域配置成STUB區(qū)域(STUB區(qū)域是末梢區(qū)域,末梢區(qū)域的特點是只有1、2、3類的LSA,由于區(qū)域1里面沒有始發(fā)類型5的LSA,因而區(qū)域1可以配置成為一個末梢區(qū)域;一個末梢區(qū)域可以通過在ospf進程中增加命area stub來完成,如上圖所示可以將區(qū)域 1配置為末梢區(qū)域,要在包含在區(qū)域1中的接口所在的路由器上配置.)路由器A的配置RouterA(config)# router ospf 10 RouterA(config-router)# network 0.0.0.0 255.255.255.255 area 1 (在路由器A上聲明區(qū)域 1 為末梢區(qū)域)RouterA(config-router)# area 1 stub路由器B的配置RouterB(config)# router ospf 20 RouterB(config-router)# network 192.168.30.0 0.0.0.255 area 1(在路由器A上聲明區(qū)域 1 為末梢區(qū)域)RouterB(config-router)# area 1 stub(在路由器A和B之間的串行鏈路的代價是64,實際路由器A到達缺省路由的總代價是64+1=65,這里的缺省代價可以通過命令area default-cost來改變,按照下面語句改變后,路由器A到達缺省路由的總代價是64+20=84)RouterB(config-router)# area 1 default-cost 20RouterB(config-router)# network 192.168.20.0 0.0.0.255 area 0 OSPF中把某一區(qū)域配置成TOTALLY STUBBY的區(qū)域(TOTALLY STUBBY的區(qū)域是完全末梢區(qū)域的意思,它的特點在該區(qū)域內(nèi)只存在1和2類的LSA。如上面的拓撲圖所示,可以將區(qū)域1配置成一個完全末梢區(qū)域,完全末梢區(qū)域的配置可以通過命令area stub的末端加關鍵字no-summary來實現(xiàn)。這一步的配置操作只有在ABR路由器上才是必需的,在內(nèi)部路由器上使用標準的末梢區(qū)域配置就可以了。所以要將區(qū)域 1配置成完全末梢區(qū)域,只需在路由器B 上進行配置)路由器B的配置RouterB(config)# router ospf 20 RouterB(config-router)# network 192.168.30.0 0.0.0.255 area 1RouterB(config-router)# network 192.168.20.0 0.0.0.255 area 0 RouterB(config-router)# area 1 stub no-summaryOSPF中把某一區(qū)域配置成NOT-SO-STUBBY的區(qū)域(NSSA配置)(參考下面的拓撲圖).Area 11/302/30192. 168. 20. 0192. 168. 10. 01/272/27BCD33/2865/26Area 0Area 192. 168. 10. 0172.19.35.1/25172. 19. 35. 15/25F192. 168. 60.0192.168.70.0.192. 168. 105.0(從圖中可以看出,路由器D接受了通過RIP從路由器F學習到的路由,并把這寫路由重新分配到OSPF域中。這一步操作使路由器D成為一個ASBR路由器,更擴展一步說,也使區(qū)域192.168.10.0無法滿足成為一個末梢區(qū)域或完全末梢區(qū)域的條件了。然后,在這個區(qū)域里并不需要AS外部LSA從骨干區(qū)域通告到這個區(qū)域。因此,可以把區(qū)域192.168.10.0配置成一個NSSA,需要在路由器上配置。)路由器D的配置RouterD(config)# interface Ethernet0(在路由器D上配置輔助地址)RouterD(config-if)# ip address 172.19.35.15 255.255.255.128 secondaryRouterD(config-if)# ip address 192.168.10.33 255.255.255.240RouterD(config)# router ospf 40(當給啟用了ospf協(xié)議的接口同時啟用rip協(xié)議時,那么該接口將從rip自主系統(tǒng)中學習到rip路由,并將這些rip路由重新分配到ospf域中,因為rip和ospf的度量代價不同,所以此時需要給這些rip路由指定一個ospf的度量代價,例如為10,這是通過命令redistribute rip metric 10來實現(xiàn)的)RouterD(config)# redistribute rip metric 10RouterD(config-router)# network 192.168.10.2 0.0.0.0 area 192.168.10.0RouterD(config-router)# network 192.168.10.33 0.0.0.0 area 192.168.10.0(下面的這一步代表將192.168.10.0區(qū)域配置成為NSSA區(qū)域)RouterD(config-router)# area 192.168.10.0 nssaRouterD(config-router)# endRouterD(config)# router ripRouterD(config-router)# network 172.19.0.0OSPF中配置地址匯總(參考下面的拓撲圖)ABCD10. 8. 1. 2 / 2410. 8. 1. 1 / 2410. 0. 0. 0 / 1610. 1. 0. 0 / 1610. 2. 0. 0 / 1610. 3. 0. 0 / 1610. 4. 0. 0 / 1610. 5. 0. 0 / 1610. 6. 0. 0 / 1610. 7. 0. 0 / 16Area 15Area 0Area 25172. 20. 1. 1 / 30172. 20. 1. 2/ 30172. 16. 27. 1 / 25172. 20. 1. 5/ 30172. 20. 1. 6 30172. 16. 27. 195/ 29(為了減少ASR路由的負擔,地址匯總通過減少泛洪的LSA數(shù)量來達到節(jié)省資源的目的,另外它還可以通過屏蔽一些網(wǎng)絡不穩(wěn)定的細節(jié)來節(jié)省資源。例如,一個忽好忽壞的不穩(wěn)定的子網(wǎng)在它每一次狀態(tài)發(fā)生轉變的時候,都會引起LSA在整個互聯(lián)網(wǎng)絡中進行泛洪。但是,如果這個子網(wǎng)地址被匯總包含在一個匯總地址中的話,那么單獨的子網(wǎng)和它的穩(wěn)定性就不再被通告出去了。 在Cisco的路由器上可以執(zhí)行兩種類型的地址匯總:區(qū)域間匯總和外部路由匯總。區(qū)域間匯總(Inter-area summarization)指區(qū)域之間的地址匯總,這種類型的匯總通常配置在ABR路由器上,所以應該在路由器A和B上進行配置)路由器A的配置RouterA(config)# router ospf 1 RouterA(config-router)# network 10.0.0.0 0.7.255.255 area 15RouterA(config-router)# network 10.8.0.0 0.7.255.255 area 0 (將Area 15 中各個子網(wǎng)匯總為一個網(wǎng)絡地址)RouterA(config-router)# area 15 range 10.0.0.0 255.248.0.0 路由器B的配置RouterB(config)# router ospf 1 RouterB(config-router)# network 10.8.0.0 0.7.255.255 area 0RouterB(config-router)# network 172.20.0.0 0.0.255.255 area 25(將Area 25 中各子網(wǎng)匯總為一個網(wǎng)絡地址)RouterB(config-router)# area 25 range 172.16.0.0 255.240.0.0OSPF中配置VIRTUAL LINKS(參考下面的拓撲圖)E0: 192.1.1.1/24AArea 02/30L0: 2. 2. 2. 2/24E0: 152. 1. 1. 1/24BArea 1Area 4L0: 1.1.1.1 /24E0: 192.1.1.1/24S0: 193.1.1.2/24S0: 193.1.1.1/24L0: 3. 3. 3. 3 /24(虛鏈路總是建立在ABR路由器之間的,至少它們之中有一個ABR路由器是必須和區(qū)域0相連的。在每一臺路由器的OSPF配置里,通過添加area virtual-link命令來配置一條虛鏈路,并指定了這條虛鏈路要穿過的區(qū)域和這條鏈路遠端ABR路由器 ID。顯然虛鏈路起到鏈路備份的作用,在上述拓撲中可以看出區(qū)域4和區(qū)域0沒有直接相連,區(qū)域1被用作運輸區(qū)來連接區(qū)域4和區(qū)域0。路由器 B 和 C之間配置了一條虛鏈路。)路由器B的配置( 通過配置回環(huán)口IP來保證路由器的ID不易變動,另外,虛鏈路的配置過程中需要指定路由器ID)RouterB(config)# interface Loopback0RouterB(config-if)# ip address 2.2.2.2 255.255.255.0RouterB(config-if)#endRouterB(config)# interface Ethernet0RouterB(config-if)# ip address 192.1.1.2 255.255.255.0RouterB(config-if)#endRouterB(config)# interface Serial 0RouterB(config-if)# ip address 193.1.1.2 255.255.255.0RouterB(config-if)#endRouterB(config)# router ospf 20 RouterB(config-router)# network 2.2.2.2 0 0.0.0.0 area 0RouterB(config-router)# network 192.1.1.0 0.0.0.255 area 0 RouterB(config-router)# network 193.1.1.0 0.0.0.255 area 1(配置虛鏈路說明該鏈路經(jīng)過的區(qū)域和遠端路由器ID)RouterB(config-router)# area 1 virtual-link 3.3.3.3路由器C的配置配置方法同路由器B的配置類似第十三章熱備份路由協(xié)議一、加入備份組172和制定虛擬IP地址Router(config-if)#standby 172 ip 10.0.0.254二、配置優(yōu)先級Router(config-if)# standby 172 priority 200三、配置占先權Router(config-if)#standby 172 preempt四、配置端口跟蹤Router(config-if)#standby 172 track interface s0/0 100五、調(diào)試Router(config)#debug standby六、檢查狀態(tài)Router(config)#show standby Router(config)#show standby brief七、配置計時器Router(config-if)#standby 172 times 3 10八、驗證Router(config-if)#standby 172 authentication cisco 第十四章 訪問控制列表一、標準ACL創(chuàng)建ACLRouter(config)#access-list 1 deny 172.16.4.13 0.0.0.0Router(config)#access-list 1 permit 172.16.0.0 0.0.255.255Router(config)#access-list 1 permit 0.0.0.0 255.255.255.255應用Router(config)#interface ethernet 0Router(config-if)#ip access-group 1 in二、擴展ACL1、創(chuàng)建ACLRouter(config)#access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21Router(config)#access-list 101 permit ip any any2、應用ACLRouter(config)#interface Ethernet 0Router(config-if)#ip access-group 101 out三、命名ACL1、Router(config)#ip access-list extended cisco2、Router(config ext-nacl)# deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 23Router(config ext-nacl)# permit ip any any3、Router(config)#interface Ethernet 0Router(config-if)#ip access-group cisco out 第十五章 NAT一、靜態(tài)NATRouter(config)#ip nat inside source static 192.168.100.2 61.159.62.130Router(config)#ip nat inside source static 192.168.100.3 61.159.62.131Router(config)#interface serial 0Router(config-if)#ip nat outsideRouter(config)#interface ethernet 0Router(config-if)#ip nat inside二、動態(tài)NATRouter(config)#access-list 1 permit 172.168.100.0 0.0.0.255Router(config)#ip nat pool test0 61.159.62.130 61.159.62.190 255.255.255.192Router(config)#ip nat inside source list 1 pool test0Router(config)#Interface seria

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論