更新时间:2023-12-08                  
                  
                  
  
  
  1IP-PBR配置命令
 
   IP-PBR配置命令包括: 
 
   • ip pbr  
 
   • show ip pbr  
 
   • show ip pbr policy  
 
   • debug ip pbr    
 
  1.1ip pbr
 
   命令描述  
 
   ip pbr  
 
   no ip pbr  
 
   参数  
 
   无 
 
   缺省  
 
   关闭IP-PBR 功能。 
 
   说明  
 
   配置IP-PBR功能开启和关闭,no命令恢复到默认值。 
 
   示例  
 
   switch_config# ip pbr  
 
   switch_config#  
 
  1.2show ip pbr 
 
   命令描述  
 
   show ip pbr    
 
   参数  
 
   无 
 
   缺省  
 
   无  
 
   说明  
 
   显示 IP-PBR的配置信息。  
 
   示例  
 
   下面的命令将显示运行IP-PBR的信息  
 
   switch_config# show ip pbr  
 
   IP policy based route state: enabled 
 
   
 
   No equiv exf apply item 
 
   
 
   VLAN3 use route-map ddd, and has 1 entry active. 
 
   ------------------ 
 
   Entry sequence 10, permit 
 
     Match ip access-list: 
 
       ac1 
 
     Set Outgoing nexthop 
 
   90.0.0.3 
 
   switch_config#  
 
  1.3show ip pbr policy 
 
   命令描述  
 
   show ip pbr policy    
 
   参数  
 
   无 
 
   缺省  
 
   无  
 
   说明  
 
   显示 IP-PBR的策略路由配置信息。  
 
   示例  
 
   下面的命令将显示IP-PBR的策略路由配置信息。 
 
   IP policy based route state: enabled 
 
   
 
   VLAN3 use route-map ddd, and has 1 entry active. 
 
   ------------------ 
 
   Entry sequence 10, permit 
 
     Match ip access-list: 
 
       ac1 
 
     Set Outgoing nexthop 
 
       90.0.0.3  
 
   switch_config#    
 
     
 
  1.4debug ip pbr 
 
   命令描述  
 
   debug ip pbr  
 
   no debug ip pbr    
 
   参数  
 
   无 
 
   缺省  
 
   无  
 
   说明  
 
   打开/关闭 IP-PBR的调试开关。  
 
   示例  
 
   下面的命令将打开IP-PBR的调试开关。 
 
   switch_config# debug ip pbr  
 
   switch_config#