R1 R2 R6组成外网使用ospf协议,R6回环口1.1.1.1

R3为出口路由器f0/0 和f1/0都可以访问到1.1.1.1

R4 R5充当PC机器

R6:配置

interface Loopback0

ip address 1.1.1.1 255.255.255.255

!

interface FastEthernet0/0

ip address 16.1.1.6 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 26.1.1.6 255.255.255.0

duplex auto

speed auto

!

router ospf 1

log-adjacency-changes

network 1.1.1.1 0.0.0.0 area 0

network 16.1.1.0 0.0.0.255 area 0

network 26.1.1.0 0.0.0.255 area 0

!

R5 配置

interface FastEthernet0/0

ip address 192.168.2.2 255.255.255.0

no ip route-cache

duplex auto

speed auto

!

ip default-gateway 192.168.2.1

R4配置

interface FastEthernet0/0

ip address 192.168.1.2 255.255.255.0

no ip route-cache

duplex auto

speed auto

!

ip default-gateway 192.168.1.1

R3配置

SLA配置

ip sla monitor 1

type echo protocol ipIcmpEcho 13.1.1.1

ip sla monitor schedule 1 life forever start-time now

ip sla monitor 2

type echo protocol ipIcmpEcho 23.1.1.2

timeout 60000 这里我延迟一分钟切换

ip sla monitor schedule 2 life forever start-time now

定义跟踪

track 123 rtr 1 reachability

track 124 rtr 2 reachability

interface FastEthernet0/0

ip address 13.1.1.3 255.255.255.0

ip nat outside

ip virtual-reassembly

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 23.1.1.3 255.255.255.0

ip nat outside

ip virtual-reassembly

duplex auto

speed auto

!

interface FastEthernet2/0

ip address 192.168.1.1 255.255.255.0

ip nat inside

ip virtual-reassembly

ip policy route-map 1

duplex auto

speed auto

!

interface FastEthernet3/0

ip address 192.168.2.1 255.255.255.0

ip nat inside

ip virtual-reassembly

ip policy route-map 1

duplex auto

speed auto

!

ip http server

no ip http secure-server

ip route 0.0.0.0 0.0.0.0 13.1.1.1 track 123

ip route 0.0.0.0 0.0.0.0 23.1.1.2 track 124

!

!

ip nat inside source route-map 2 interface FastEthernet0/0 overload

ip nat inside source route-map 3 interface FastEthernet1/0 overload

ip nat inside source route-map 4 interface FastEthernet0/0 overload

ip nat inside source route-map 5 interface FastEthernet1/0 overload

!

ip access-list extended all-net

access-list 1 permit 192.168.1.0 0.0.0.255

access-list 2 permit 192.168.2.0 0.0.0.255

!

route-map 1 permit 10

match ip address 1

set ip next-hop verify-availability 13.1.1.1 1 track 123 (低级别路由器貌似不支持verify-availability )

set ip next-hop verify-availability 23.1.1.2 2 track 124

!

route-map 1 permit 20

match ip address 2

set ip next-hop verify-availability 23.1.1.2 1 track 124

set ip next-hop verify-availability 13.1.1.1 2 track 123

!

route-map 2 permit 10

match ip address 1

match ip next-hop 3

!

route-map 3 permit 10

match ip address 1

match ip next-hop 4

!

route-map 4 permit 10

match ip address 2

match ip next-hop 3

!

route-map 5 permit 10

match ip address 2

match ip next-hop 4

R2配置

interface FastEthernet0/0

ip address 26.1.1.2 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 23.1.1.2 255.255.255.0

duplex auto

speed auto

!

router ospf 1

log-adjacency-changes

network 23.1.1.0 0.0.0.255 area 0

network 26.1.1.0 0.0.0.255 area 0

R1配置

interface FastEthernet0/0

ip address 16.1.1.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 13.1.1.1 255.255.255.0

duplex auto

speed auto

!

router ospf 1

log-adjacency-changes

network 13.1.1.0 0.0.0.255 area 0

network 16.1.1.0 0.0.0.255 area 0

转载于:https://blog.51cto.com/liy1986/980904

