cisco路由技术实验
CISCO路由器PPPoE实验报告

CISCO路由器PPPoE实验报告题⽬:PPPOE实验实验拓扑如下:实验要求:1.在pppoe-client2路由器上使⽤NAT协议,让内部主机能够上⽹2.路由器pppoe-client2和pppoe-client1通过pppoe协议拨号连接pppoe-server服务器,3.在pppoe-server和ISP-router之间使⽤ospf路由选择协议实验⽬的:掌握1.pppoe在路由器上的配置过程2.NAT3.单区域ospf实验步骤:1.使⽤⼩凡模拟器搭建实验环境。
2.2.在pppoe-server 路由器上配置如下PPPoe-server(config-if)#username cisco password cisco 创建⼀个拨号帐号。
PPPoe-server(config)#vpdn enable //启⽤vpdn虚拟私有拨号⽹络协议PPPoe-server(config)#vpdn-group adsl0 //创建⼀个虚拟私有拨号⽹络组,起名为adsl0 PPPoe-server(config-vpdn)#accept-dialin //允许拨⼊改组PPPoe-server(config-vpdn-acc-in)#protocol pppoe //并启⽤pppoe协议%Only one PPPoE VPDN group can be configuredPPPoe-server(config-vpdn-acc-in)#virtual-template 1 //关联⼀个虚拟接⼝PPPoe-server(config-vpdn-acc-in)#exitPPPoe-server(config-vpdn)#pppoe limit per-mac 10 //限制拨号连接的mac数⽬为10PPPoe-server(config)#int f0/0 启⽤物理接⼝PPPoe-server(config-if)#ip add 1.1.1.1 255.255.255.0 配置ip地址PPPoe-server(config-if)#no shutPPPoe-server(config-if)#pppoe enable 并在该物理接⼝下启⽤pppoe协议PPPoe-server(config-if)#int virtual-template1 配置虚拟接⼝PPPoe-server(config-if)#ip address 200.0.0.1 255.255.255.0PPPoe-server(config-if)#peer default ip address pool ad 指定拨⼊端的iP池,名字为ad PPPoe-server(config-if)#pppauthentication chap pap callin 启⽤混合认证⽅式PPPoe-server(config-if)#ppp ipcp dns 202.102.128.68 202.102.134.68 给拨⼊端指派dns PPPoe-server(config-if)#ip local pool vt1 200.0.0.20 200.0.0.254 指定拨⼊端能够使⽤的ip范围PPPoe-server(config)#PPPoe-server(config)#router ospf 10 启⽤ospf路由选择协议PPPoe-server(config-router)#net 200.0.0.0 0.0.0.255 area 0 通告直连⽹络号PPPoe-server(config-router)#net 100.0.0.0 0.0.0.255 area 0PPPoe-server(config-router)#pppoe-server(config)#do sho ip rou ospf 查看ospf路由表5.0.0.0/32 is subnetted, 1 subnetsO 5.5.5.5 [110/11] via 100.0.0.2, 00:03:07, FastEthernet1/0pppoe-server(config)#pppoe-server(config)#do ping 5.5.5.5 测试Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 20/211/364 mspppoe-server(config)#do sho ip rou ospf5.0.0.0/32 is subnetted, 1 subnetsO 5.5.5.5 [110/11] via 100.0.0.2, 00:03:07, FastEthernet1/0pppoe-server(config)#在pppoe-client2上配置如下pppoe-client2(config)#vpdn enable 同上,在路由器作为拨⼊端时也要启⽤vpdn协议pppoe-client2(config)#int f0/0 pppoe-client2(config-if)#no shut 启⽤连接拨号的物理接⼝pppoe-client2(config-if)#*Mar 1 00:19:54.511: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up*Mar 1 00:19:55.511: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up pppoe-client2(config-if)#pppoe enable 同样启⽤pppoe协议pppoe-client2(config-if)#*Mar 1 00:20:56.283: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up*Mar 1 00:20:57.283: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up pppoe-client2(config-if)#pppoe-client dial-pool-number ?<1-255> Dialer pool numberpppoe-client2(config-if)#pppoe-client dial-pool-number 1 定义⼀个拨号池为1pppoe-client2(config-if)#exitpppoe-client2(config)#int dialer0 启⽤拨号接⼝pppoe-client2(config-if)#ip add negotiated ip地址协商pppoe-client2(config-if)#ip mtu 1492 默认mtu为1500由于pppoe包头占⽤8字节pppoe-client2(config-if)#no shutpppoe-client2(config-if)#encapsulation ppp 启⽤封装协议pppoe-client2(config-if)#ppp authentication chap pap callin 指定认证⽅式pppoe-client2(config-if)#ppp chap hostname ciscopppoe-client2(config-if)#ppp chap password ciscopppoe-client2(config-if)#ppp pap sent-username cisco password ciscopppoe-client2(config-if)#dialer pool 1 启⽤拨号池此时拨号⾃动开始连接pppoe-client2(config-if)#ppp ipcp dns request 请求获取dnspppoe-client2(config-if)#exitpppoe-client2(config)#int f0/0pppoe-client2(config-if)#ip add 2.2.2.2 255.255.255.0pppoe-client2(config-if)#no shutpppoe-client2(config-if)#exitpppoe-client2(config)#int f0/0pppoe-client2(config-if)#shutpppoe-client2(config-if)#*Mar 1 00:38:58.891: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down*Mar 1 00:38:59.891: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down pppoe-client2(config-if)#*Mar 1 00:39:55.127: %DIALER-6-UNBIND: Interface Vi2 unbound from profile Di0pppoe-client2(config-if)#*Mar 1 00:39:55.135: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to down pppoe-client2(config-if)# *Mar 1 00:39:56.115: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to down pppoe-client2(config-if)#pppoe-client2(config-if)#pppoe-client2(config-if)#no shutpppoe-client2(config-if)#*Mar 1 00:41:33.659: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up*Mar 1 00:41:34.659: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up pppoe-client2(config-if)#exi*Mar 1 00:41:50.519: %DIALER-6-BIND: Interface Vi2 bound to profile Di0pppoe-client2(config-if)#ex*Mar 1 00:41:50.527: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up pppoe-client2(config-if)#pppoe-client2#^Zpppoe-client2#*Mar 1 00:41:54.491: %SYS-5-CONFIG_I: Configured from console by console*Mar 1 00:41:55.159: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to uppppoe-client2#sho ip int bri 获取到pppoe-server分配的ip地址,拨号成功Interface IP-Address OK? Method Status Protocol FastEthernet0/0 2.2.2.2 YES manual up up Ethernet1/0 unassigned YES unset administratively down down Ethernet1/1 unassigned YES unset administratively down down Ethernet1/2 unassigned YES unset administratively down down Ethernet1/3 unassigned YES unset administratively down down Virtual-Access1 unassigned YES unset up up Virtual-Access2 unassigned YES unset up up Dialer0 200.0.0.20 YES IPCP up up pppoe-client2#ping 200.0.0.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 200.0.0.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 8/175/392 mspppoe-client2#以下是为了内⽹主机能够通过pppoe-client来nat上⽹的配置。
cisco路由器实验报告

cisco路由器实验报告Cisco路由器实验报告引言:在现代网络通信中,路由器是一个至关重要的设备。
它能够将数据包从源地址传输到目的地址,实现网络之间的连接和数据传输。
本实验旨在研究和探索Cisco路由器的功能和应用。
一、Cisco路由器的基本原理Cisco路由器是一种网络设备,它基于OSPF(开放最短路径优先)协议和BGP (边界网关协议)等路由协议工作。
其基本原理是将数据包从一个网络传输到另一个网络,通过查找路由表中的最佳路径来实现。
二、Cisco路由器的配置与管理1. 登录和基本设置通过串口或以太网口与路由器建立连接后,可以通过命令行界面(CLI)或Web 界面登录路由器进行配置和管理。
首次登录需要进行基本设置,如设置主机名、密码、IP地址等。
2. 路由配置路由配置是Cisco路由器的核心功能之一。
通过配置静态路由或动态路由协议,路由器可以学习到网络拓扑,并根据路由表进行数据包转发。
静态路由适用于小型网络,而动态路由协议适用于大型网络。
3. 接口配置路由器的接口配置非常重要,它决定了路由器与其他设备之间的连接方式和速率。
可以通过配置IP地址、子网掩码、MTU(最大传输单元)等参数来进行接口配置。
4. 安全性配置为了保护网络安全,Cisco路由器提供了多种安全功能和配置选项。
例如,可以配置访问控制列表(ACL)来限制特定IP地址的访问,还可以启用SSH(安全外壳协议)来加密远程登录会话。
三、Cisco路由器的高级功能1. VLAN(虚拟局域网)通过配置VLAN,可以将一个物理网络划分为多个逻辑网络,提高网络的灵活性和安全性。
Cisco路由器支持VLAN的创建和管理,可以实现不同VLAN之间的通信。
2. VPN(虚拟专用网络)VPN是一种通过公共网络建立安全连接的技术。
Cisco路由器支持IPSec (Internet协议安全)和SSL(安全套接字层)等VPN协议,可以实现远程办公和跨地域网络连接。
cisco配置实验报告

