首页 > 其他分享 >Policy-based-route

Policy-based-route

时间:2023-04-29 16:31:56浏览次数:33  
标签:aa based R1 route traffic match Policy classifier Specify

策略路由-接口方式
配置ACL
<R1>system-view 
Enter system view, return user view with Ctrl+Z.
[R1]acl 3001
[R1-acl-adv-3001]display  this
[V200R003C00]
#
acl number 3001  
#
return
[R1-acl-adv-3001]rule permit ip source 1.1.1.2 0
[R1-acl-adv-3001]quit
[R1]acl 3002
[R1-acl-adv-3002]rule permit ip source 1.1.1.3 0
[R1-acl-adv-3002]quit
配置流量分类
[R1]traffic classifier ?
  STRING<1-31>  Name of classifier
[R1]traffic classifier aa operator ?
  and  Rule of matching all of the statements
  or   Rule of matching one of the statements
[R1]traffic classifier aa operator or ?
  <cr>  Please press ENTER to execute command 
[R1]traffic classifier aa operator or 
[R1-classifier-aa]?
classifier interface view commands:
  arp-ping  ARP-ping
  backup    Backup  information
  clear     Clear
  dialer    Dialer
  display   Display information
  if-match  Specify matching statement for classification
  mtrace    Trace route to multicast source
  ping      <Group> ping command group
  quit      Exit from current mode and enter prior mode
  reset     <Group> reset command group
  return    Enter the privileged mode
  test-aaa  Accounts test
  tracert   <Group> tracert command group
  undo      Negate a command or set its defaults
[R1-classifier-aa]if-match ?
  8021p              Specify vlan 802.1p to match
  acl                Specify ACL to match
  any                Specify any data packet to match
  app-protocol       Specify app-protocol to match
  cvlan-8021p        Specify inner vlan 802.1p of QinQ packets to match. 
  cvlan-id           Specify inner vlan id of QinQ packets to match. 
  destination-mac    Specify destination MAC address to match
  dlci               Specify a DLCI to match
  dscp               Specify DSCP (DiffServ CodePoint) to match
  fr-de              Specify FR DE to match. 
  inbound-interface  Specify an inbound interface to match
  ip-precedence      Specify IP precedence to match
  ipv6               Specify IPv6 
  l2-protocol        Specify layer-2 protocol to match
  mpls-exp           Specify MPLS EXP value to match
  protocol           Specify ipv4 or ipv6 packets to match
  protocol-group     Specify protocol-group to match
  pvc                Specify a PVC to match
  rtp                Specify RTP port to match
  source-mac         Specify source MAC address to match
  tcp                Specify TCP parameters to match
  vlan-id            Specify a vlan id to match
[R1-classifier-aa]if-match acl 3001 
[R1-classifier-aa]quit
[R1]traffic classifier ?
  STRING<1-31>  Name of classifier
[R1]traffic classifier bb ?
  operator  Specify the operation relation for classification rules 
  <cr>      Please press ENTER to execute command 
[R1]traffic classifier bb op	
[R1]traffic classifier bb operator or ?
  <cr>  Please press ENTER to execute command 
[R1]traffic classifier bb operator or 
[R1-classifier-bb]if-match acl 3002
配置行为
[R1]traffic behavior ?
  STRING<1-31>  Name of behavior
[R1]traffic behavior aa ?
  <cr>  Please press ENTER to execute command 
[R1]traffic behavior aa 
[R1-behavior-aa]?
behavior interface view commands:
  arp-ping        ARP-ping
  backup          Backup  information
  car             Specify CAR (Committed Access Rate) feature
  clear           Clear
  deny            Specify filter deny parameters
  dialer          Dialer
  display         Display information
  drop-profile    Specify IP precedence based WRED
  gts             Specify GTS (General Traffic Shape) feature
  mirror          Mirroring operation of packets
  mtrace          Trace route to multicast source
  permit          Specify filter permit parameters
  ping            <Group> ping command group
  queue           Specify queue feature 
  queue-length    Max queue length
  quit            Exit from current mode and enter prior mode
  redirect        Redirect packets
  remark          Remark QoS values of the packet
  reset           <Group> reset command group
  return          Enter the privileged mode
  statistic       Statistic
  test-aaa        Accounts test
  tracert         <Group> tracert command group
  traffic-policy  Specify nest policy feature
  undo            Negate a command or set its defaults
[R1-behavior-aa]redirect ip-nexthop 12.1.1.2 ?
  post-nat  Post nat
  track     Track nqa
  <cr>      Please press ENTER to execute command 
[R1-behavior-aa]redirect ip-nexthop 12.1.1.2 
[R1]traffic behavior bb ?
  <cr>  Please press ENTER to execute command 
[R1]traffic behavior bb 
[R1-behavior-bb]redirect ip-nexthop 13.1.1.2 ?
  post-nat  Post nat
  track     Track nqa
  <cr>      Please press ENTER to execute command 
[R1-behavior-bb]redirect ip-nexthop 13.1.1.2 
分类和行为关联
[R1]traffic ?
  behavior    Configure traffic behavior 
  classifier  Configure traffic classifier
  policy      Configure traffic policy
[R1]traffic policy ?
  STRING<1-31>  Name of Traffic policy
