前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Cisco静态路由和OSPF结合小实验

Cisco静态路由和OSPF结合小实验

作者头像
释然
发布2020-06-05 09:59:44
7990
发布2020-06-05 09:59:44
举报
文章被收录于专栏:释然IT杂谈释然IT杂谈

eve-ng模拟小实验

01

拓扑:

02

配置过程:

R1:

interface Loopback0

ip address 192.168.100.1 255.255.255.0

interface Ethernet0/0

ip address 192.168.127.99 255.255.255.248

exit

ip route 0.0.0.0 0.0.0.0 192.168.127.100

SW1:

interface Ethernet0/1

interface Ethernet0/1

no switchport

ip address 192.168.127.157 255.255.255.252

interface Ethernet0/2

no switchport

ip address 192.168.127.100 255.255.255.248

exit

ip route 0.0.0.0 0.0.0.0 192.168.127.99

ip route 192.168.22.0 255.255.255.0 192.168.127.158

ip route 192.168.36.0 255.255.255.0 192.168.127.158

R2:

interface Ethernet0/0

ip address 192.168.127.213 255.255.255.252

interface Ethernet0/1

ip address 192.168.127.158 255.255.255.252

interface Ethernet0/2

ip address 192.168.127.145 255.255.255.252

router ospf 100

redistribute static subnets

default-information originate

network 192.168.127.144 0.0.0.3 area 0

network 192.168.127.156 0.0.0.3 area 0

network 192.168.127.212 0.0.0.3 area 0

ip route 0.0.0.0 0.0.0.0 192.168.127.157

R3:

interface Ethernet0/0

ip address 192.168.127.146 255.255.255.252

no shut

interface Ethernet0/1

ip address 192.168.22.1 255.255.255.0

no shut

interface Ethernet0/2

ip address 192.168.127.189 255.255.255.252

exit

router ospf 100

network 192.168.22.0 0.0.0.255 area 0

network 192.168.127.144 0.0.0.3 area 0

network 192.168.127.188 0.0.0.3 area 0

R4:

interface Ethernet0/0

ip address 192.168.127.214 255.255.255.252

no shut

interface Ethernet0/1

ip address 192.168.36.1 255.255.255.0

no shut

interface Ethernet0/2

ip address 192.168.127.190 255.255.255.252

router ospf 100

network 192.168.36.0 0.0.0.255 area 0

network 192.168.127.188 0.0.0.3 area 0

network 192.168.127.212 0.0.0.3 area 0

SW2 :

vlan 22

interface Ethernet0/0

switchport access vlan 22

switchport mode access

interface Vlan22

ip address 192.168.22.2 255.255.255.0

ip route 0.0.0.0 0.0.0.0 192.168.22.1

SW3:

vlan 36

interface Ethernet0/0

switchport access vlan 36

switchport mode access

interface Vlan36

ip address 192.168.36.2 255.255.255.0

ip route 0.0.0.0 0.0.0.0 192.168.36.1

03

测试结果:

查看各设备路由表

然后在ping测试:

至此实验完成

END

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2020-06-04,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 释然IT杂谈 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档