路由技术实训报告
ip route 0.0.0.0 0.0.0.0 Serial0/0/1 !!
line con 0
password cisco login
line vty 0 1 password cisco login
line vty 2 4 login ! ! ! end
五、实训结果分析
RIPv2和RIPv1相比,在基本配置上方法是一样的,只是rip路由协议上的配置上有一定的区别,在本次实训中遇到的问题是没有刚开始配置的时候没有选择配置的版本,还是用以前的方法来配置RIP,应该选择配置RIPv2(config-router)
# version 2 这样才是对的。还有配置路由器的出口,所以导致的结果就是不管自己怎么做都不对。
15
路由技术实训报告
实训项目四:RIPv1故障排除
一、实训目的
给出了已经做好的实习文件,学会在其中找出错误,并将其改正。
二、实训任务
1. 清除路由器上的配置,并重启路由器 2. 完成各路由器的配置 3. 禁用DNS查找
4. 配置控制台连接的口令 5. 配置 VTY 连接口令
三、实训过程
1、地址规划表 设备 BRANCH 接口 Fa0/0 S0/0/0 Fa0/0 HQ S0/0/0 S0/0/1 ISP PC1 PC2 PC3 Fa0/0 S0/0/1 网卡 网卡 网卡 IP地址 192.168.1.1 10.45.1.254 10.45.2.1 10.45.1.1 172.20.20.254 172.16.1.1 172.20.20.1 192.168.1.254 10.45.2.254 172.16.1.254 子网掩码 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 默认网关 不适用 不适用 不适用 不适用 不适用 不适用 不适用 192.168.1.1 10.45.2.1 172.16.1.1 2、操作步骤及命令
1)清除路由器上的配置,并重启路由器:
(路由器名)# erase startup-config
(路由器名)# reload 2) 完成各路由器的配置 : 配置路由器主机名:(config)#hostname BRANCH
配置接口IP:
(config)# interface fastethernet0/0
(config-if)# ip add 192.168.1.1 255.255.255.0
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/0
(config-if)# ip add 10.45.2.1 255.255.255.0 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip
(config-router)# passive-interface FastEthernet0/0 (config-router)# network 10.0.0.0
16
路由技术实训报告
(config-router)# network 192.168.1.0
(config-router)# default-information originate (config-router)# no auto-summary 配置静态路由:(config)#ip route 10.45.2.0 255.255.255.0 10.45.1.1 (config)# ip route 0.0.0.0 0.0.0.0 Serial0/0/0
配置路由器主机名:(config)#hostname HQ 配置接口IP:
(config)# interface fastethernet0/0
(config-if)# ip add 10.45.2.1 255.255.255.0
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/0
(config-if)# ip add 10.45.1.1 255.255.255.0 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/1
(config-if)# ip add 172..20.20.254 255.255.255.0 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip
(config-router)# version 1
(config-router)# passive-interface FastEthernet0/0 (config-router)# passive-interface FastEthernet0/1
(config-router)# network 10.0.0.0 (config-router)# network 172.20.0.0
(config-router)# default-information originate (config-router)# no auto-summary
配置路由器主机名:(config)#hostname ISP 配置接口IP:
(config)# interface fastethernet0/0
(config-if)# ip add 172.16.1.1 255.255.255.0
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/1
(config-if)# ip add 172.20.20.1 255.255.255.0 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown 配置静态路由:(config)# ip route 10.45.0.0 255.255.254.0 Serial0/0/1 (config)# ip route 192.168.1.0 255.255.255.0 Serial0/0/1 (config)# ip route 0.0.0.0 0.0.0.0 Serial0/0/1 (config)# ip route 0.0.0.0 0.0.0.0 Serial0/0/0 (config)#ip route 10.45.2.0 255.255.255.0 10.45.1.1
3)禁用DNS查找:(config)# no ip domain-lookup 4) 配置控制台连接的口令:(config)#line console 0
17
路由技术实训报告
(config-line)#password cisco (config-line)#login
5) 配置 VTY 连接口令:(config)# line vty 0 2
(config-line)#password cisco (config-line)#login
四、实训结果
BRANCH#show run
Building configuration...
Current configuration : 868 bytes !
version 12.3
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname BRANCH ! !
no ip domain-lookup !
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0 duplex auto speed auto !
interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !
interface Serial0/0/0
ip address 10.45.1.254 255.255.255.0 clock rate 64000 !
interface Serial0/0/1 no ip address shutdown !
interface Vlan1 no ip address shutdown !
router rip
passive-interface FastEthernet0/0
18
路由技术实训报告
network 10.0.0.0 network 192.168.1.0
default-information originate no auto-summary !
ip classless
ip route 10.45.2.0 255.255.255.0 10.45.1.1 ip route 0.0.0.0 0.0.0.0 Serial0/0/0 ! !
line con 0
password cisco login
line vty 0 4 password cisco login ! ! End
HQ#show run
Building configuration...
Current configuration : 849 bytes !
version 12.3
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname HQ ! !
no ip domain-lookup ! !
interface FastEthernet0/0
ip address 10.45.2.1 255.255.255.0 duplex auto speed auto !
interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !
interface Serial0/0/0
ip address 10.45.1.1 255.255.255.0 !
interface Serial0/0/1
19