• 策略路由实验ACL配置


    一、拓扑图如下

     二、进行配置(策略路由走下)

    R3

    #
    acl number 2000
    rule 5 permit source 3.3.3.0 0.0.0.255
    rule 10 permit source 35.1.1.0 0.0.0.255
    #

    #
    traffic behavior 1
    redirect ip-nexthop 23.1.1.1
    #

    #
    interface GigabitEthernet0/0/0
    ip address 23.1.1.2 255.255.255.0
    traffic-policy test outbound
    #

    #
    interface GigabitEthernet0/0/2
    ip address 35.1.1.1 255.255.255.0

    #
    ospf 1 router-id 3.3.3.3
    area 0.0.0.0

    network 35.1.1.0 0.0.0.255 

     R5

    #
    interface GigabitEthernet0/0/0
    ip address 35.1.1.2 255.255.255.0
    #

    #
    ospf 1
    area 0.0.0.0
    network 35.1.1.0 0.0.0.255
    #

     dis ospf peer

    tracert -a 35.1.1.2 1.1.1.1

     

     R3

    #
    interface GigabitEthernet0/0/0
    ip address 23.1.1.2 255.255.255.0

    undo traffic-policy test inbound

    undo traffic-policy test outbound

    #
    interface GigabitEthernet0/0/2
    ip address 35.1.1.1 255.255.255.0
    traffic-policy test inbound
    #

     R3

    dis traffic-policy test

    dis traffic-profile all

    #
    acl number 2000
    rule 5 permit source 3.3.3.0 0.0.0.255
    rule 10 permit source 35.1.1.0 0.0.0.255
    #

    interface g0/0/2

    undo traffic test inbound

    traffic-policy test

    dis traffic policy user-defined

  • 相关阅读:
    expdp定时备份
    设计模式简介
    利用Python制作万年历
    Linux下Python的安装
    排序算法-直接插入排序
    排序算法-冒泡排序
    数据结构-循环顺序队列&链队列
    数据结构-栈&链栈
    数据结构-双向链表&双向循环链表
    数据结构-单链表&单循环链表
  • 原文地址:https://www.cnblogs.com/yxd1308243944/p/13751821.html
Copyright © 2020-2023  润新知