ISP双线冗余路由器配置相关推荐

  1. 新书《路由器配置与管理完全手册——Cisco篇》目录抢鲜暴光

    经过对几千名读者的调查,经与出版社协商,原计划的<Cisco/H3C路由器配置与管理完全手册>一书,决定拆分成两本,分别是<路由器配置与管理完全手册--Cisco篇>和< ...

  2. 最详细的CISCO路由器配置命令及方法

    第一章 路由器配置基础 一.基本设置方式 二.命令状态 三.设置对话过程 四.常用命令 五.配置IP寻址 六.配置静态路由 第二章 广域网协议设置 一.HDLC 二.PPP 三.X.25 四.Fram ...

  3. 网络工程师学习参考资料路由器配置案例分析

    网络工程师学习参考资料路由器配置案例分析 2006-08-30 23:01:00 标签:配置 路由器 案例 网络工程师 [推送到技术圈] INTERNET共享资源的方式越来越多,就大多数而言,DDN专 ...

  4. wan口有流量但电脑上不了网_路由器wan口流量_双WAN口路由器配置(WAN口设置/WAN口在线检测/流量均衡控制)_路由器检测不到wan...

    双WAN口路由器配置(WAN口设置/WAN口在线检测/流量均衡控制) 不少网吧都采用了双WAN路由器的双WAN口接入设计,但是对于如何使用好这样的设备,用户有不少疑问,我们针对这种路由器中的WAN口设 ...

  5. 路由器配置(新手上路,比较全面,强烈推荐)

    路由器配置(新手上路,比较全面,强烈推荐) 第一章 路由器配置基础 一.基本设置方式 二.命令状态 三.设置对话过程 四.常用命令 五.配置IP寻址 六.配置静态路由 第二章 广域网协议设置 一.HD ...

  6. 对基于ubuntu18.04搭建双线adsl路由器和私有云服务器(samba、ftp和http)一文的更正2

    在<基于ubuntu18.04搭建双线adsl路由器和私有云服务器(samba.ftp和http)>一文中对于adsl断线重拨后自动更新路由表的脚本,少了自动平衡双线adsl流量的命令,将 ...

  7. 点对点OSPF路由器配置

    OSPF参考拓扑 该图显示了用于在此模块中配置OSPFv2的拓扑.拓扑中的路由器具有起始配置,包括接口地址.当前,在任何路由器上都没有配置静态路由或动态路由.R1,R2和R3上的所有接口(R2上的环回 ...

  8. 如何备份思科cisco路由器配置

    如何备份思科cisco路由器配置文件        本资料之提供大家参考学习^*^   有什么不懂的地方在博客中留言  QQ:569535658           发布时间:2009-4-08 15 ...

  9. 第7章 路由器配置及使用

    第7章 路由器配置及使用 选择题21-24,综合题第2题(80%) 考点1:路由器的结构 1.路由器的概念 路由器是工作在网络层的设备,负责将数据分组从源端主机经最佳路径传送到目的端主机,实现在网络层 ...

最新文章

  1. boost::transform_iterator用法的测试程序
  2. 移动端功能测试需要注意的点
  3. 单元测试:unittest.TestCase
  4. Javascript实现KMP算法
  5. Unity3D基础4:空物体与预制体
  6. 雷军:《硅谷之火》给了我一个世界级的梦想
  7. ie升级后必须重启计算机吗,微软迟到的补丁:升级到IE9将无需重启计算机
  8. thinkphp的商城 好在哪里
  9. 《Sanmill 直棋游戏》创作之旅
  10. ubuntu16.04安装theano
  11. 第一次让你从一架纸飞机的角度看世界
  12. linux自动升级关闭,Ubuntu关闭内核自动更新
  13. python docx 图片_详解用 python-docx 创建浮动图片
  14. android 18x games,Roadgames
  15. unity build报错Type has an extra field of type in the and thus can‘t be serialized error
  16. html图片旋转3种方式—— CSS3 transform
  17. 如何训练出专属的 OpenAI Five ?
  18. Scrapy抓取新浪微博
  19. matlab控制电动机调速,控制电机调速及matlab仿真.doc
  20. 极飞C2000分析报告

热门文章

  1. 计算机毕业设计Java-ssm毕业生就业信息管理系统源码+系统+数据库+lw文档
  2. 【Spring】Spring学习笔记完整篇
  3. 2018年芯片上下游产业链及竞争格局分析
  4. getResourceAsStream读取配置文件路径配置
  5. HDU 6445 Search for Answer(最小费用最大流-mcmf)
  6. 陈华,毕业于北京大学计算机系,唱吧创始人,“唱吧”创始人陈华:如果绕过问题,你也许就会错失改变世界的机会...
  7. 北京唱吧 服务端开发岗位 面经 2019.10.29(秋招)
  8. [OpenGL]使用C++开发无限地形的Minecraft(我的世界 第二版)
  9. 如何用Jmeter上传下载文件
  10. Java版桌面战棋游戏TLOH The Legend of Heroes 开发预告