[R1]traffic policy aa 
[R1-trafficpolicy-aa]?
trafficpolicy interface view commands:
  arp-ping    ARP-ping
  backup      Backup  information
  classifier  Specify the classifier to which policy relates
  clear       Clear
  dialer      Dialer
  display     Display information
  mtrace      Trace route to multicast source
  ping        <Group> ping command group
  quit        Exit from current mode and enter prior mode
  reset       <Group> reset command group
  return      Enter the privileged mode
  test-aaa    Accounts test
  tracert     <Group> tracert command group
  undo        Negate a command or set its defaults
[R1-trafficpolicy-aa]classifier aa behavior aa 
[R1-trafficpolicy-aa]classifier bb behavior bb
[R1-trafficpolicy-aa]display this 
[V200R003C00]
#
traffic policy aa
 classifier aa behavior aa
 classifier bb behavior bb
#
return
[R1-trafficpolicy-aa]
接口调用
[R1-GigabitEthernet0/0/0]traffic-policy aa ?
  inbound   Apply the traffic policy to the inbound direction of the interface
  outbound  Apply the traffic policy to the outbound direction of the interface
[R1-GigabitEthernet0/0/0]traffic-policy aa inbound  ?
  <cr>  Please press ENTER to execute command 
[R1-GigabitEthernet0/0/0]traffic-policy aa inbound  
实验拓扑

Policy-based-route_traffic-behavior

标签:aa,based,R1,route,traffic,match,Policy,classifier,Specify
From: https://blog.51cto.com/u_11726705/6236811

相关文章

  • Policy-based-route
    本地策略路由仅对本地触发的流量生效配置方法-全局模式下配置ACLaclnumber3000rule5permitipdestination7.7.7.00.0.0.255配置方法-全局模式下配置本地路由策略policy-based-routeaapermitnode10if-matchacl3009applyip-addressnext-hop13.1.1.2配置方......
  • Router Function
    https://blog.csdn.net/m0_67778103/article/details/123384914 https://blog.csdn.net/zhang33565417/article/details/122012459?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168266912316800215051889%2522%252C%2522scm%2522%253A%252220140713.130102334......
  • 阅读文献《DCRNet:Dilated Convolution based CSI Feedback Compression for Massive M
    这篇文章的作者是广州大学的范立生老师和他的学生汤舜璞,于2022年10月发表在IEEETRANSACTIONSONVEHICULARTECHNOLOGY。文献提出了一种基于空洞卷积(DilatedConvolution)的CSI反馈网络,即空洞信道重建网络(DilatedChannelReconstructionNetwork,DCRNet)。还设计了编码器和解......
  • syspolicy_purge_history sql job failed
    错误信息如下:'FileC:\ProgramFiles(x86)\MicrosoftSQLServer\130\Tools\PowerShell\Modules\SQLPS\Sqlps.ps1cannotbeloadedbecauserunningscriptsisdisabledonthissystem根据错误信息提示检查发现服务器注册表里缺少内容-Microsoft.SqlServer.Management.Power......
  • EXPLORING MODEL-BASED PLANNING WITH POLICY NETWORKS
    发表时间:2020(ICLR2020)文章要点:这篇文章说现在的planning方法都是在动作空间里randomlygenerated,这样很不高效(其实瞎扯了,很多不是随机的方法啊)。作者提出在modelbasedRL里用policy网络来做onlineplanning选择动作,提出了model-basedpolicyplanning(POPLIN)算法。作者提出......
  • User installations are disabled via policy on the machine. 安装python
    Userinstallationsaredisabledviapolicyonthemachine. 解决办法1、在运行里输入gpedit.msc;(grouppolicy)组策略2、计算机配置管理>>管理模板>>windows组件>>windowsInstaller>>禁止用户安装;3、打开它禁用此项就可以了。    ......
  • VueRouter
    相关理解vue-router理解vue的一个插件库,专门用来实现SPA应用。对SPA应用的理解单个Web应用(singlepagewebapplication,SPA)。整个应用只有一个完整的页面。点击页面中的导航链接不会刷新页面,只会做页面的局部更新。数据需要通过ajax请求获取。路由的理解什么是路......
  • vue-router3.x和vue-router4.x相互影响的问题记录
    背景项目中有一个系统使用的微前端,主站使用是vue2实现的,使用的是vue-router3.x。子应用有使用vue3实现的,使用的为vue-router4.x。该子应用中的页面A有通过操作按钮触发跳转到其他子应用页面B的需求,此时使用的是vue-router4.x的编程式导航API。当通过点击主站的Tab切换回B的时候......
  • vue-router4 配置懒加载 页面加载时展示loading
     懒加载写法{path:"/",name:"index",component:()=>import("../views/Home.vue"),}创建Loading组件并引入到顶层组件中使用store控制loading组件是否展示包装懒加载写法constlazyLoad=(componentPath)=>{//注意:componentPath不......
  • vue-router学习笔记
    1.路由基础配置 https://router.vuejs.org/zh/guide/2.动态路由根据设置的路径参数实现 constroutes=[//动态字段以冒号开始{path:'/users/:id',component:User},]。需要注意的是参数改变时(第一次访问该路径后,第二次起),组件实例被重复使用,会导致vue的生命周期......