H3C基于源地址策略路由實(shí)例
H3C基于源地址策略路由怎么配置,為幫助大家學(xué)習(xí)H3C路由,yjbys小編為大家分享H3C基于源地址策略路由配置實(shí)例,快來(lái)學(xué)習(xí)吧!
System View: return to User View with Ctrl+Z.
[H3C]acl
[H3C]acl nu
[H3C]acl number 2000
[H3C-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[H3C-acl-basic-2000]qu
[H3C]route-policy aaa permit node 0
%You are modifying this sequence
[H3C-route-policy]if-match acl 2000
[H3C-route-policy]apply ip-address next-hop 192.168.2.1
[H3C-route-policy]qu
[H3C]int e1/0
[H3C-Ethernet1/0]ip policy route-policy aaa
[H3C-Ethernet1/0]qu
[H3C]save
[Master-GigabitEthernet1/0/33]qos apply policy ceshi inbound
5500系列
重定向至下一跳典型配置指導(dǎo)
# 定義基本ACL 2000,對(duì)源IP地址為2.1.1.1的報(bào)文進(jìn)行分類。
[Switch] acl number 2000
[Switch-acl-basic-2000] rule permit source 2.1.1.1 0
[Switch-acl-basic-2000] quit
# 定義基本ACL 2001,對(duì)源IP地址為2.1.1.2的'報(bào)文進(jìn)行分類。
[Switch] acl number 2001
[Switch-acl-basic-2001] rule permit source 2.1.1.2 0
[Switch-acl-basic-2001] quit
# 定義類classifier_1,匹配基本ACL 2000。
[Switch] traffic classifier classifier_1
[Switch-classifier-classifier_1] if-match acl 2000
[Switch-classifier-classifier_1] quit
# 定義流行為behavior_1,動(dòng)作為重定向至200.1.1.2。
[Switch] traffic behavior behavior_1
[Switch-behavior-behavior_1] redirect next-hop 200.1.1.2
[Switch-behavior-behavior_1] quit
# 定義類classifier_2,匹配基本ACL 2001。
[Switch] traffic classifier classifier_2
[Switch-classifier-classifier_2] if-match acl 2001
[Switch-classifier-classifier_2] quit
# 定義流行為behavior_2,動(dòng)作為重定向至201.1.1.2。
[Switch] traffic behavior behavior_2
[Switch-behavior-behavior_2] redirect next-hop 201.1.1.2
[Switch-behavior-behavior_2] quit
# 定義策略policy,為類classifier_1指定流行為behavior_1,為類classifier_2指定流行為behavior_2。
[Switch] qos policy policy
[Switch-qospolicy-policy] classifier classifier_1 behavior behavior_1
[Switch-qospolicy-policy] classifier classifier_2 behavior behavior_2
[Switch-qospolicy-policy] quit
# 將策略policy應(yīng)用到端口GigabitEthernet 1/0/1的入方向上。
[Switch] interface GigabitEthernet 1/0/1
[Switch-GigabitEthernet1/0/1] qos apply policy policy inbound
【H3C基于源地址策略路由實(shí)例】相關(guān)文章:
解析策略路由和路由策略的區(qū)別05-08
路由器初始配置實(shí)例05-05
正確配置路由05-05
極路由怎么重置05-15
OSPF路由匯總教程11-12
PS作圖實(shí)例解析05-05
photoshop實(shí)例教程11-25