cisco配置实验报告Cisco配置实验报告1. 实验目的本次实验旨在通过配置Cisco网络设备,实现局域网内主机之间的互联及互访。
通过此实验,我们将深入了解Cisco设备的配置和管理,提高网络管理技能。
2. 实验环境本次实验使用的设备为Cisco Catalyst 2960交换机和Cisco 2811路由器。
交换机用于构建局域网,路由器用于实现不同局域网之间的互联。
3. 实验步骤3.1 网络拓扑规划根据实验要求,我们设计了以下网络拓扑结构:一个核心交换机连接多个分支交换机,每个分支交换机连接多台主机。
核心交换机通过路由器与其他局域网相连。
3.2 配置交换机首先,我们登录到核心交换机的管理界面。
使用默认用户名和密码登录后,我们进入交换机的命令行界面。
3.2.1 VLAN配置为了实现不同局域网之间的隔离,我们需要配置不同的VLAN。
通过以下命令,我们创建了两个VLAN,分别为VLAN 10和VLAN 20:```vlan 10name VLAN10vlan 20name VLAN20```3.2.2 端口配置接下来,我们需要将交换机的端口划分到不同的VLAN中。
通过以下命令,我们将端口1-10划分到VLAN 10,端口11-20划分到VLAN 20:```interface range fastEthernet 0/1-10switchport mode accessswitchport access vlan 10interface range fastEthernet 0/11-20switchport mode accessswitchport access vlan 20```3.3 配置路由器在路由器上,我们需要配置静态路由,将不同局域网之间的流量进行转发。
3.3.1 接口配置首先,我们配置路由器的接口。
通过以下命令,我们将路由器的Fa0/0接口配置为与核心交换机相连的接口:```interface fastEthernet 0/0ip address 192.168.1.1 255.255.255.0```3.3.2 静态路由配置接着,我们配置静态路由,实现不同局域网之间的互通。
cisco实验一

Cisco路由器的启动过程
打开路由器电源时,它首先需要测试它的硬件,包 括内存和接口。下一步就是查找和加载IOS映像, 即路由器操作系统。最后,在路由器可以在网络中 正常工作之前,它需要找到它的配置信息,并使用 它。 如果在打开电源的时候位于路由器控制台,则可以 看见类似下面的信息:(此时,路由器已经从 ROM中加载了引导程序)
实验拓扑图
通过console口访问Cisco路由器
通过console口访问Cisco路由器
通过console口访问Cisco路由器
通过console口访问Cisco路由器
通过console口访问Cisco路由器
基本命令
Router>enable Router#config t Router(config)#hostname RouterA (设置路由器名) RouterA(config)#interface ethernet 0 RouterA(config-if)#description THIS IS INTERFACE E0(配置接口描述 信息) RouterA(config-if)#exit RouterA(config)#banner motd # (配置banner) This is a secure system. Authorized Access ONLY!!! # RouterA(config)#exit RouterA#copy run start (保存配置结果) RouterA#reload ( 路由器重启)
通过Telnet访问Cisco路由器
配置路由器以太网接口 对路由器进行配置以支持Telent访问 在Telnet窗口中监测路由器信息 观察路由器的输出信息
通过Telnet访问Cisco路由器
cisco路由器实验报告

cisco路由器实验报告
《cisco路由器实验报告》
在网络通信领域,路由器是一种非常重要的设备,它可以实现不同网络之间的
数据传输和转发。
而cisco路由器作为全球领先的网络设备制造商,其产品在
市场上有着很高的知名度和影响力。
为了更好地了解和掌握cisco路由器的使
用和性能,我们进行了一系列的实验,并在此进行报告。
首先,我们对cisco路由器进行了基本的配置和连接,包括设置IP地址、子网
掩码、网关等基本网络参数。
在这一步骤中,我们深入了解了cisco路由器的
操作界面和命令行配置方式,对其操作和管理有了更深刻的认识。
其次,我们进行了路由器之间的互联实验,通过配置路由器之间的静态路由和
动态路由协议(如OSPF、EIGRP等),实现了不同网络之间的数据传输和转发。
在这个实验中,我们深入了解了cisco路由器的路由选择算法和路由表的构建
过程,对网络的数据传输和转发有了更深入的了解。
除此之外,我们还进行了一些高级功能的实验,如ACL(访问控制列表)的配
置和应用、NAT(网络地址转换)的配置和应用等。
这些实验让我们更加深入
地了解了cisco路由器在网络安全和地址转换方面的应用。
总的来说,通过这些实验,我们对cisco路由器的使用和性能有了更深入的了解,对网络通信的原理和技术有了更深刻的认识。
希望通过这份实验报告,可
以为更多对cisco路由器感兴趣的人提供一些参考和帮助。
同时,也希望cisco
路由器在未来的发展中能够更加完善和强大,为网络通信领域带来更多的创新
和进步。
基于Cisco Packet Tracer的路由交换综合实验设计

基于Cisco Packet Tracer的路由交换综合实验设计
一、实验目的
本次实验的目的是通过Cisco Packet Tracer模拟网络环境,进行路由交换的综合实验,以加深对路由器配置和交换机互联的理解,提高实际操作技能。
二、实验环境
1. 软件准备:Cisco Packet Tracer软件
2. 设备准备:2台路由器、3台交换机、若干台电脑
三、实验内容
1. 实验一:路由器基本配置
步骤:
1)在Packet Tracer中拖动两台路由器到画布上,连接它们之间的Seria接口。
2)通过CLI界面对路由器进行基本配置,包括主机名、密码、IP地址、路由协议等。
3)通过ping测试和show命令验证路由器配置是否正确。
四、实验总结
通过以上实验,我们可以掌握路由器和交换机的基本配置方法、互联配置方法以及静态路由和动态路由的配置方法。
在实际工作中,我们需要根据网络规模和需求来选择合适的配置方式,以保障网络的稳定和高效运行。
五、注意事项
1. 在进行实验前,务必熟悉Cisco Packet Tracer的基本操作方法,了解设备的拓扑图和CLI配置界面。
2. 实验中涉及到的命令和配置方法,需要进行充分的练习和理解,避免因配置错误导致网络通信异常。
3. 在进行实验时,可以根据需要进行功能扩展,如配置DHCP服务、访问控制列表等,以提高实验的综合性和实用性。
通过本文的介绍,我们了解了基于Cisco Packet Tracer的路由交换综合实验的设计内容和步骤。
这些实验内容对于提升路由交换技术的实际操作能力和解决网络故障具有重要意义,希望读者能够通过实践不断提升自己的技能水平。
思科路由器试验

