h3c msr系列策略路由实验
vlan 20
#
vlan 30
#
policy-based-route pb1 permit node 10
if-match acl 2020
apply next-hop 172.16.11.254
#
policy-based-route pb1 permit node 20
if-match acl 2030
apply next-hop 172.16.30.254
#
policy-based-route pb1 permit node 30
interface Vlan-interface20
ip address 192.168.20.1 255.255.255.0
ip policy-based-route pb1
#
interface Vlan-interface30
ip address 192.168.30.1 255.255.255.0
ip policy-based-route pb1
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 172.16.11.9 255.255.255.0
nat outbound
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 172.16.30.9 255.255.255.0
nat outbound
interface GigabitEthernet6/0
port link-mode bridge
port access vlan 20
combo enable copper
#
interface GigabitEthernet6/1
port link-mode bridge
port access vlan 30
combo enable copper
acl number 2020
rule 0 permit source 192.168.20.0 0.0.0.255
rule 5 deny
#
acl number 2030
rule 0 permit source 192.168.30.0 0.0.0.255
rule 5 deny
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐

所有评论(0)