路由技术实训报告

更新时间:2023-03-08 05:39:13 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

湖北国土资源职业学院

实 训课

实 训主训学生

实习报告

2011-2012学年第2学期

名 称 路由技术实训

□技能训练 □课程设计 □课程实习

■综合实习 □生产实习 □毕业实习

时 间 第18-19周 教师 徐霞 姓

名 甘刚 级

网络1101

路由技术实训报告

实训项目一:静态路由

一、实训目的

1.通过本次的实训学会对地址空间划分子网

2.为接口分配适当的地址,并在路由器上进行配置 3.配置并启用接口 4.学会配置静态路由

二、实训任务

1. 配置路由器主机名

2. 配置接口IP及静态路由 3. 禁用 DNS 查找 4. 配置当天消息标语 5. 配置控制台连接的口令 6. 配置 VTY 连接的口令

三、实训过程

1、地址规划表 设备 R1 R2 PC1 PC2 接口 F0 S0/0/0 F0 S0/0/0 网卡 网卡 IP地址 192.168.1.1 192.168.2.1 192.168.3.1 192.168.2.2 192.168.1.10 192.168.3.10 子网掩码 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 192.1683.1 2、操作步骤及命令

1) 配置路由器主机名:(config)#hostname R1 2)配置接口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 192.168.2.1 255.255.255.0 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 3) 配置静态路由:

(config)# ip route 0.0.0.0 0.0.0.0 serial0/0/0 4) 禁用DNS查找: (config)# no ip domain-lookup

5) 配置当天消息标语: (config)#banner motd ^Cni shi wo de yan ^ 6) 配置控制台及VTY口令:(config)#line console 0

(config-line)#password cisco

1

路由技术实训报告

(config-line)#login

5) 配置 VTY 连接口令:(config)# line vty 0 2

(config-line)#password cisco (config-line)#login

四、实训结果

R1#show run

Building configuration...

Current configuration : 746 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R1 ! !

enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! !

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 192.168.2.1 255.255.255.0 clock rate 64000 !

interface Serial0/0/1 no ip address shutdown !

interface Vlan1 no ip address shutdown !

ip classless

2

路由技术实训报告

ip route 0.0.0.0 0.0.0.0 Serial0/0/0 !

banner motd ^Cni shi wo de yan ^C !

line con 0

password cisco login

line vty 0 4 password cisco login ! ! ! End

五、实训结果分析

通过本次的实训让我学会了如何禁用DNS查找,以及配置控制口令和VTY口令,还有如何配置当天消息标语,总的说来本实训的内容比较少,比较简单,同时也是对以前学习的知识的一个检验和复习吧。在本实训中主要存在的问题是对一些口令不是很熟,所以每次都要对着书打,但经过几次的重复练习后那些口令

基本都记住了。

3

路由技术实训报告

实训项目二:RIPv1配置

一、实训目的

通过本次的实训,学会在路由器上配置RIP路由,明白RIP路由与静态路由的不同之处。

二、实训任务

1. 配置路由器主机名

2. 配置接口IP及RIP路由协议 3. 禁用 DNS 查找 4. 配置当天消息标语 5. 配置控制台连接的口令 6. 配置 VTY 连接的口令

三、实训过程

1、地址规划表 设备 R1 接口 Fa0/0 S0/0/0 Fa0/0 R2 S0/0/0 S0/0/1 R3 PC1 PC2 PC3 Fa0/0 S0/0/1 网卡 网卡 网卡 IP地址 192.168.1.1 192.168.2.1 192.168.3.1 192.168.2.2 192.168.4.2 192.168.5.1 192.168.4.1 192.168.1.10 192.168.3.10 1921.168.5.10 子网掩码 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 192.168.3.1 192.168.5.1

2、操作步骤及命令

1) 配置路由器主机名:(config)#hostname R1

配置接口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 192.168.2.1 255.255.255.0 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip

(config-router)# network 192.168.1.0 (config-router)# network 192.168.2.0