实验的基本配置一、试验环境IP地址配置:步骤 1. 配置全局配置主机名设置:可以使用哪两个命令离开特权执行模式?exit和end。
可使用什么快捷命令进入特权执行模式?enable。
研究可以通过命令configure 进入的不同配置模式:Router>enableRouter# configure terminal Router(config)#将设备的主机名设为Router1:router(config)# hostname Router1 Router1(config)#步骤 2. 配置MOTD 标语:Router1(config)# banner motd %Enter TEXT message.End with the character ‘%’ *** *** % Router1(config)#1步骤3:配置特权执行口令。
将特权执行口令设置为class:Router1(config)# enable secret classRouter1(config)#步骤4:配置控制台口令:将控制台访问口令设置为cisco:Router1(config)# line console 0Router1(config-line)# password ciscoRouter1(config-line)# login步骤5:配置虚拟线路口令。
将虚拟线路访问口令设置为cisco:Router1(config-line)# line vty 0 4Router1(config-line)# password ciscoRouter1(config-line)# loginRouter1(config-line)# exitRouter1(config)#步骤6:配置路由器的fa0/0 接口:Router1(config)# interface fa0/0Router1(config-if)# description Connection to PC1 with crossover cable Router1(config-if)# ip address 198.168.1.1 255.255.255.0Router1(config-if)# no shutdownRouter1(config-if)# exitRouter1(config)#步骤7:配置路由器的s2/0 接口:Router1(config)# interface s2/0Router1(config-if)# description Connection to Router1 with DCE serial line Router1(config-if)# ip address 198.168.10.1 255.255.255.0Router1(config-if)# no shutdownRouter1(config-if)# exitRouter1(config)#步骤8:配置路由器Router2和Router3:依照以上Router1的配置注:路由器之间连接①串口(须在路由器的DCE端口设置时钟);②以太网设置路由器1(Router1)的s2/0端口(DCE线连接)设置路由器1(Router1)的s2/0端口时钟:Router1(config)# interface s2/0Router1(config-if)# clock rate 12002Router1(config-if)# exit Router1(config)#设置路由器2(Router2)的s3/0端口(DCE线连接)设置路由器2(Router2)的s3/0端口时钟:Router2(config)# interface s3/0Router2(config-if)# clock rate 1200 Router2(config-if)# exit Router2(config)#缺省路由和静态路由试验知识点静态路由静态路由是指由网络管理员手工配置的路由信息。
路由器的配置实验完整报告

路由器的配置实验完整报告1. 实验目的本实验旨在通过配置路由器,了解路由器的工作原理和实际应用,并掌握路由器的基本操作和配置方法。
2. 实验环境本实验使用Cisco Packet Tracer网络仿真工具进行配置实验,使用的路由器型号为Cisco ISR G2。
3. 实验步骤3.1 配置路由器基本信息首先,连接路由器并进入用户模式。
然后,使用命令行界面(CLI)进入特权模式,并输入以下命令配置路由器的基本信息:hostname Router1 // 设置路由器名称为Router1enable secret cisco123 // 设置特权模式密码为cisco123line console 0 // 进入控制台线路配置模式password console123 // 设置控制台登录密码为console123login // 允许控制台登录exit // 退出控制台线路配置模式line vty 0 4 // 进入虚拟终端线路配置模式password vty123 // 设置虚拟终端登录密码为vty123login // 允许虚拟终端登录exit // 退出虚拟终端线路配置模式interface gigabitethernet0/0 // 进入接口配置模式ip address 192.168.1.1 255.255.255.0 // 设置接口IP地址和子网掩码no shutdown // 激活接口exit // 退出接口配置模式ip route 0.0.0.0 0.0.0.0 192.168.1.254 // 添加默认路由,指向下一跳地址3.2 配置动态路由协议为了使路由器能够自动学习和选择最佳路由路径,我们需要配置动态路由协议。
在本实验中,我们使用RIPv2协议作为演示。
首先,进入路由器配置模式,并输入以下命令配置RIPv2:router rip // 进入RIPv2路由器配置模式version 2 // 设置RIPv2版本为2network 192.168.1.0 // 配置本地网络地址no auto-summary // 禁止自动总结网络路由exit // 退出RIPv2路由器配置模式3.3 配置NAT转换NAT(网络地址转换)是一种常用的网络转换技术,用于将私有IP 地址转换为公共IP地址,为内部网络提供对外访问能力。
路由器配置 实验报告

路由器配置实验报告路由器配置实验报告一、实验目的本次实验的目的是通过对路由器的配置,了解和掌握路由器的基本功能和操作方法,以及网络的拓扑结构和通信原理。
二、实验设备1. 路由器:本实验使用的是CISCO系列的路由器,型号为CISCO 1941。
2. 交换机:使用CISCO系列的交换机,型号为CISCO Catalyst 2960。
3. 电脑:用于连接路由器和交换机,进行配置和管理。
三、实验步骤1. 连接设备:首先,将电脑通过网线连接到路由器的Console接口上,使用串口线进行连接。
然后,将路由器的Ethernet接口连接到交换机上。
2. 配置路由器:打开电脑的终端模拟器,通过串口线登录路由器的控制台界面。
输入用户名和密码,进入路由器的命令行界面。
3. 设置主机名:在路由器的命令行界面中,使用命令"hostname R1"来设置路由器的主机名为R1。
4. 配置接口:使用命令"interface GigabitEthernet0/0"进入路由器的接口配置模式,然后使用命令"ip address 192.168.1.1 255.255.255.0"来配置接口的IP地址和子网掩码。
5. 配置路由:使用命令"ip route 0.0.0.0 0.0.0.0 192.168.1.254"来配置默认路由,将所有未知目的地的数据包发送到下一跳地址192.168.1.254。
6. 保存配置:使用命令"copy running-config startup-config"将当前的配置保存到路由器的非易失性存储器中。
7. 配置交换机:打开电脑的终端模拟器,通过网线连接到交换机的Console接口上,使用串口线进行连接。
然后,通过串口线登录交换机的控制台界面。
8. 设置主机名:在交换机的命令行界面中,使用命令"hostname S1"来设置交换机的主机名为S1。
思科路由交换12个实验

实验一:1. 口令和设备名设置添加任意的交换机或路由器,先对交换机进行操作,双击SwitchAswitch>enpassword: ;第一次密码为空,直接回车switch#conf t ;进入全局配置模式switch(config)#hostname swa ;设置交换机名swa(config)#enable secret aaa ;设置特权加密口令为aaaswa(config)#enable password aax ;设置特权非密口令为aaxswa(config)#line console 0 ;进入控制台口(Rs232)状态swa(config-line)#login ;允许登录swa(config-line)#password aa ;设置登录口令aaswa(config-line)#line vty 0 4 ;进入虚拟终端virtual ttyswa(config-line)#login ;允许登录swa(config-line)#password a ;设置登录口令aswa(config-line)#exit ;返回上一层swa(config)#exit ;返回上一层swa#sh run ;看配置信息swa#exit ;返回命令swa>enpassword: ;试验哪一个口令可以通过双击ROA对路由器进行与交换机类似的设置。
2. 清除口令清除交换机口令,实际中是在开机时按住交换机上的mode钮,本模拟机按Ctrl+Break 清除路由器口令,参考如下:双击ROA先配置路由的特权口令:router>enpassword: ;第一次密码为空,直接回车router#conf t ;进入全局配置模式router(config)#enable secret aaa ;设置特权加密口令为aaarouter(config)#exit ;返回router#exitrouter>enpassword:aaarouter#清除口令是打开寄存器配置开关:router#reload ;重新启动,按Ctrl+Break rommon>rommon>confreg 0x2142 ;跳过配置,26xx 36xx 45xx rommon>reset;重新引导,等效于重开机router>enpassword:router#conf trouter(config)#enable secret bbb ;设置特权加密口令为aaa router(config)#config-register 0x2102 ;正常使用配置文件router(config)#exitrouter#exitrouter>enpassword:bbbrouter#实验二:计算机与交换机IP地址设置图文件:switch1规划ip地址:PCA: 10.65.1.1PCB: 10.65.1.2SW A: 10.65.1.31.双击PCA输入用户名:root输入口令:linux设置IP:[root#PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.0.0查看IP:[root#PCA root]# ifconfig删除IP : [root#PCA root]# ifconfig eth0 10.65.1.1 netamsk 255.255.0.0 down 设置网关:[root#PCA root]# route add default gw 10.65.1.9查看网关:[root#PCA root]# route删除网关:[root#PCA root]# route del default gw 10.65.1.92.双击PCB输入用户名:root输入口令:linux设置IP:[root#PCB root]# ifconfig eth0 10.65.1.2 netmask 255.255.0.0设置网关:[root#PCB root]# route add default gw 10.65.1.93.双击SW A进入特权模式: switch>en进入全局配置模式: switch#conf t进入默认VLAN状态: switch(config)#int vlan 1设置ip地址和掩码: switch(config-if)#ip address 10.65.1.3 255.255.0.0设置switch的网关: switch(config)#ip defaule-gateway 10.65.1.9查看设置: #sh run4.回PCA[root@PCA root]# ping 10.65.1.1[root@PCA root]# ping 10.65.1.2[root@PCA root]# ping 10.65.1.35.修改PCB的ip地址修改为不同网段的一个ip地址,再从PCA Ping PCB。
路由思科综合实验报告

