zoukankan      html  css  js  c++  java
  • 策略路由实验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

  • 相关阅读:
    字符串的问题(strstr和strncpy 水题)
    数一数(KMP+思维)
    栗酱的数列(KMP+思维)
    D. Almost All Divisors(思维)
    E. Two Arrays and Sum of Functions(贪心)
    好位置(思维)
    Just A String(kmp)
    Dubbo简介
    lambda表达式快速创建
    分布式RPC系统框架Dubbo
  • 原文地址:https://www.cnblogs.com/yxd1308243944/p/13751821.html
Copyright © 2011-2022 走看看