配置路由器主机名:(config)#hostname R2

4

路由技术实训报告

配置接口IP:

(config)# interface fastethernet0/0

(config-if)# ip add 192.168.3.1 255.255.255.0

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/0

(config-if)# ip add 192.168.2.2 255.255.255.0 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/1

(config-if)# ip add 192.168.4.2 255.255.255.0 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip

(config-router)# network 192.168.2.0 (config-router)# network 192.168.3.0 (config-router)# network 192.168.4.0

配置路由器主机名:(config)#hostname R3 配置接口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/1

(config-if)# ip add 192.168.4.1 255.255.255.0 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip

(config-router)# network 192.168.4.0 (config-router)# network 192.168.5.0

2) 禁用DNS查找:(config)# no ip domain-lookup 3) 配置控制台连接的口令:(config)#line console 0

(config-line)#password cisco (config-line)#login

4) 配置 VTY 连接口令:(config)# line vty 0 2

(config-line)#password cisco (config-line)#login

四、实训结果

R1#show run

Building configuration...

Current configuration : 682 bytes !

5

路由技术实训报告

version 12.4

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R1 ! !

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 192.168.2.1 255.255.255.0 clock rate 64000 !

interface Serial0/0/1 no ip address shutdown !

interface Vlan1 no ip address shutdown !

router rip

network 192.168.1.0 network 192.168.2.0 !

ip classless !

line con 0

password cisco login

line vty 0 4 password cisco login ! ! end

R2#show run

Building configuration...

Current configuration : 716 bytes

6

路由技术实训报告

!

version 12.4

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R2 ! !

interface FastEthernet0/0

ip address 192.168.3.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 192.168.2.2 255.255.255.0 !

interface Serial0/0/1

ip address 192.168.4.2 255.255.255.0 clock rate 64000 !

interface Vlan1 no ip address shutdown !

router rip

network 192.168.2.0 network 192.168.3.0 network 192.168.4.0 !

ip classless ! !

line con 0

password cisco login

line vty 0 4 password cisco login ! ! ! end

7

路由技术实训报告

R3#show run

Building configuration...

Current configuration : 664 bytes !

version 12.4

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R3 ! !

interface FastEthernet0/0

ip address 192.168.5.1 255.255.255.0 duplex auto speed auto !

interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !

interface Serial0/0/0 no ip address shutdown !

interface Serial0/0/1

ip address 192.168.4.1 255.255.255.0 !

interface Vlan1 no ip address shutdown !

router rip

network 192.168.4.0 network 192.168.5.0 !

ip classless ! !

line con 0

password cisco login

line vty 0 4 password cisco login ! !! end

8

路由技术实训报告

五、实训结果分析

本次的的实训相较于上一个实训,多了一个内容,就是需要在路由器上配置RIP 路由,总的说来,在本次的实训中没有遇到什么太大的困难,在本次实训中主要遇到的困难就是对一些口令的单词记得不是很熟,有的时候会打错单词。

实训项目三:RIPv2配置

一、实训目的

通过本次的实训,学会在路由器上配置RIPv2 路由协议。

二、实训任务

根据以下说明对 BRANCH、HQ 和 ISP 路由器进行基本配置:

? 配置路由器主机名 ? 禁用 DNS 查找

? 配置路由器IP 地址及RIPv2路由协议 ? 配置当日消息标语 ? 配置控制台连接的口令 ? 配置 VTY 连接的口令

9

路由技术实训报告

三、实训过程

