Cisco 路由器作业1.2 静默路由

导读:本篇文章讲解 Cisco 路由器作业1.2 静默路由,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com

要求


1、PC3默认数据要从R1的Eth1/2到R3的Eth1/2,当该条线路出现故障的时候,数据从R1的S0/0/0到R2的S0/0/0
2、PC2默认数据要从R3的S0/0/0到R2的S0/0/1,当该条线路出现故障的时候,数据从R3的Eth1/2到R1的Eth1/2
3、实现全网联通

在这里插入图片描述

一、按照线路连接并配置IP


红色线:DCE串口线

用户自定义设备中的路由器2811里面没有Eth1/2模块,需要断电后,移除添加新模块。

在这里插入图片描述
配置各PC的 ip

192.168.149.1
255.255.255.0
192.168.149.254
以此类推

二、路由器1配置


en
conf t
int f0/0
no shut
ip add 192.168.151.254 255.255.255.0
exit
int s0/0/0
no shut
ip add 192.168.0.14 255.255.255.252
exit
int e1/2
no shut
ip add 192.168.0.21 255.255.255.252
exit

三、路由器2配置


交叉线有时钟标志的一端是DCE ,需要设置频率,末端为 DTE 无需设置。

en
conf t
int f0/0
no shut
ip add 192.168.149.254 255.255.255.0
exit
int s0/0/0
no shut
clock rate 64000
ip add 192.168.0.13 255.255.255.252
exit
int s0/0/1
no shut
clock rate 64000
ip add 192.168.0.17 255.255.255.252
exit

四、路由器3配置


en
conf t
int f0/0
no shut
ip add 192.168.150.254 255.255.255.0
exit
int s0/0/0
no shut
ip add 192.168.0.18 255.255.255.252
exit
int e1/2
no shut
ip add 192.168.0.22 255.255.255.252
exit

五、实现全网联通


路由介绍

1、默认路由

格式:0.0.0.0 0.0.0.0 相邻路由地址 1~255(优先级:数值越大,优先级越小)

ip route 0.0.0.0 0.0.0.0 192.168.0.22 7

2、静态路由

格式:指定路由网段、子网掩码、目标地址

ip route 192.168.151.0 255.255.255.0 192.168.0.14

3、动态路由

00

路由器1配置

en
conf t
ip route 0.0.0.0 0.0.0.0 192.168.0.22
ip route 0.0.0.0 0.0.0.0 192.168.0.13 7

路由器2配置

en
conf t
ip route 192.168.150.0 255.255.255.0 192.168.0.18
ip route 192.168.151.0 255.255.255.0 192.168.0.14

路由器3配置

en
conf t
ip route 0.0.0.0 0.0.0.0 192.168.0.17
ip route 0.0.0.0 0.0.0.0 192.168.0.21 7

测试联通

ping 192.168.149.1

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/83739.html

(0)
小半的头像小半

相关推荐

极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!