路由思科综合实验报告实验名称:路由思科综合实验实验目的:1. 学习和了解思科路由器的基本配置和操作。
2. 掌握常用的路由协议和路由表的配置。
3. 能够解决和排除路由故障。
实验步骤:1. 连接设备:使用思科路由器和交换机搭建实验环境。
2. 配置基本网络设置:为路由器和交换机设置IP地址、子网掩码和网关。
3. 配置路由协议:使用静态路由和动态路由协议配置路由器的路由表。
4. 验证网络连接:使用ping命令测试两台主机之间的连通性。
5. 故障排除:根据故障情况使用跟踪命令、调试命令等排除故障。
6. 总结和分析:根据实验结果总结经验,并分析遇到的问题和解决方法。
实验结果:通过本次实验,我成功地搭建了思科路由器和交换机的实验环境,并配置了基本的网络设置。
我使用静态路由和动态路由协议,成功地配置了路由器的路由表。
我使用ping命令测试了两台主机之间的连通性,发现网络连接正常。
在实验过程中,我遇到了一些问题,例如配置路由表时出现了错误的路由路径,导致网络不能正常工作。
我通过查找资料和请教同学,解决了这个问题,并成功地修复了路由路径。
我还遇到了一些网络故障,例如一台主机无法访问另一台主机。
我使用跟踪命令和调试命令,找到了故障的原因,并采取相应的措施解决了问题。
通过本次实验,我对思科路由器和交换机的配置和操作有了更深入的了解。
我学会了如何使用静态路由和动态路由协议来配置路由器的路由表,以及如何使用ping命令来测试网络连通性。
我还学会了如何使用跟踪命令和调试命令来排除路由故障。
总结和分析:在本次实验中,我遇到了一些挑战和问题,但通过不断学习和实践,我成功地解决了这些问题,并完成了实验目标。
通过实验,我不仅掌握了思科路由器的基本配置和操作,还加深了对路由协议和路由表的理解。
我相信这些知识和技能对我今后的网络工作和学习会有很大的帮助。
在以后的学习和工作中,我会继续深入学习和探索网络路由技术,提高自己的能力。
我还会多进行实验和实践,加强对网络故障排除的能力。
路由器配置实验报告

路由器配置实验报告一、实验目的本次实验的主要目的是熟悉路由器的基本配置方法,掌握如何通过命令行界面(CLI)对路由器进行设置,以实现网络的连接和通信。
通过实际操作,深入理解路由器在网络中的作用,以及相关网络参数的配置和优化。
二、实验设备1、路由器:Cisco 2911 路由器一台2、计算机:若干台,用于连接路由器进行配置操作3、网线:若干条三、实验原理路由器是网络中的核心设备,负责将不同网络之间的数据进行转发。
通过配置路由器的接口地址、路由协议、访问控制列表等参数,可以实现网络的互联互通和安全控制。
四、实验步骤1、连接设备将计算机通过网线与路由器的以太网接口相连。
打开计算机的终端软件(如SecureCRT 或Putty),设置连接参数,如波特率、数据位、停止位等,以建立与路由器的通信。
2、进入特权模式在终端软件中输入用户名和密码,登录到路由器。
输入“enable”命令,进入特权模式,此时命令提示符变为“”。
3、进入全局配置模式在特权模式下输入“configure terminal”命令,进入全局配置模式,命令提示符变为“(config)”。
4、配置路由器主机名输入“hostname Router1”命令,将路由器的主机名设置为“Router1”。
5、配置接口地址输入“interface GigabitEthernet0/0”命令,进入千兆以太网接口 0/0 的配置模式。
输入“ip address 19216811 2552552550”命令,为该接口配置 IP 地址19216811 和子网掩码 2552552550。
输入“no shutdown”命令,启用该接口。
按照同样的方法,配置其他接口的地址,如 GigabitEthernet0/1 接口的 IP 地址为 10001 ,子网掩码为 255000 。
6、配置静态路由输入“ip route 1721600 25525500 10002”命令,设置一条静态路由,将目标网络 1721600/16 的数据包通过下一跳地址 10002 进行转发。
实操《Cisco网络技术》课程实验指导书--交换机与路由器配置

《Cisco网络技术》课程实验指导书计算机系目录概述 (2)实验1路由器基本配置 (4)实验2路由器高级配置命令 (6)实验3路由器的密码设置、保存与破解方法 (8)实验4路由器的远程登录 (10)实验5路由器的背对背连接 (12)实验6CDP协议和Telnet (13)实验7路由器的直连路由 (14)实验8路由器的静态路由、默认路由 (16)实验9RIP路由协议配置 (18)实验10点到点链路OSPF配置 (20)实验11广播网络OSPF配置 (22)实验12多区域下OSPF配置实验 (23)实验15交换机基本配置 (29)实验16生成树诊断 (31)实验17VLAN配置 (33)实验18VLAN主干道配置 (35)实验19VTP配置 (37)实验20VLAN间路由配置 (40)实验21VLAN间的路由—单臂路由 (42)实验22利用三层交换实现以太网建立多个VLAN (44)实验23PPP配置 (47)实验25标准访问控制列表实验--禁止某一台主机的访问 (53)实验26扩展访问控制列表实验--禁止某一台主机的访问 (55)实验27访问控制列表综合实验 (57)实验28NAT配置 (61)实验30综合案例--企业网络基础结构的构建 (68)概述《Cisco网络技术课程》实验分14次进行,每次上机学时可按推荐学时进行,也可根据具体情况进行适当的调整,但《Cisco网络技术课程》实验上机的总学时不得小于25学时。
每次上机的内容及推荐学时见下表。
序号实验名称课时必(选)做实验1路由器基本配置2必做实验2路由器高级配置命令2必做实验3路由器的密码设置、保存与破解2必做实验4路由器的远程登录2必做实验5路由器的背对背连接2必做实验6CDP协议与Telnet会话2必做实验7直连路由2必做实验8静态路由、默认路由2必做实验9RIP配置2必做实验10点到点链路OSPF配置2必做实验11广播网络OSPF配置2必做实验12多区域OSPF配置2选做实验13EIGRP基本配置2选做实验14EIGRP路由汇总2选做实验15交换机基本配置实验2必做实验16STP诊断2必做实验17VLAN配置2必做实验18VLAN Trunk配置2必做实验19VTP配置2必做实验20VLAN间的路由2必做实验21单臂路由2必做实验22利用三层交换实现以太网建立多个VLAN2选做实验23PPP配置2必做实验24帧中继配置2必做实验25标准访问控制列表实验2必做实验26扩展访问控制列表实验2必做实验27扩展访问控制列表综合实验2选做实验28NAT配置2必做实验29防火墙配置2必做实验30综合案例4必做1.实验设备及环境1.1硬件要求:Cisco2621路由器2台,Cisco2950交换机1台,Cisco PIX防火墙1台,PC机2台,控制台电缆1条。
Cisco路由器配置实例(经典)

