思科设备策略路由配置

1.配置基本的IP地址
R1#conf t
R1(config)#int f0/0
R1(config-if)#ip add 12.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f0/1
R1(config-if)#ip add 13.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f1/0
R1(config-if)#ip add 10.1.1.254 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f2/0
R1(config-if)#ip add 10.1.2.254 255.255.255.0
R1(config-if)#no shutdown
R2#conf t
R2(config)#int f0/0
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config)#int loopback 0
R2(config-if)#ip add 8.8.8.8 255.255.255.0
R2(config-if)#no shut
R3#conf t
R3(config)#int f0/0
R3(config-if)#ip add 13.1.1.3 255.255.255.0
R3(config-if)#no shut
R3(config)#int loopback 0
R3(config-if)#ip add 13.1.1.3 255.255.255.0
R3(config-if)#ip add 8.8.8.8 255.255.255.0
R3(config-if)#no shut
R4#conf t
R4(config)#hostname switch1
switch1(config)#no ip routing
R5#conf t
R5(config)#hostname switch2
switch2(config)#no ip routing
R6#conf t
R6(config)#hostname PC1
PC1(config)#int f0/0
PC1(config-if)#ip add 10.1.1.1 255.255.255.0
PC1(config-if)#no shut
PC1(config)#ip default-gateway 10.1.1.254
R7#conf t
R7(config)#int f0/0
R7(config-if)#ip add 10.1.2.1 255.255.255.0
R7(config-if)#no shut
R7(config-if)#no ip routing
R7(config)#ip default-gateway 10.1.2.254
R7(config)#hostname PC2
2.配置外网回程路由
R2(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.1
R3(config)#ip route 0.0.0.0 0.0.0.0 13.1.1.1
3.定义SLA监控列表
R1(config)#ip sla monitor responder
R1(config)#ip sla monitor 1
R1(config-sla-monitor)#KaTeX parse error: Expected 'EOF', got '#' at position 82: …a-monitor-echo)#̲frequency 5 R1(…rotocol ipicmpEcho 13.1.1.3 source-ipaddr 13.1.1.1
R1(config-sla-monitor-echo)#frequency 5
R1(config-sla-monitor-echo)#exit
R1(config)#ip sla monitor schedule 2 life forever start-time now
4.使用track跟踪对象来关联IP-sla
R1(config)#track 1 rtr 1
R1(config)#track 2 rtr 2
5.定义ACL列表抓流量
R1(config)#access-list 100 permit ip 10.1.1.0 0.0.0.255 any
R1(config)#access-list 110 permit ip 10.1.2.0 0.0.0.255 any
6.配置PBR(关联SLA)
R1(config)#route-map pbr permit 10
R1(config-route-map)#match ip address 100
R1(config-route-map)#set ip next-hop verify-availability 12.1.1.2 10 track 1
R1(config-route-map)#set ip next-hop 13.1.1.3
R1(config-route-map)#exit
R1(config)#route-map pbr permit 20
R1(config-route-map)#match ip address 110
R1(config-route-map)#set ip next-hop verify-availability 13.1.1.3 10 track 2
R1(config-route-map)#set ip next-hop 12.1.1.2
7.在数据流入接口上进行PBR应用
R1(config)#int range f1/0 , f2/0
R1(config-if-range)#ip policy route-map pbr
8.配置NAT
R1(config)#access-list 120 permit ip any any
R1(config)#route-map nat1 permit 10
R1(config-route-map)#match ip address 120
R1(config-route-map)#match interface fastEthernet 0/0
R1(config-route-map)#exit
R1(config)#route-map nat2 permit 10
R1(config-route-map)#match ip address 120
R1(config-route-map)#match interface fastEthernet 0/1
R1(config-route-map)#exit
R1(config)# ip nat inside source route-map nat1 interface fastEthernet 0/0 overload
R1(config)# ip nat inside source route-map nat2 interface fastEthernet 0/1 overload
R1(config)#int range f0/0 , f0/1
R1(config-if-range)#ip nat outside
R1(config-if-range)#int range f1/0 , f2/0
R1(config-if-range)#ip nat inside
9.验证配置:关闭R2的f0/0接口后,立刻切换

思科设备策略路由配置相关推荐

  1. 华为ac配置radius认证服务器_华为思科设备RADIUS配置教程

    1. RADIUS 配置 RADIUS 客户端配置: 思科设备例子: 交换机和路由器的配置: aaa new-model aaa authentication login auth group rad ...

  2. 华为ac配置radius认证服务器_华为ac配置radius认证服务器_华为思科设备RADIUS配置教程...

    1. RADIUS 配置 RADIUS 客户端配置: 思科设备例子: 交换机和路由器的配置: aaa new-model aaa authentication login auth group rad ...

  3. 思科设备snmp配置。

    1.设置IOS设备在IOS的Enable状态下,敲入 config terminal进入全局配置状态 Cdp run启用CDP snmp-server community gsunion ro \\配 ...

  4. 分公司网络建设---Juniper 设备策略路由配置

    分公司网络建设---Juniper网络设备策略路由配置 分公司的网络建设,内网通过ospf实现路由访问,防火墙连接外网和录音平台,流量访问要实现明细化,即访问平台的流量通过平台的专线,访问外网的流量通 ...

  5. 【技术分享】思科设备ISIS配置

    宠粉福利:CCNA/HCIA录播视频免费送,免费送https://mp.weixin.qq.com/s/qHyXvs0MUi-TQudj8iybSQ 实验目的 掌握ISIS的基本配置 掌握常用的ISI ...

  6. 华为思科设备NTP配置

    思科 配置NTP,需要配置一个接口ip可以跟NTP服务器连通,例子中接口名为untrust ntp server 5.224.18.20 source untrust 设置时区 clock timez ...

  7. 思科设备VLAN配置命令

    Cisco(config-if)#switchport trunk encapsulation dot1q //指定trunk封装协议 Cisco(config-if)#switchport mode ...

  8. 思科设备基本配置命令

    1.console口设密码 R1(config)#line console 0 R1(config-line)#login local R1(config-line)#login R1(config- ...

  9. 思科设备三层交换配置路由实现互通

    实验拓扑:

最新文章

  1. 用DataReader还是DataSet?
  2. 为什么微博用jsoup爬取不出来东西_腾讯面试题: 百度搜索为什么那么快? | 原力计划...
  3. Java Hashmap:如何从价值中获取关键?
  4. 在Visual Studio 2010中创建多项目(解决方案)模板【三】
  5. Jetpack CameraX 最新最全解读-开发实践
  6. 学习oop知识之OOP的封装
  7. Linux-Ubuntu 启用root账户
  8. c++ 打印条码_金蝶盘点机PDA仓库条码管理之——外购入库扫码开单操作
  9. cuda加速的头文件_如何从C ++头文件调用CUDA文件?
  10. [从零开始]HelloWorld——第一个应用程序
  11. 手机MODEM 开发(24)---93 modem如何打开GSM AMR-WB
  12. 事后分析报告(M2阶段)
  13. 程序员不努力,和咸鱼有什么分别?
  14. 2017年国家二级c语言题库,2017年计算机二级c语言题库及答案
  15. 语言文件怎么放电脑c盘,电脑c盘怎么格式化
  16. 纯HTML5+CSS3仿B站首页
  17. 计算方法(数值分析)实验:勒让德多项式求展开的三次平方逼近多项式代码实现 java
  18. Gossip in Cassandra
  19. 详解Linux基础网络服务之DNS域名解析
  20. aardio修改图标

热门文章

  1. lstm训练情感分析的优点_NLP入门(十)使用LSTM进行文本情感分析
  2. C_C++圣战(摘录)
  3. Maven报Missing artifact ojdbc:ojdbc:jar:14错误解决方法
  4. oracle19c数据库用11g驱动包,OJDBC14.jar包11g最新版数据库驱动官方版
  5. 如何用画图将另一个图片的成分复制粘贴?
  6. H264 NALU详解
  7. 花语简读|解读(精油香型与功效)
  8. java实现json_java实现Json格式美化【工具包系列】
  9. C++ Primer学习(6)
  10. 石家庄计算机专接本教育机构哪个好,河北专接本哪个院校比较好?