1、地址规划表 设备 PC1 PC2 PC3 PC4 PC5 Branch 接口 网卡 网卡 网卡 网卡 网卡 Fastethernet0/0 Faftethernet0/1 Serial0/0/0 Fastethernet0/0 HQ Faftethernet0/1 Serial0/0/0 Serial0/0/1 ISP Fastethernet0/0 Serial0/0/1 IP地址 192.168.40.174 192.168.40.158 192.168.40.62 192.168.40.126 209.165.200.254 192.168.40.129 192.168.40.161 192.168.40.178 192..168.40.1 192.168.40.65 192.168.40.177 209.165.202.158 209.165.200.225 209.165.202.129 子网掩码 255.255.255.240 255.255.255.224 255.255.255.192 255.255.255.192 255.255.255.224 255.255.255.224 255.255.255.240 255.255.255.252 255.255.255.192 255.255.255.192 255.255.255.252 255.255.255.224 255.255.255.224 255.255.255.224 默认网关 192.168.40..161 192.168.40.129 192.168.40.1 192.168.40.65 209.165.200.225 不可用 不可用 不可用 不可用 不可用 不可用 不可用 不可用 不可用 2、操作步骤及命令 1)配置主机名:(config)# hostname BRANCH

配置接口IP:

(config)# interface fastethernet0/0

(config-if)# ip add 192.168.40.129 255.255.255.2554

启用接口:(config-if)# no shutdown 配置接口IP:

(config)# interface fastethernet0/1

(config-if)# ip add 192.168.40.161 255.255.255.240

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/0

(config-if)# ip add 192.168.40.178 255.255.255.252 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip

配置RIPv2 (config-router) # version 2

(config-router) #passive-interface FastEthernet0/0 (config-router) #passive-interface FastEthernet0/1

(config-router) # network 192.168.40.0

配置主机名:(config)# hostname HQ

配置接口IP:

(config)# interface fastethernet0/0

(config-if)# ip add 192.168.40.1 255.255.255.192

10

路由技术实训报告

启用接口:(config-if)# no shutdown 配置接口IP:

(config)# interface fastethernet0/1

(config-if)# ip add 192.168.40.65 255.255.255.192

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/0

(config-if)# ip add 192.168.40.177 255.255.255.252 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/1

(config-if)# ip add 209.165.202.158 255.255.255.224 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown

配置RIP:(config)# router rip

配置RIPv2(config-router) # version 2

(config-router) #passive-interface FastEthernet0/0 (config-router) #passive-interface FastEthernet0/1

(config-router) # network 192.168.40.0 (config-router)# network 209.165.200.0

(config-router)# default-information originate 2) 禁用DNS查找:(config)# no ip domain-lookup 3) 配置控制台连接的口令:(config)#line console 0

(config-line)#password cisco (config-line)#login

4) 配置 VTY 连接口令:(config)# line vty 0 2

(config-line)#password cisco (config-line)#login

5) 配置当日消息 : (config)# banner motd ^ jin tian shi ge hao ri zi ^

四、实训结果

Branch#show run

Building configuration...

Current configuration : 806 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname Branch

11

路由技术实训报告

!

no ip domain-lookup ! !

interface FastEthernet0/0

ip address 192.168.40.129 255.255.255.224 duplex auto speed auto !

interface FastEthernet0/1

ip address 192.168.40.161 255.255.255.240 duplex auto speed auto !

interface Serial0/0/0

ip address 192.168.40.178 255.255.255.252 !

interface Serial0/0/1 no ip address shutdown !

interface Vlan1 no ip address shutdown !

router rip version 2

passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 192.168.40.0 !

ip classless !

banner motd ^C wangluo 1101 ^C

!

line con 0

password cisco login

line vty 0 4 password cisco login ! ! ! End

HQ#show run

Building configuration...

12

路由技术实训报告

Current configuration : 986 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 192.168.40.1 255.255.255.192 duplex auto speed auto !

interface FastEthernet0/1

ip address 192.168.40.65 255.255.255.192 duplex auto speed auto !

interface Serial0/0/0

ip address 192.168.40.177 255.255.255.252 clock rate 64000 !

interface Serial0/0/1

ip address 209.165.202.158 255.255.255.224 clock rate 64000 !

interface Vlan1 no ip address shutdown !

router rip

passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 192.168.40.0 network 209.165.200.0

default-information originate !

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0/0/0 ip route 0.0.0.0 0.0.0.0 Serial0/0/1 ! ! !

