zoukankan      html  css  js  c++  java
  • 神州数码策略路由(PBR)配置

    实验要求:掌握PBR配置的方法

    拓扑如下

    R1

    enable  进入特权模式

    config  进入全局模式

    hostname R1  修改名称

    interface s0/1  进入端口

    ip address 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface g0/6  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    exit  返回上一级

    ip access-list standard 1  创建标准访问列表

    permit 192.168.2.0 255.255.255.0  设置允许通过的地址

    exit  返回上一级

    route-map test  创建地图

    match ip address 1  设置地图中的地址

    set ip next-hop 192.168.1.2  设置地图的下一跳

    exit  返回上一级

    interface g0/6  进入端口

    ip policy route-map test  应用地图

     

    R2

    enable  进入特权模式

    config  进入全局模式

    hostname R2  修改名称

    interface s0/2  进入端口

    ip address 192.168.1.2 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface g0/6  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    exit  返回上一级

    ip route 192.168.2.0 255.255.255.0 192.168.1.1  设置静态路由

     

    相关命令

    route-map [name]         创建地图

    match ip address [IP访问列表]    设置地图源地址

    set ip next-hop [下一跳地址]     设置地图下一跳地址

    ip policy route-map [地图名]      将地图与端口绑定

  • 相关阅读:
    纯css制作带三角(兼容所有浏览器)
    xmapp 404设置
    css 选择器
    IE6/IE7/IE8下float:right的异常及其解决方法
    artdialog5 bug
    jQuery插件开发--(转)
    Global对象
    JS 关于(function( window, undefined ) {})(window)写法的理解
    wx-charts 微信小程序图表插件
    小程序二次贝塞尔曲线,购物车商品曲线飞入效果
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9325083.html
Copyright © 2011-2022 走看看