实训报告实训一路由基本配置1、实验目的:路由器基本配置及ip设置2、拓扑结构图Router0 fa0/0: 192.168.11.1Fa0/1:192.168.1.1Router1 fa0/0: 192.168.11.2Fa0/1:192.168.2.1Znn1:192.168.1.2Znn2:192.168.2.23、实验步骤Router1Router>en 用户模式进入特权模式Router#conf t 特权模式进入全局模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#host rznn1 改名字为rznn1rznn1(config)#int fa0/0 进入fa0/0端口rznn1(config-if)#ip add 192.168.11.1 255.255.255.0 设置ip地址rznn1(config-if)#no sh 激活rznn1(config)#int fa0/1rznn1(config-if)#ip add 192.168.1.1 255.255.255.0rznn1(config-if)#no shrznn1(config-if)#exitrznn1(config)#exitrznn1#copy running-config startup-config 保存Destination filename [startup-config]? startup-configrznn1#conf trznn1(config)#enable secret password 222 设置密文rznn1#show ip interface b 显示Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up upVlan1 unassigned YES manual administratively down downrouter 2outer>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host rznn2rznn2(config)#int fa0/0rznn2(config-if)#ip add 192.168.11.2 255.255.255.0rznn2(config-if)#no shrznn2(config)#int fa0/1rznn2(config-if)#ip add 192.168.2.1 255.255.255.0rznn2(config-if)#no shRznn2#copy running-config startup-config 保存Destination filename [startup-config]? startup-configrznn2(config-if)#exitrznn2(config)#exitrznn2#conf trznn2(config)#enable secret 222rznn2#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.2 YES manual up up FastEthernet0/1 192.168.2.1 YES manual up upVlan1 unassigned YES manual administratively down down实训二1、远程登录、密码设置及验证为路由器开设telnet端口,PC机可以远程登陆到Rznn3(Router 1)拓扑结构图Router0:192.168.1.1Pc:192.168.1.2步骤rznn3>rznn3>enrznn3#conf tEnter configuration commands, one per line. End with CNTL/Z.rznn3(config)#no ip domain lookuprznn3(config)#line cons 0rznn3(config-line)#password znnrznn3(config-line)#loginrznn3(config-line)#no exec-trznn3(config-line)#logg syncrznn3(config-line)#exitrznn3(config)#int fa0/0rznn3(config-if)#ip add 192.168.1.1 255.255.255.0rznn3(config-if)#no shrznn3(config-if)#exitrznn3(config)#line vty 0 4 打通五个端口rznn3(config-line)#password cisco 设置密码rznn3(config-line)#login 保存rznn3(config-line)#exit4、测试:实训三命令组1、目的:八条命令(no ip domain lookup\line cons 0\password\login\no exec-t\logg sync\show version\reload\copy running-config startup-config)\show cdp neighbors)2、拓扑结构图Router0 fa0/0: 192.168.11.1Router1 fa0/0: 192.168.11.23、步骤rznn1#conf tEnter configuration commands, one per line. End with CNTL/Z.1、rznn1(config)#no ip domain lookup 取消域名查找转换2、rznn1(config)#line cons 0 打开cons 0端口3、rznn1(config-line)#password znn 设置密码为znnrznn1(config-line)#login 保存rznn1(config-line)#no exec-t 设置永不超时4、rznn1(config-line)#logg sync 产生日志5、rznn1#show version 显示思科路由系统版本信息Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)Technical Support: /techsupportCopyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Wed 18-Jul-07 06:21 by pt_rel_team6、rznn1#show cdp neighbors 查看路由器连接的相邻路由器的相关信息Capability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDrznn2 Fas 0/0 139 R C2800 Fas 0/07、rznn1#copy running-config startup-config 保存刚才指令Destination filename [startup-config]? startup-configBuilding configuration...[OK]8、rznn1#reload 重启路由器Proceed with reload? [confirm]System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)Copyright (c) 2000 by cisco Systems, Inc.cisco 2811 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memorySelf decompressing the image :########################################################################## [OK] Restricted Rights Legendrznn1#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up upVlan1 unassigned YES manual administratively down down9、rznn1(config-if)#ip add 192.168.3.1 255.255.255.0 重置ip地址rznn1#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.3.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up up Vlan1 unassigned YES manual administratively down down实训四发现协议1、实训目的通过发现协议显示路由器相邻路由的端口信息2、拓扑结构Router0:192.168.11.1Router1:fa0/0 192.168.11.2Fa0/1 192.168.12.1Router2:192.168.12.23、步骤R1路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)#r1(config-if)#exitr1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up down FastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downR2 路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r2r2(config)#int fa0/0r2(config-if)#ip add 192.168.11.2 255.255.255.0r2(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r2(config-if)#exitr2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoler2#conf tEnter configuration commands, one per line. End with CNTL/Z.r2(config)#int fa0/0r2(config-if)#int fa0/1r2(config-if)#ip add 192.168.12.1 255.255.255.0r2(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upr2(config-if)#exitr2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoler2#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.2 YES manual up upFastEthernet0/1 192.168.12.1 YES manual up down Vlan1 unassigned YES manual administratively down downR3路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r3r3(config)#int fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r3(config-if)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by consoler3#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.12.2 YES manual up up FastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downR1发现邻居r1#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr2 Fas 0/0 165 R C2800 Fas 0/0R2发现邻居r2#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr1 Fas 0/0 176 R C1841 Fas 0/0r3 Fas 0/1 130 R C1841 Fas 0/0R3发现邻居r3#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr2 Fas 0/0 166 R C2800 Fas 0/14、总结show 命令(1)show ip interface b (显示端口ip信息)(2)show version (显示ios版本信息)(3)show running-config (显示刚才使用的命令配置信息)(4)show cdp neighbors (显示发现邻居直连设备信息)(5)show interface (显示所有端口详细信息)实训五静态路由1、实验目的:将不同网段的网络配通(ip route)Ip route语法:ip route 目标地址子网掩码相邻路由器接口地址Show ip route2、试验拓扑:Router0:192.168.11.1Router1:fa0/0 192.168.11.2Fa0/1 192.168.12.1Router2:192.168.12.23、实验步骤:Router1Router>enRouter#conf tRouter(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)#exitr1(config)#exitr1#show ip interface bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.11.1 YES manual up downFastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downr1#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r1#ping 192.168.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:.....Success rate is 0 percent (0/5)r1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#ip route 192.168.12.0 255.255.255.0 192.168.11.2r1(config)#exitr1#ping 192.168.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 msr1#ping 192.168.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:.....Success rate is 0 percent (0/5)r1#ping 192.168.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 47/62/78 msr1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0S 192.168.12.0/24 [1/0] via 192.168.11.2Router3Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r3r3(config)#int fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r3(config-if)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by consoler3#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.12.2 YES manual up up FastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downr3#conf tEnter configuration commands, one per line. End with CNTL/Z.r3(config)#ip route 192.168.11.0 255.255.255.0 192.168.12.1r3(config)#exitr3#ping 192.168.11.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.2, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 msr3#ping 192.168.11.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 msr3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setS 192.168.11.0/24 [1/0] via 192.168.12.1C 192.168.12.0/24 is directly connected, FastEthernet0/04、默认路由Route 1r1>enr1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#no ip route 192.168.12.0 255.255.255.0 192.168.11.2%No matching route to deleter1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0r1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2r1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.11.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.11.2r1#ping 192.168.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/31 msr1#ping 192.168.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 msRoute 3r1>enr1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#no ip route 192.168.12.0 255.255.255.0 192.168.11.2%No matching route to deleter1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0r1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2r1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.11.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.11.2r3#ping 192.168.11.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms实训六动态路由RIP 协议1、实验目的使用配置动态路由启动Rip协议使用到的命令(router rip/network/show ip protocols/show ip route)2、实验拓扑R1 fa0/0 192.168.11.1R2 fa0/0 192.168.11.2fa0/1 192.168.12.1R3 fa0/0 192.168.12.23、实验步骤R1Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#router ripr1(config-router)#network 192.168.11.0r1(config-router)#exitr1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoleR2Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#host r2r2(config)#int fa0/0r2(config-if)#ip add 192.168.11.2 255.255.255.0r2(config-if)#no shr2(config-if)#exitr2(config)#int fa0/1r2(config-if)#ip add 192.168.12.1 255.255.255.0r2(config-if)#no shr2(config-if)#exitr2(config)#router ripr2(config-router)#network 192.168.11.0r2(config-router)#network 192.168.12.0r2(config-router)#exitr2(config)#exitr2#R3Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#host r3r3(config)#int fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(config-if)#no shr3(config-if)#exitr3(config)#router ripr3(config-router)#network 192.168.12.0r3(config-router)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by console4、实验测试R1r1#show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 10 secondsInvalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not set Redistributing: ripDefault version control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.168.11.0Passive Interface(s):Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)r1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0R 192.168.12.0/24 [120/1] via 192.168.11.2, 00:00:24, FastEthernet0/0 r1#ping 192.168.12.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.0, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 msR2r2#show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 21 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 1, receive any versionInterface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1FastEthernet0/1 1 2 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.168.11.0192.168.12.0Passive Interface(s):Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)r2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0C 192.168.12.0/24 is directly connected, FastEthernet0/1R3r3#show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 15 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 1, receive any versionInterface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.168.12.0Passive Interface(s):Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)r3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 192.168.11.0/24 [120/1] via 192.168.12.1, 00:00:04, FastEthernet0/0 C 192.168.12.0/24 is directly connected, FastEthernet0/0r3#ping 192.168.11.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.0, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms实训七负载平衡试训目的实现负载平衡实训拓扑R1 fa0/0 192.168.11.1R2 eth0/0/0 192.168.11.2Fa0/0 192.168.12.1Fa0/0 192.168.13.1R3 fa0/0 192.168.12.2Fa0/1 192.168.14.1R4 fa0/0 192.168.13.2Fa0/1 192.168.15.1R5 fa0/0 192.168.14.2Fa0/1 192.168.15.2实训步骤(R1 )r1>enR1#conf tR1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2R1(config)#exitr1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.11.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.11.2(R2)r2>enr2(config)#ip route 0.0.0.0 0.0.0.0 192.168.12.2r2(config)#ip route 0.0.0.0 0.0.0.0 192.168.13.2r2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoles% Ambiguous command: "s"r2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.12.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, Ethernet0/0/0C 192.168.12.0/24 is directly connected, FastEthernet0/0C 192.168.13.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.12.2[1/0] via 192.168.13.2(R3)r3>enr3#conf tEnter configuration commands, one per line. End with CNTL/Z.r3(config)#ip route 0.0.0.0 0.0.0.0 192.168.12.1r3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by consoler3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.12.1 to network 0.0.0.0C 192.168.12.0/24 is directly connected, FastEthernet0/0C 192.168.14.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.12.1(R4)r4>enr4#conf tEnter configuration commands, one per line. End with CNTL/Z.r4(config)#ip route 0.0.0.0 0.0.0.0 192.168.13.1r4(config)#exitr4#%SYS-5-CONFIG_I: Configured from console by consoler4#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.13.1 to network 0.0.0.0C 192.168.13.0/24 is directly connected, FastEthernet0/0C 192.168.15.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.13.1(R5)r5>enr5#conf tEnter configuration commands, one per line. End with CNTL/Z.r5(config)#ip route 0.0.0.0 0.0.0.0 192.168.14.1r5(config)#ip route 0.0.0.0 0.0.0.0 192.168.15.1r5(config)#exitr5#%SYS-5-CONFIG_I: Configured from console by consoler5#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.14.1 to network 0.0.0.0C 192.168.14.0/24 is directly connected, FastEthernet0/0C 192.168.15.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.14.1[1/0] via 192.168.15.1实训测试(R1)r1#ping 192.168.14.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.14.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 62/84/94 ms (R5)r5#ping 192.168.11.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 79/91/94 ms实训八DHCP 协议配置实训目的全网配通实训拓扑Fa0/0 192.168.11.1Fa0/1 192.168.12.1实训步骤Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#int fa0/1r1(config-if)#ip add 192.168.12.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#ip dhcp pool znn //配置一个根地址池znnr1(dhcp-config)#network 192.168.11.0 255.255.255.0 //为所有客户机动态分配的地址段r1(dhcp-config)#default-router 192.168.11.1 //为客户机配置默认的网关r1(dhcp-config)#dns-server 192.168.11.1 //为客户机配置DNS服务器r1(dhcp-config)#exitr1(config)#ip dhcp pool znn1r1(dhcp-config)#network 192.168.12.0 255.255.255.0r1(dhcp-config)#default-router 192.168.12.1r1(dhcp-config)#dns-server 192.168.12.1r1(dhcp-config)#exit。
路由器配置实验实训报告