banner motd ^C jin tian shi ge hao ri zi ^C ! ! !

13

路由技术实训报告

!

line con 0

password cisco login

line vty 0 4 password cisco login ! end

ISP#show run

Building configuration...

Current configuration : 728 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname ISP

!

interface FastEthernet0/0

ip address 209.165.200.225 255.255.255.224 duplex auto speed auto !

interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !

interface Serial0/0/0 no ip address shutdown !

interface Serial0/0/1

ip address 209.165.202.129 255.255.255.224 !

interface Vlan1 no ip address shutdown !

router rip

passive-interface FastEthernet0/0 !

ip classless

14

路由技术实训报告

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

路由技术实训报告

ip address 172.20.20.254 255.255.255.0 clock rate 64000 !

interface Vlan1 no ip address shutdown !

router rip version 1

passive-interface FastEthernet0/0 passive-interface Serial0/0/0 network 10.0.0.0 network 172.20.0.0

default-information originate no auto-summary !

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0/0/1 ! !

line con 0 line vty 0 4 password cisco login ! ! ! End

ISP#show run

Building configuration...

Current configuration : 820 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname ISP ! !

no ip domain-lookup ! !

interface FastEthernet0/0

ip address 172.16.1.1 255.255.255.0 duplex auto speed auto !

20

路由技术实训报告

interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !

interface Serial0/0/0 no ip address shutdown !

interface Serial0/0/1

ip address 172.20.20.1 255.255.255.0 !

interface Vlan1 no ip address shutdown !

ip classless

ip route 10.45.0.0 255.255.254.0 Serial0/0/1 ip route 192.168.1.0 255.255.255.0 Serial0/0/1 ip route 0.0.0.0 0.0.0.0 Serial0/0/1 ip route 0.0.0.0 0.0.0.0 Serial0/0/0

ip route 10.45.2.0 255.255.255.0 10.45.1.1 ! ! !

line con 0 line vty 0 4 password cisco login ! ! ! end

五、实训结果分析

这个实训是我认为在为期两周的实训中最难的实训之一,因为涉及到排错,所以往往在所花费的时间上比重新配置它所花费的时间更长,所以我选择重新配置,根据RIPv1的配置方法完成个路由器的配置,可是在最后只完成了80%,在检查了多次之后依然无解。求解!!!!

21

路由技术实训报告

实训项目五:RIPv2故障排除

一、实训目的

给出了已经做好的实习文件,学会在其中找出错误,并将其改正。

二、实训任务

1. 清除路由器上的配置,并重启路由器 2. 完成各路由器的配置 3. 禁用DNS查找

4. 配置控制台连接的口令 5. 配置 VTY 连接口令

三、实训过程

1、地址规划表 设备 接口 Fa0/0 HQ Fa0/1 S0/0/0 S0/0/1 Fa0/0 BRANCH 1 Fa0/1 S0/0/0 Fa0/0 BRANCH 2 PC1 PC2 PC3 PC4 PC5 PC6

Fa0/1 S0/0/1 网卡 网卡 网卡 网卡 网卡 网卡 IP地址 192.168.1.1 192.168.1.129 子网掩码 255.255.255.128 255.255.255.192 默认网关 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 172.16.0.1 172.16.2.1 192.168.1.1 172.16.4.1 172.16.4.129 209.165.200.225 255.255.255.252 209.165.200.229 255.255.255.252 172.16.0.1 172.16.4.129 172.16.4.1 172.16.4.129 172.16.0.10 172.16.2.10 192.168.1.10 192.168.1.138 172.16.4.10 172.16.4.138 255.255.254.0 255.255.254.0 255.255.255.128 255.255.255.128 255.255.254.0 255.255.254.0 255.255.255.128 255.255.255.128 255.255.255.128 209.165.200.226 255.255.255.252 209.165.200.230 255.255.255.252 255.255.255.192 192.168.1.129 2、操作步骤及命令

1)清除路由器上的配置,并重启路由器:

(路由器名)# erase startup-config

