交换路由中期测验20181205(DHCP、IOS、静态路由、RIP、EIGRP)

测试拓扑:

知识点:DHCP;IOS的备份恢复与更新;静态路由;动态路由(RIP);动态路由(EIGRP)

1.DHCP

拓扑:

主要指令:

              ip dhcp pool 地址池名称

              network 网络号 子网掩码

详细配置(参考答案):

详细配置:

int f0/0

ip add 192.168.15.1 255.255.255.0

no shu

exit

ip dhcp pool lilywhite

network 192.168.15.0 255.255.255.0

exit

PC机下IP设置为DHCP自动获取IP地址,验证结果。

 

2.IOS的备份恢复与更新

拓扑:

题目背景:

进入1841路由器后显示rommon 1,显然只剩下最基础的bash环境了,需要通过Server0服务器上保存的IOS进行恢复的操作。

操作步骤:

      tftpdnld(进入tftpdownload模式,从而方便查看参数

               IP_ADDRESS=192.168.1.2

               IP_SUBNET_MASK=255.255.255.0

               DEFAULT_GATEWAY=192.168.1.1

               TFTP_SERVER=192.168.1.1

               TFTP_FILE=c1841-advipservicesk9-mz.124-15.T1.bin

                (值得注意的是这里的文件名是从服务器copy下的文件名)

               tftpdnld(再次进入tftpdnld模式查看)

                   (此时显示出参数信息,并询问是否下载IOS,并烧录,输入y开始烧录)

               boot(烧录成功后,加载系统)

值得注意的是:必须要先确认好Server0服务器的IP地址,否则无法与服务器联通,下载不了数据。

3.静态路由

拓扑:

主要指令:

      ip   route   目标网络号   子网掩码   下一跳

详细配置(参考答案):

标红处代表当前路由配置信息,下同

1.1.1.1

int loop 0

ip add 1.1.1.1 255.255.255.0

no shu

exit

int f0/0

ip add 12.15.15.1 255.255.255.0

no shu

exit

int f0/1

ip add 15.15.15.2 255.255.255.0

exit

ip route 13.15.15.0 255.255.255.0 12.15.15.2

ip route 14.15.15.0 255.255.255.0 12.15.15.2

ip route 2.2.2.0 255.255.255.0 12.15.15.2

ip route 3.3.3.0 255.255.255.0 12.15.15.2

ip route 4.4.4.0 255.255.255.0 15.15.15.1

2.2.2.2:

int loop 0

ip add 2.2.2.2 255.255.255.0

no shu

exit

int f0/0

ip add 12.15.15.2 255.255.255.0

no shu

exit

int f0/1

ip add 13.15.15.1 255.255.255.0

no shu

exit

ip route 14.15.15.0 255.255.255.0 13.15.15.2

ip route 15.15.15.0 255.255.255.0 12.15.15.1

ip route 1.1.1.0 255.255.255.0 12.15.15.1

ip route 3.3.3.0 255.255.255.0 13.15.15.2

ip route 4.4.4.0 255.255.255.0 13.15.15.2

3.3.3.3:

int loop 0

ip add 3.3.3.3 255.255.255.0

no shu

exit

int f0/0

ip add 13.15.15.2 255.255.255.0

no shu

exit

int f0/1

ip add 14.15.15.1 255.255.255.0

no shu

exit

ip route 12.15.15.0 255.255.255.0 13.15.15.1

ip route 15.15.15.0 255.255.255.0 14.15.15.2

ip route 2.2.2.0 255.255.255.0 13.15.15.1

ip route 4.4.4.0 255.255.255.0 14.15.15.2

ip route 1.1.1.0 255.255.255.0 13.15.15.1

4.4.4.4:

int loop 0

ip add 4.4.4.4 255.255.255.0

no shu

exit

int f0/0

ip add 14.15.15.2 255.255.255.0

no shu

exit

int f0/1

ip add 15.15.15.1 255.255.255.0

no shu

exit

ip route 12.15.15.0 255.255.255.0 15.15.15.2

ip route 13.15.15.0 255.255.255.0 14.15.15.1

ip route 1.1.1.0 255.255.255.0 15.15.15.2

ip route 2.2.2.0 255.255.255.0 15.15.15.2

ip route 3.3.3.0 255.255.255.0 14.15.15.1

4.动态路由(RIP)排错

拓扑:

错误点:

R10:

RIP配置错误:宣告网络的主类号和RIP版本错误,没有关闭自动聚合。

R11:

F0/0和F0/1的IP地址配置错误;

RIP配置错误:缺少宣告网络的主类号,没有关闭自动聚合。

R12:

缺少loopback接口的IP;

F0/0接口的IP地址设置错误,F0/1接口上多了个IP地址;

RIP配置错误:同上。

更正后配置:

R10

iterface Loopback1

  ip address 1.1.1.1 255.255.255.0

!

interface FastEthernet0/0

  ip address 12.1.1.1 255.255.255.0

!

router rip

  version 2

  network 1.0.0.0

  network 12.0.0.0

  no auto-summary

R11

iterface Loopback1

  ip address 2.2.2.2 255.255.255.0

!

interface FastEthernet0/0

  ip address 12.1.1.2 255.255.255.0

!

interface FastEthernet0/1

  ip address 23.1.1.1 255.255.255.0

!

router rip

  version 2

  network 2.0.0.0

  network 12.0.0.0

  network 23.0.0.0

  no auto-summary

R12:

iterface Loopback0

  ip address 3.3.3.3 255.255.255.0

!

interface FastEthernet0/0

  ip address 23.1.1.2 255.255.255.0

!

router rip

  version 2

  network 3.0.0.0

  network 23.0.0.0

  no auto-summary

5.动态路由(EIGRP)

拓扑:

主要指令:

              router eigrp X

              network 网络号

              no auto-summary(关闭自动聚合)

详细配置(参考答案):

R2

int f0/0

ip add 192.168.56.1 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.12.254 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.12.0

network 192.168.56.0

no auto-summary

R3:

int f0/0

ip add 192.168.56.2 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.34.1 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.34.0

network 192.168.56.0

no auto-summary

R4:

int f0/0

ip add 192.168.56.3 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.23.254 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.23.0

network 192.168.56.0

no auto-summary

R5:

int f0/0

ip add 192.168.34.2 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.45.254 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.34.0

network 192.168.45.0

no auto-summary

原文地址:https://www.cnblogs.com/lilywhite/p/10073025.html