一、实验目的本次实验旨在通过实际操作,让学生掌握路由器的基本配置方法,熟悉路由器的不同命令行操作模式,了解单臂路由的配置方法,并能够实现不同VLAN之间的通信。
二、实验内容1. 路由器的基本配置2. 单臂路由配置3. 不同VLAN之间的通信实现三、实验环境1. 硬件环境:Cisco Packet Tracer 6.2sv 模拟软件,一台PC,一台路由器(如Router2811),交叉线,配置线。
2. 软件环境:操作系统(如Windows 10),Cisco Packet Tracer 6.2sv。
四、实验步骤1. 路由器的基本配置(1)新建Packet Tracer拓扑图,添加一台路由器(如Router2811)和一台PC。
(2)通过Console线缆连接PC和路由器的控制台端口。
(3)打开PC的终端模拟器,按照以下步骤进入路由器配置模式:- 连接到路由器的控制台端口。
- 输入命令“enable”进入特权模式。
- 输入命令“configure terminal”进入全局配置模式。
(4)进行以下基本配置:- 设置路由器的主机名:`hostname 路由器名称`- 配置路由器的接口:`interface fastethernet0/0`- 配置接口的IP地址:`ip address IP地址子网掩码`- 配置默认网关:`ip default-gateway Default-Gateway-IP`(5)保存配置:`write memory`2. 单臂路由配置(1)在Packet Tracer拓扑图中添加一台交换机(如Switch2960)和两台PC。
(2)将路由器的FastEthernet0/0接口连接到交换机的FastEthernet0/1接口。
(3)在交换机上创建VLAN,并为每台PC分配相应的VLAN。
(4)在路由器上配置单臂路由:- 进入接口配置模式:`interface fastethernet0/0`- 配置VLAN成员:`switchport mode access`- 配置VLAN ID:`switchport access vlan VLAN-ID`(5)在路由器上配置静态路由:- 进入全局配置模式:`configure terminal`- 添加静态路由:`ip route 目标网络子网掩码下一跳IP地址`3. 不同VLAN之间的通信实现(1)在交换机上配置VLAN间路由:- 进入全局配置模式:`configure terminal`- 配置路由协议:`router rip`- 配置路由器ID:`router-id 路由器ID`- 配置VLAN路由:`network VLAN-ID`(2)在PC上配置默认网关:- 进入PC的网络连接设置。
思科模拟实验报告

一、实验目的本次实验旨在通过使用思科模拟器Packet Tracer,学习并掌握思科网络设备的基本配置方法,了解网络设备之间的互联原理,提高网络故障排查能力,为今后从事网络管理工作打下基础。
二、实验环境1. 实验软件:思科Packet Tracer 7.22. 实验设备:思科路由器(如:2960、3560)、交换机(如:2950、3550)、PC 机(作为网络终端)3. 实验拓扑:根据实验要求构建实验拓扑,具体拓扑如下:```交换机1 交换机2┌──────────────┐┌──────────────┐│ │ │ ││ │ │ │路由器1 ┌──────────┴──────────────┐ 路由器2│ │ ││ │ │└──────────────┘└──────────────┘PC1 PC2```三、实验内容1. 配置PC机IP地址2. 配置交换机VLAN3. 配置路由器接口IP地址4. 测试PC机之间通信5. 故障排查与解决四、实验步骤1. 打开Packet Tracer,构建实验拓扑,按照上述拓扑图连接设备。
2. 配置PC1的IP地址为192.168.1.1,子网掩码为255.255.255.0,默认网关为192.168.1.2;配置PC2的IP地址为192.168.2.1,子网掩码为255.255.255.0,默认网关为192.168.2.2。
3. 配置交换机1的VLAN 10,将端口FastEthernet 0/1分配给VLAN 10;配置交换机2的VLAN 20,将端口FastEthernet 0/1分配给VLAN 20。
4. 配置路由器1的FastEthernet 0/0接口IP地址为192.168.1.1,子网掩码为255.255.255.0;配置路由器1的FastEthernet 0/1接口IP地址为192.168.2.1,子网掩码为255.255.255.0。
5. 配置路由器2的FastEthernet 0/0接口IP地址为192.168.2.2,子网掩码为255.255.255.0;配置路由器2的FastEthernet 0/1接口IP地址为192.168.1.2,子网掩码为255.255.255.0。
实验一:Cisco模拟器静态路由实验

• 3、连线的时候注意,PC——交换机用直通线,交换机——路由器用直通 线,路由器——路由器用交叉线。
• 配置完毕后,首先测试PC能否连接各自网关
• 我们从左到右依次配置测试各设备 • 用PC1ping路由器A的fa1/0端口,看是否能ping通?
实验一:Cisco模拟器静态 路由实验
通过实现两台PC互联实验掌握路由的用法和原理
实验条件
• Cisco模拟器6.0(仿真实验)
一、组网:请按照下面图例组网并配置好端口的IP地址,并连线。
• 注意事项:
• 1、可以在路由器和PC间用交换机连接,因为在真实环境里,PC网卡速率 往往和路由器不匹配,无法直连,所以我们可以用交换机做一个中转(交 换机的端口一般都是自适应的,上可连路由器,下可连PC)。
上配置静态路由
• 继续验证,发现通了。
• 为什么通了?因为数据包到达C了,并且在上一个步骤,C已经通过静态路由知道要回复 192.168.1.101应该们先不做验证,我们自己推导一下: • 数据包能否到达D的fa0/0?当然可以,因为数据包能够到达C的fa1/0,并且D的fa0/0和C的fa1/0处于同一个
• 告诉ABCD,剩下两个网段11.0.0.0 10.0.0.0在哪里 • 因为D有11.0.0.0网段接口,并且刚才也配置了,所以不用配了 •A •B •C •D • 告诉E,192.168.1.0在哪里
• 可以看到,PC1能连接E的两个端口了
• 最后,可以看到PC1成功连通PC2
• 我们可以看看路由器的路由表,以C为例
• 可以看到,我们没做任何配置,PC可以连通和它不同网段的接口,为什么? • 因为,192.168.2.1和192.168.1.1在同一个路由器上,它们是同一个路由器的
思科路由部分11个实验项目 全程记录

