【思科模拟器实验】路由选择原则

拓扑图

在这里插入图片描述

配置命令

R1

enable
erase startup-config //清除保存配置
reload //重启设备
conf t
hostname R1
int f 0/0
ip add 10.1.1.1 255.255.255.0
no shutdown
exit
int f 1/0
ip add 40.1.1.1 255.255.255.0
no shutdown
exit
int f 2/0
ip add 1.1.1.254 255.255.255.0
no shutdown
exit

ip route 4.4.4.0 255.255.255.0 10.1.1.2
ip route 0.0.0.0 0.0.0.0 40.1.1.2

R2

enable
conf t
hostname R2
int f 0/0
ip add 10.1.1.2 255.255.255.0
no shutdown
exit
int f 1/0
ip add 20.1.1.1 255.255.255.0
no shutdown
exit
int f 2/0
ip add 2.2.2.254 255.255.255.0
no shutdown
exit
int f 3/0
ip add 50.1.1.1 255.255.255.0
no shutdown
exit

ip route 0.0.0.0 0.0.0.0 10.1.1.1
router ospf 100
router-id 2.2.2.2
network 20.1.1.0 0.0.0.255 area 0
network 2.2.2.0 0.0.0.255 area 0
default-information originate //路由引入
exit

router rip
version 2
no auto-summary
network 50.0.0.0

int f 4/0
ip add 60.1.1.1 255.255.255.0
no shutdown
ip ospf cost 1
exit
router ospf 100
network 60.1.1.0 0.0.0.255 area 0

R3

enable
conf t
hostname R3
int f 0/0
ip add 30.1.1.1 255.255.255.0
no shutdown
exit
int f 1/0
ip add 20.1.1.2 255.255.255.0
no shutdown
exit
int f 2/0
ip add 3.3.3.254 255.255.255.0
no shutdown
exit

router ospf 100
router-id 3.3.3.3
network 20.1.1.0 0.0.0.255 area 0
network 30.1.1.0 0.0.0.255 area 0
network 3.3.3.0 0.0.0.255 area 0

R4

enable
conf t
hostname R4
int f 0/0
ip add 30.1.1.2 255.255.255.0
no shutdown
exit
int f 1/0
ip add 40.1.1.2 255.255.255.0
no shutdown
exit
int f 2/0
ip add 4.4.4.254 255.255.255.0
no shutdown
exit
int f 3/0
ip add 50.1.1.2 255.255.255.0
no shutdown
exit

router ospf 100
router-id 4.4.4.4
network 30.1.1.0 0.0.0.255 area 0
network 40.1.1.0 0.0.0.255 area 0
network 4.4.4.0 0.0.0.255 area 0
exit

router rip
version 2
no auto-summary
network 50.0.0.0
network 4.0.0.0

int f 4/0
ip add 60.1.1.2 255.255.255.0
no shutdown
ip ospf cost 1
exit
router ospf 100
network 60.1.1.0 0.0.0.255 area 0

实验结果

R1

在这里插入图片描述

R2

在这里插入图片描述

R3

在这里插入图片描述

R4

在这里插入图片描述

Ping

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

KiriSoyer

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值