(路由器名)# reload 2) 完成各路由器的配置 : 配置路由器主机名:(config)#hostname HQ

配置接口IP:

(config)# interface fastethernet0/0

(config-if)# ip add 192.168.1.1 255.255.255.128

22

路由技术实训报告

启用接口:(config-if)# no shutdown

(config)# interface fastethernet0/1

(config-if)# ip add 192.168.1.129 255.255.255.192

config-if)# no shutdown

(config)# interface serial0/0/0

(config-if)# ip add 209.165.200.225 255.255.255.252 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/1

(config-if)# ip add 209.165.200.229 255.255.255.252 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown

配置RIP:(config)# router rip

(config-router)# version 2

(config-router)# passive-interface FastEthernet0/0

(config-router)# passive-interface FastEthernet0/1

(config-router)# network 192.168.1.0 (config-router)# network 209.165.200.0

(config-router)# default-information originate (config-router)# no auto-summary

配置路由器主机名:(config)#hostname BRANCH 1 配置接口IP:

(config)# interface fastethernet0/0

(config-if)# ip add 172.16.0.1 255.255.254.0

启用接口:(config-if)# no shutdown

(config)# interface fastethernet0/1

(config-if)# ip add 172.16.2.1 255.255.254.0

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/0

(config-if)# ip add 209.165.200.226 255.255.255.252 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip

(config-router)# version 2

(config-router)# passive-interface FastEthernet0/0 (config-router)# passive-interface FastEthernet0/1

(config-router)# network 172.16.0.0 (config-router)# network 209.165.200.0

(config-router)# default-information originate (config-router)# no auto-summary

配置路由器主机名:(config)#hostname BRANCH 2

23

路由技术实训报告

配置接口IP:

(config)# interface fastethernet0/0

(config-if)# ip add 172.16.4.1 255.255.255.128

启用接口:(config-if)# no shutdown

(config)# interface fastethernet0/1

(config-if)# ip add 172.16.4.129 255.255.255.128

启用接口:(config-if)# no shutdown

(config)# interface serial0/0/1

(config-if)# ip add 209.165.200.230 255.255.255.252 (config-if)# clock rate 64000

启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip

(config-router)# version 2

(config-router)# passive-interface FastEthernet0/0 (config-router)# passive-interface FastEthernet0/1

(config-router)# network 172.16.0.0 (config-router)# network 209.165.200.0

(config-router)# default-information originate (config-router)# no auto-summary

3)禁用DNS查找:(config)# no ip domain-lookup 4)配置控制台连接的口令:(config)#line console 0

(config-line)#password cisco (config-line)#login

5) 配置 VTY 连接口令:(config)# line vty 0 2

(config-line)#password cisco (config-line)#login

四、实训结果

BRANCH1#show run

Building configuration...

Current configuration : 834 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname BRANCH1 ! !

interface FastEthernet0/0

ip address 172.16.0.1 255.255.254.0

24

路由技术实训报告

duplex auto speed auto !

interface FastEthernet0/1

ip address 172.16.2.1 255.255.254.0 duplex auto speed auto !

interface Serial0/0/0

ip address 209.165.200.226 255.255.255.252 clock rate 64000 !

interface Serial0/0/1 no ip address shutdown !

interface Vlan1 no ip address shutdown !

router rip version 2

passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 172.16.0.0 network 209.165.200.0

default-information originate no auto-summary !

ip classless !

line con 0

password cisco login

line vty 0 4 password cisco login ! ! end

HQ#show run

Building configuration...

Current configuration : 857 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec

25

路由技术实训报告

no service password-encryption !

hostname HQ ! !

interface FastEthernet0/0

ip address 192.168.1.1 255.255.255.128 duplex auto speed auto !

interface FastEthernet0/1

ip address 192.168.1.129 255.255.255.192 duplex auto speed auto !

interface Serial0/0/0

ip address 209.165.200.225 255.255.255.252 !

interface Serial0/0/1