思科路由部分11个实验项目全程记录+讲解+知识点实验基于Dynamips-0.2.6-Rc4 | unzip-c3620-i-mz.122-37.bin|unzip-c3640-js-mz.124-10 with NM-16ESW实验平台双Xeon 3.0 4G ECC 运行稳定后CPU 40%左右实验1:在P1范围内实现RIPv2实验2:在P1范围内实现基于RIPv2的等价负载均衡实验3:在P1范围内实现基于RIPv2的Key-Chain密钥实验实验4:在P2范围内实现IGRP的非等价负载均衡实验5:全区域中通过桢中继实现RIPv2路由协议+ 密钥验证实验6:全区域中实现EIGRP路由+FR+非等价负载均衡+验证实验7:OSPF基本配置[P1区域内配置]+DR/BDR考察实验8:单区域NBMA环境OSPF实现+验证实验9:多区域OSPF实现实验10:简单的路由重发布末节区域完全末节区域NSSA区域Virtual-Link 实验11:被动接口路由更新过滤策略路由路由单项重发布以及AD/Metric更改路由双向重发布P1配置部分P1R1-P1R2192.168.1.1 - 192.168.1.2 /24 P1R1上配置Lo0 200.200.200.200 /24 P1R1-P1R3192.168.2.1 - 192.168.2.2 /24P1R3-P1R4192.168.3.1 - 192.168.3.2 /24P1R2-P1R4192.168.4.1 - 192.168.4.2 /24P1R1-BBR1 - 10.0.0.2 /8P1R2-BBR1 - 10.0.0.3 /8P2配置部分P2R1-P2R2172.16.1.1 - 172.16.1.2 /16 P2R1上配置Lo0 100.100.100.100 /8 P2R1-P2R3172.17.1.1 - 172.17.1.2 /16P2R3-P2R4172.18.1.1 - 172.18.1.2 /16P2R2-P2R4172.19.1.1 - 172.19.1.2 /16P2R1-BBR2 - 11.0.0.2 /8P2R2-BBR2 - 11.0.0.3 /8BBR配置部分BBR1-BBR2219.146.241.1 -219.146.241.2 /24BBR1 s0/0.1 -s0/0.210.0.0.1BBR2 s0/0.1 -s0/0.211.0.0.1BBR2-SW1219.146.242.1 - 219.146.242.2BBR1-SW2219.146.243.1 - 219.146.243.2SW1-SW2219.146.244.1 - 219.146.244.2SR配置部分SR1-SW1 101.0.0.1 - 101.0.0.2SR2-SW1 102.0.0.1 - 102.0.0.2SR3-SW2 103.0.0.1 - 103.0.0.2SR4-SW2 104.0.0.1 - 104.0.0.2SR1:lo0 105.0.0.1 Lo1 106.0.0.1 SR2:lo0 107.0.0.1 Lo1 108.0.0.1实验1:在P1范围内实现RIPv2 [P1R1]router ripver 2net 192.168.1.0net 192.168.2.0net 200.200.200.0[P1R2]router ripver 2net 192.168.1.0net 192.168.4.0[P1R3]router ripver 2net 192.168.2.0net 192.168.3.0[P1R4]router ripver 2net 192.168.3.0net 192.168.4.0验证结果,P1R1[Copy to clipboard]CODE:sh ip route:C 200.200.200.0/24 is directly connected, Loopback0R 192.168.4.0/24 [120/2] via 192.168.2.2, 00:00:22, FastEthernet0/0C 192.168.1.0/24 is directly connected, Serial1/1C 192.168.2.0/24 is directly connected, FastEthernet0/0R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:22, FastEthernet0/0注意:区分RIP两个版本,配置时候必须配置相同的rip version,虽然有办法让他们协同工作,但是基本上没什么意义RIPV1分类路由,没30秒发送一次更新分组,分组中不包含子网掩码信息,不支持VLSM,默认进行边界自动路由汇总,且不可关闭,所以该路由不能支持非连续网络.不支持身份验证. 使用跳数作为度量,管理距离120.每个分组中最多只能包含25个路由信息.使用广播进行路由更新.RIPV2无类路由,发送分组中含有子网掩码信息,支持VLSM,但默认该协议开启了自动汇总功能,所以如需向不同主类网络发送子网信息,需要手工关闭自动汇总功能(noauto-summary),RIPV2只支持将路由汇总至主类网络,无法将不同主类网络汇总,所以不支持CIDR.使用多播224.0.0.9进行路由更新,只有对应的多播MAC地址能够响应分组,在MAC层就能区分是否对分组响应.支持身份验证.分类路由选择协议,当发送路由分组的接口所处子网与分组相关的子网属于同一主类网络,那么路由器在该接口可以把具体的子网发送出去.路由器假设该接口与分组子网使用相同的子网掩码.什么是连续子网:属于同一主类网络,使用相同的子网掩码就是连续的子网.否则就是非连续子网.在接口上手工汇总命令:ip summary-address rip 被汇总子网被汇总子网掩码RIP 使用UDP(用户报文协议)520端口传输路由更新分组RIP只能做等价负载均衡实验2 在P1范围内实现基于RIPv2的等价负载均衡P1R1上的Lo0为200.200.200.200,作为此实验的目的IP[P1R4]int f0/0no ip route-cacheint s1/0no ip route-cacheaccess-list 101 permit ip icmp any 200.200.200.0 0.0.0.255debug ip pac 101验证结果[P1R2]router ripver 2net 192.168.1.0net 192.168.4.0[P1R3]router ripnet 192.168.2.0net 192.168.3.0[P1R4]router ripver 2net 192.168.3.0net 192.168.4.0P1R4上sh ip route,可以看到[Copy to clipboard]CODE:Gateway of last resort is not setR 200.200.200.0/24 [120/2] via 192.168.4.1, 00:00:16, FastEthernet0/0 [120/2] via 192.168.3.1, 00:00:09, Serial1/0C 192.168.4.0/24 is directly connected, FastEthernet0/0R 192.168.1.0/24 [120/1] via 192.168.4.1, 00:00:16, FastEthernet0/0R 192.168.2.0/24 [120/1] via 192.168.3.1, 00:00:09, Serial1/0C 192.168.3.0/24 is directly connected, Serial1/0到达200.200.200.0网段的metric完全相同,并且通过两个出口P1R4#ping 200.200.200.200 re 2[Copy to clipboard]CODE:Type escape sequence to abort.Sending 2, 100-byte ICMP Echos to 200.200.200.200, timeout is 2 seconds: !!Success rate is 100 percent (2/2), round-trip min/avg/max = 12/14/16 ms16:00:24: IP: tableid=0, s=192.168.4.2 (local), d=200.200.200.200 (FastEthernet0/0), routed via RIB16:00:24: IP: s=192.168.4.2 (local), d=200.200.200.200 (FastEthernet0/0), len 100, sending16:00:24: IP: tableid=0, s=192.168.3.2 (local), d=200.200.200.200 (Serial1/0), routed via RIB16:00:24: IP: s=192.168.3.2 (local), d=200.200.200.200 (Serial1/0), len 100, sending注意1.route-cache是进程交换, ip route-cache是快速交换, ip route-cache optimum 是最优交换, route-cache distributed是分布式最优,负载均衡需要切换为进程交换(根据分组处理,而不是目的地),7000以上系列需要no ip cef2.通过定义ACL定义过滤,然后debug抓取特定的数据包,可以最优化显示debug 结果均衡负载的知识:均衡负载可以是基于目标地址或者是基于每个packet的所谓基于目标地址的均衡负载,是说假如有2条到达目标地址的路径,那么第一个packet将通过第一条链路到达第一个目标设备,第二个packet将通过第二条链路到达第二个目标设备,第三个packet又将通过第一条链路到达第三个目标设备等等,以次类推.当Cisco路由器工作在默认的交换模式,Fast Switching(快速交换)模式下,就使用这种类型的均衡负载Fast Switching的工作原理是:当路由器对第一个packet进行发往目标地址的处理的时候,先查看路由表和选择出口接口,然后获取组成frame的信息(比如ARP表的查询)并进行封装,然后传输.之前获取的这些路由和数据链路信息将被保存在快速交换的cache中.接下来,当有要到达和第一个包相同的目标地址的包的时候,就可以不进行路由表和ARP表的查询,直接对packet进行交换快速交换降低了CPU的占用和处理时间,并意味着去往某个目标地址的packet都从相同的路由器接口被路由出去.当有到达同一网络不同主机的packet,路由器可能会吧这些packet通过另外一条链路进行路由.因此,路由器能做的最好的就是给予目标地址的均衡负载所谓基于基于packet的均衡负载,是说假如有2条到达目标地址的路径,那么第一个packet将通过第一条链路到达目标设备,第二个packet将通过第二条链路到达目标设备,第三个packet又将通过第一条链路到达目标设备等等,以次类推.(这里考虑的是等价的均衡负载) Cisco路由器工作在Process Switching(进程交换)模式的时候就采用基于packet的均衡负载进程交换,是指每次对packet的交换,都要查询路由表,选择出口接口和查询数据链路信息,因为每次的路由决策都是独立的.要在某个接口打开进程交换模式,使用no ip route-cache命令.实验3 在P1范围内实现基于RIPv2的Key-Chain密钥实验[P1R1]key chain ciscokey 1key-string mypasswordint f0/0ip rip auth key-chain ciscoip rip auth mode md 5int s1/1ip rip auth key-chain ciscoip rip auth mode md5验证结果在P1R1上定义密钥以后,分别在s1/1和f0/0上面启用,在其他路由器并没有启用相同的密钥的时候,通过debug ip rip eve查看:16:18:45: RIP: ignored v2 packet from 192.168.1.2 (invalid authentication)sh ip route查看R 192.168.3.0/24 is possibly down, routing via 192.168.2.2, FastEthernet0/0说明因为密钥匹配原因,packet ignored,并且路由条目状态变化为possibly down在P1R2上定义同样密钥后debug 信息显示Page 5 of Cisco Tec! - Powered by Discuz! Board 31P1R4上sh ip route,可以看到16:31:16: RIP: received packet with MD5 authentication认证成功附加部分在P1R2上采用同样密钥,但是在接口上应用的时候如果采用明文方式ip rip auth mod text(P1R1采用MD5加密)因为两边不匹配,则一样会invalid authentication注意可以在路由器上配置RIPv2消息认证包括:明文或MD5加密密码在钥匙链(key-chain)上定义多个秘钥(key)或密码,后者可选定义秘钥链名称:key chain test定义秘钥key 1定义密码key-string cisco在接口上启用int e0/0 ip rip authentication key-chain test定义发送方式ip rip authtication mode md5记住,钥匙链-钥匙-钥匙的凹凸代表密码,必须在个锁(接口)上使用此钥匙(引用)sh ip pro可以查看version和keychain情况Default version control: send version 2, receive version 2Interface Send Recv Triggered RIP Key-chainFastEthernet0/0 2 2 ciscoSerial1/1 2 2 ciscoLoopback0 2 2 cisco实验4 在P2范围内实现IGRP的非等价负载均衡等价负载均衡同RIP部分,设置上没什么特殊之处[P2R4]int f0/0bandwidth 10000no ip route-cacheint s1/0bandwidth 1000no ip route-cacherouter igrp 100vari 10access-list 101 permit ip icmp any 100.100.100.0 0.0.0.255debug ip pac 101验证结果使用sh int f0/0察看其默认BW为BW 100000 Kbit使用sh int s1/0察看其默认BW为BW 1544 Kbit但是奇怪的是,我还没有设置variance,且BW不同的情况下,基于Dynamips的metric计算值竟然相同,先不管它[100/8986] via 172.18.1.1, 00:00:18, Serial1/0如果只是设置了带宽,则所有的pac将从f0/0发出认证成功附加部分在P1R2上采用同样密钥,但是在接口上应用的时候如果采用明文方式ip rip auth mod text(P1R1采用MD5加密)因为两边不匹配,则一样会invalid authentication设置好variance以后,sh ip route[100/12510] via 172.18.1.1, 00:00:16, Serial1/0 两条路出来了,然后观察抓包即可弥补RIP的缺陷而开发设计,适合更大的网络,最大支持255跳,为了减轻网络的负担,将默认的更新周期从RIP的30秒改为90秒,但是这也造成了网络拓扑变化时收敛速度变迟缓了。
基于Cisco Packet Tracer的路由交换综合实验设计

