路由与WAN技术篇试验.docx
《路由与WAN技术篇试验.docx》由会员分享,可在线阅读,更多相关《路由与WAN技术篇试验.docx(14页珍藏版)》请在冰豆网上搜索。
路由与WAN技术篇试验
一.路由试验
实验目标:
(1)配置直连路由
(2)配置静态路由或默认路由
(3)配置RIP路由协议
(4)配置EIGRP路由协议
(5)配置OSPF路由协议
实验操作步骤:
(依据拓扑图)
(1)配置直连路由
Router(config)#hostnameR1
R1(config)#intf0/0
R1(config-if)#ipadd10.0.0.1255.0.0.0
R1(config-if)#nosh
R1(config-if)#exit
R1(config)#intserial0/0/0
R1(config-if)#ipadd40.0.0.1255.0.0.0
R1(config-if)#nosh
Router(config)#hostnameR2
R2(config)#intf0/0
R2(config-if)#ipadd20.0.0.1255.0.0.0
R2(config-if)#nosh
R2(config-if)#exit
R2(config)#intserial0/0/0
R2(config-if)#ipadd40.0.0.2255.0.0.0
R2(config-if)#clockrate64000
R2(config-if)#nosh
R2(config)#intserial0/0/1
R2(config-if)#ipadd50.0.0.1255.0.0.0
R2(config-if)#nosh
Router(config)#hostnameR3
R3(config)#intf0/0
R3(config-if)#ipadd30.0.0.1255.0.0.0
R3(config-if)#nosh
R3(config-if)#exit
R3(config)#intserial0/0/0
R3(config-if)#ipadd50.0.0.2255.0.0.0
R3(config-if)#clockrate64000
R3(config-if)#nosh
(2)配置静态路由或默认路由
R1(config)#iproute20.0.0.0(自己网段)255.0.0.040.0.0.2(目标地址)
R1(config)#iproute30.0.0.0255.0.0.040.0.0.2
R1(config)#iproute50.0.0.0255.0.0.040.0.0.2
R2(config)#iproute10.0.0.0255.0.0.040.0.0.1
R2(config)#iproute30.0.0.0255.0.0.050.0.0.2
R3(config)#iproute0.0.0.00.0.0.050.0.0.1
R3(config)#iproute0.0.0.00.0.0.050.0.0.1
R3(config)#iproute0.0.0.00.0.0.050.0.0.1
(3)配置RIP路由协议
R1(config)#routerrip
R1(config-router)#(version2)自动汇总的问题
R1(config-router)#network10.0.0.0
R1(config-router)#network40.0.0.0
R2(config)#routerrip
R2(config-router)#network20.0.0.0
R2(config-router)#network40.0.0.0
R2(config-router)#network50.0.0.0
R1(config)#routerrip
R1(config-router)#network30.0.0.0
R1(config-router)#network50.0.0.0
(3)配置EIGRP路由协议
R1(config)#routereigrp10
R1(config-router)#network10.0.0.0(0.0.0.255)
R1(config-router)#network40.0.0.0(0.0.0.255)
R2(config)#routereigrp10
R2(config-router)#network20.0.0.0(0.0.0.255)
R2(config-router)#network40.0.0.0(0.0.0.255)
R2(config-router)#network50.0.0.0(0.0.0.255)
R3(config)#routereigrp10
R3(config-router)#network30.0.0.0(0.0.0.255)
R3(config-router)#network50.0.0.0(0.0.0.255)
(4)配置OSPF路由协议
R1(config)#routerospf10
R1(config-router)#network10.0.0.00.0.0.255area0
R1(config-router)#network40.0.0.00.0.0.255area0
R2(config)#routerospf10
R2(config-router)#network20.0.0.00.0.0.255area0
R2(config-router)#network40.0.0.00.0.0.255area0
R2(config-router)#network50.0.0.00.0.0.255area0
R3(config)#routerospf10
R3(config-router)#network30.0.0.00.0.0.255area0
R3(config-router)#network50.0.0.00.0.0.255area0
二.ACL配置
实验目标:
(1)在路由器上创建标准ACL
实验步骤:
(1)R1(config)#routereigrp1
R1(config-router)#network10.1.1.00.0.0.255
R1(config-router)#network172.16.1.00.0.0.255
R1(config-router)#network192.168.12.0
R1(config-router)#noauto-summary
R2(config)#routereigrp1
R2(config-router)#network2.2.2.00.0.0.255(loopback)
R2(config-router)#network192.168.12.0
R2(config-router)#network192.168.23.0
R2(config-router)#noauto-summary
R2(config)#access-list1deny172.16.1.00.0.0.255
R2(config)#access-list1permitany
R2(config)#interfaceSerial0/0/0
R2(config-if)#ipaccess-group1in
R2(config)#access-list2permit172.16.3.1
R2(config-if)#linevty04
R2(config-line)#access-class2in
R2(config-line)#passwordcisco
R2(config-line)#login
R3(config)#routereigrp1
R3(config-router)#network172.16.3.00.0.0.255
R3(config-router)#network192.168.23.0
R3(config-router)#noauto-summary
本实验拒绝PC2所在网段访问路由器R2,同时只允许主机PC3访问路由器R2的TELNET服务。
整个网络配置EIGRP保证IP的连通性。
实验目标:
(2)在路由器上创建扩展ACL
(2)实验步骤:
R1(config)#access-list100permittcp172.16.1.00.0.0.255host172.16.3.1eqwww
R1(config)#access-list100permittcp172.16.1.00.0.0.255host2.2.2.2eqtelnet
R1(config)#interfaceg0/0
R1(config-if)#ipaccess-group100in
R3(config)#access-list101denyicmp172.16.3.00.0.0.255host2.2.2.2
R3(config)#access-list101denyicmp172.16.3.00.0.0.255host192.168.12.2
R3(config)#access-list101permitipanyany
R3(config)#interfaceg0/0
R3(config-if)#ipaccess-group101in
三.NAT配置
(1)实验目标:
静态NAT配置
实验步骤:
R1(config)#ipnatinsidesourcestatic192.168.1.1202.96.1.3
R1(config)#interfaceg0/0
R1(config-if)#ipnatinside
R1(config)#interfaces0/0/0
R1(config-if)#ipnatoutside
R1(config)#routerrip
R1(config-router)#version2
R1(config-router)#network202.96.1.0
R1(config-router)#noauto-summary
R2(config)#routerrip
R2(config-router)#version2
R2(config-router)#network202.96.1.0
R2(config-router)#network2.0.0.0(loopback)
R2(config-router)#noauto-summary
(2)实验目标:
动态NAT
实验步骤:
R1(config)#ipnatpoolNAT202.96.1.3202.96.1.100netmask255.255.255.0
R1(config)#access-list1permit192.168.1.00.0.0.255
R1(config)#ipnatinsidesourcelist1poolNAT
R1(config)#interfaceg0/0
R1(config-if)#ipnatinside
R1(config-if)#interfaces0/0
R1(config-if)#ipnatoutside
(3)实验目标:
PAT
实验步骤:
R1(config)#ipnatpoolNAT202.96.1.3202.96.1.100netmask255.255.255.0
R1(config)#access-list1permit192.168.1.00.0.0.255
R1(config)#ipnatinsidesourcelist1poolNAToverload
R1(config)#interfaceg0/0
R1(config-if)#ipnatinside
R1(config-if)#interfaces0/0
R1(config-if)#ipnatoutside
四.WAN实验
(1)实验目标:
配置HDLC和PPP封装
实验步骤:
(依据拓扑图)
R1(config)#ints0/0/0
R1(config-if)#ipaddress192.168.1.1255.255.255.0
R1(config-if)#noshutdown
R2(config)#ints0/0/0
R2(config-if)#ipaddress192.168.1.2255.255.255.0
R2(config-if)#clockrate128000
R2(config-if)#noshutdown
R1(config)#ints0/0/0
R1(config-if)#encapsulationppp
R2(config)#ints0/0/0
R2(config-if)#encapsulationppp
(2)实验目标:
CHAP验证
实验步骤:
(依据上拓扑图)
R1(config)#usernameR2passwordhello
R2(config)#usernameR1passwordhello
R1(config)#ints0/0/0
R1(config-if)#ipaddress192.168.1.1255.255.255.0
R1(config-if)#encapsulationppp
R1(config-if)#pppauthenticationchap
R1(config-if)#noshutdown
R2(config)#ints0/0/0
R2(config-if)#ipaddress192.168.1.2255.255.255.0
R2(config-if)#clockrate128000
R2(config-if)#encapsulationppp
R2(config-if)#pppauthenticationchap
R2(config-if)#noshutdown
实验目标:
PAP验证
实验步骤:
R1(config)#ints0/0/0
R1(config-if)#ipaddress192.168.1.1255.255.255.0
R1(config-if)#encapsulationppp
R1(config-if)#ppppapsent-usernameR1password123456
R1(config-if)#pppauthenticationpap
R1(config)#usernameR2password654321
R2(config)#ints0/0/0
R2(config-if)#ipaddress192.168.1.2255.255.255.0
R2(config-if)#encapsulationppp
R2(config-if)#ppppapsent-usernameR2password654321
R2(config-if)#pppauthenticationpap
R2(config)#usernameR1password123456
(3)实验目标:
FR配置
实验步骤:
(依据拓扑图)
1.动态映射
R1(config)#ints0/0/0
R1(config-if)#ipaddress192.168.1.1255.255.255.0
R1(config-if)#encapsulationframe-relay
R1(config-if)#noshutdown
R2(config)#ints0/0/0
R2(config-if)#ipaddress192.168.1.2255.255.255.0
R2(config-if)#encapsulationframe-relay
R2(config-if)#noshutdown
R3(config)#ints0/0/0
R3(config-if)#ipaddress192.168.1.3255.255.255.0
R3(config-if)#encapsulationframe-relay
R3(config-if)#noshutdown
2.静态映射
R1(config)#ints0/0/0
R1(config-if)#noframe-relayinverse-arp
R1(config-if)#frame-relaymapip192.168.1.2102broadcast
R1(config-if)#frame-relaymapip192.168.1.3103broadcast
R2(config)#ints0/0/0
R2(config-if)#noframe-relayinverse-arp
R2(config-if)#frame-relaymapip192.168.1.1201broadcast
R3(config)#ints0/0/0
R3(config-if)#noframe-relayinverse-arp
R3(config-if)#frame-relaymapip192.168.1.1301broadcast
3.点到点子接口
R1(config)#interfaceserial0/0/0
R1(config-if)#noipaddress
R1(config-if)#encapframe-relay
R1(config-if)#noframe-relayinverse-arp
R1(config-if)#noshutdown
R1(config)#ints0/0/0.2point-to-point
R1(config-subif)#ipaddress192.168.2.1255.255.255.0
R1(config-subif)#frame-relayinterface-dlci102
R1(config)#ints0/0/0.3point-to-point
R1(config-subif)#ipaddress192.168.3.1255.255.255.0
R1(config-subif)#frame-relayinterface-dlci103
R2(config)#ints0/0/0
R2(config-if)#encapframe-relay
R2(config-if)#noframe-relayinverse-arp
R2(config-if)#ipaddress192.168.2.2255.255.255.0
R2(config-if)#frame-relaymapip192.168.2.1201broadcast
R3(config)#ints0/0/0
R3(config-if)#encapframe-relay
R3(config-if)#noframe-relayinverse-arp
R3(config-if)#ipaddress192.168.3.2255.255.255.0
R3(config-if)#frame-relaymapip192.168.3.1301broadcast
4.点到多点子接口
R1(config)#interfaceserial0/0/0
R1(config-if)#noipaddress
R1(config-if)#encapframe-relay
R1(config-if)#noframe-relayinverse-arp
R1(config-if)#noshutdown
R1(config)#ints0/0/0.2multipoint
R1(config-subif)#ipaddress192.168.2.1255.255.255.0
R1(config-subif)#frame-relaymapip192.168.2.2102broadcast
R1(config-subif)#frame-relaymapip192.168.2.3103broadcast
R2(config)#interfaceserial0/0/0
R2(config-if)#ipaddress192.168.2.2255.255.255.0
R2(config-if)#encapsulationframe-relay
R2(config-if)#noframe-relayinverse-arp
R2(config-if)#frame-relaymapip192.168.2.1201broadcast
R2(config-if)#noshutdown
R3(config)#interfaceserial0/0/0
R3(config-if)#ipaddress192.168.2.3255.255.255.0
R3(config-if)#encapsulationframe-relay
R3(config-if)#noframe-relayinverse-arp
R3(config-if)#frame-relaymapip192.168.2.1301broadcast
R3(config-if)#noshutdown