ip address 209.165.200.229 255.255.255.252 clock rate 64000 !

interface Vlan1 no ip address shutdown !

router rip version 2

passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 192.168.1.0 network 209.165.200.0

default-information originate no auto-summary !

ip classless !

line con 0

password cisco login

line vty 0 4 password cisco login ! ! ! End

BRANCH2#show run

26

路由技术实训报告

Building configuration...

Current configuration : 783 bytes !

version 12.3

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname BRANCH2 ! !

interface FastEthernet0/0

ip address 172.16.4.1 255.255.255.128 duplex auto speed auto !

interface FastEthernet0/1

ip address 172.16.4.129 255.255.255.128 duplex auto speed auto !

interface Serial0/0/0 no ip address shutdown !

interface Serial0/0/1

ip address 209.165.200.230 255.255.255.252 !

interface Vlan1 no ip address shutdown !

router rip version 2

passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 172.16.0.0 network 209.165.200.0

default-information originate no auto-summary !

ip classless !

line con 0 line vty 0 4 login ! ! ! end

27

路由技术实训报告

五、实训结果分析

关于本实训老师交给我们的办法是清除并重启路由器之后,把实训指导书上的配置口令直接粘贴到路由器上进行配置,可是到了最后我发现不管我只能做都是错的,最后在我的耐心检查下,发现指导书上粘贴下来的有一些配置ip地址的口令是错的,最后改过累之后发现变成了完成100%,关于本实训我最想说的就是要细心.不要心浮气躁。

实训项目六:标准访问控制列表

一、实训目的

通过本次的实训,学会采用数字编号配置标准的ACL,同时配置命名标准的ACL。

二、实训任务

? 配置采用数字编号的标准 ACL ? 配置命名标准 ACL

三、实训过程

28

路由技术实训报告

1、地址规划表 设备 R1 接口 Fa0/0 Fa0/1 S0/0/0 Fa0/0 R2 S0/0/0 S0/0/1 S0/1/0 R3 Fa0/0 S0/0/1 Fa0/0 ISP PC1 PC2 PC3 PC4 WEB/TFTP Server WEB Server Outside Host

Fa0/1 S0/0/1 网卡 网卡 网卡 网卡 网卡 网卡 网卡 IP 地址 192.168.10.1 192.168.11.1 10.1.1.1 192.168.20.1 10.1.1.2 10.2.2.1 192.168.30.1 10.2.2.2 209.165.201.1 子网掩码 255.255.255.0 255.55.255.0 255.255.255.252 255.255.255.0 255.255.255.252 255.255.255.252 255.255.255.0 255.255.255.252 255.255.255.224 默认网关 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 不适用 192.168.10.1 192.168.11.1 192.168.30.1 192.168.30.1 192.168.20.1 209.165.201.1 209.165.200.225 255.255.255.224 209.165.202.129 255.255.255.224 209.165.200.226 255.255.255.224 192.168.10.10 192.168.11.10 192.168.30.10 192.168.30.128 192.168.20.254 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 209.165.201.30 255.255.255.224 209.165.202.158 255.255.255.224 209.165.202.129 2、操作步骤及命令

1)配置ACL: R1上

(config)# acccess-list 10 deny 192.168.10.0 0.0.0.255

(config)#access-list 10 permit any 配置标准ACL的出站接口:(config)#interface fa0/1

(config-if)#ip access-group 10 out

R2上

(config)# acccess-list 11 deny 192.168.11.0 0.0.0.255

(config)#access-list 11 permit any 配置标准ACL的出站接口:

(config)#interface serial0/1/0 (config-if)#ip access-group 11 out

2) 在R3上配置命名标准ACL

(config)#ip access-list standard NO_ACCESS

(config-std-nacl)#deny host 192.168.30.128 (config-std-nacl)#permit any

配置命名后的标准ACL的入站接口:

(config)#interface fa0/0

(config-if)#ip access-group NO_ACCESS in

29

本文来源:https://www.bwwdw.com/article/cjt.html

Top