基于Cisco Packet Tracer的路由交换综合实验设计一、实验目的本实验旨在通过Cisco Packet Tracer软件模拟网络环境,设计并实现基于路由器和交换机的综合网络实验。
通过此实验,学习者将能够了解和掌握路由器和交换机的基本配置和操作,理解网络设备之间的连接方式和通信原理,掌握子网划分和路由器之间的连接以及交换机的VLAN配置等内容。
二、实验环境1. Cisco Packet Tracer软件2. 三台路由器3. 三台交换机4. 五台电脑5. 网线、串口线等相关线材三、实验步骤1. 搭建网络拓扑我们需要在Cisco Packet Tracer中搭建网络拓扑。
在软件中选择合适的路由器和交换机设备,将它们拖拽到工作区,并通过适当的线缆将设备连接起来。
在本实验中,我们可以使用三台路由器和三台交换机来搭建一个完整的网络拓扑,确保设备之间的连接是正确的、稳定的。
2. 路由器的基本配置接下来,我们需要对路由器进行基本的配置。
我们需要为路由器分配IP地址,并为其配置静态路由。
在Cisco Packet Tracer中,我们可以使用命令行界面或者图形化界面来完成路由器的配置工作。
通过配置路由器,我们可以实现不同网络之间的通信,保证数据在不同网络之间的正常传输。
3. Vlan的配置在实验中,我们还需要配置交换机的VLAN。
VLAN(Virtual Local Area Network)是一种将网络设备划分成多个逻辑上的局域网的技术,可以提高网络的安全性和管理性。
通过配置VLAN,我们可以将不同的网络设备划分到不同的虚拟局域网中,实现互不干扰的数据通信。
4. 子网划分和配置我们还需要对网络进行子网划分和配置。
子网划分可以有效地管理IP地址资源,提高网络的使用效率。
在实验中,我们可以通过路由器来进行子网划分和配置,为不同的子网分配合适的IP地址,实现子网之间的正常通信。
5. 路由器之间的连接我们还需要实现不同路由器之间的连接。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Cisco路由技术
1.实验图例
按图例要求配置
1.在每个路由器上都有一环回接口,实现ospf的多区域配置。
实现全网互通
2.R4路由器为ospf协议与rip协议的ASBR路由器,实现ospf协议与rip协议的重分发。
3.在骨干路由器r2和r3间使用接口认证(明文)密码为cisco
测试:
1.在r1上使用命令ping 4.4.4.4 source 1.1.1.1 能有如下提示
2.在路由器R4上使用命令show run 可以看到如下信息
在R1上使用命令show ip route 命令可以看到如下信息
在R2上使用show run 命令可以找到如下信息
2.实验图例
按图例要求配置
1.实现ospf的多区域配置,将r4的三个直连接口充分发进ospf中
2.在r1上有3个环回接口,分别为1.1.1.1,1.1.2.1,1.1.31,要求在其他区域中只能看到一条
关于三个环回接口的路由条目。
3.在R4上有三个环回接口,分别为
4.4.1.4,4.4.2.4,4.4.3.4,将r4的环回接口重分发布
到ospf协议里但是要求在区域一中只能看到一条关于4.4.0.0 /22 的路由
4.在骨干路由器r2和r3间使用接口认证(明文)
5.
答案:在R4上使用show run命令可以找到如下信息
在R1上使用命令show ip route 可以看到如下信息
在r3上使用命令show ip route 可以看到如下信息
在R2上使用show run 命令可以找到如下信息。