通过华为交换机vpn实例实现交换机一分为二

通过华为交换机vpn实例实现交换机⼀分为⼆流量拓扑如下
测试流量R1—>FW1---->FW2—>R2
防⽕墙FW1和FW2⾛的是⼆层流量,通过华为交换机上配vlan ip⾛三层流量。
tt27.tv通过华为交换机配置vpn实例,把华为交换机⼀分为⼆,通过ip配置路由⾛三层
配置如下
新建vpn实例
ip vpn-instance test
ipv4-family
route-distinguisher 100:1
生态仪配置vlan ip
interface Vlanif151
ip address 161.1.1.2 255.255.255.0
interface Vlanif152
ip address 161.1.2.1 255.255.255.0
vlan接⼝绑定vpn实例
interface Vlanif153
ip binding vpn-instance test
ip address 161.1.2.2 255.255.255.0
interface Vlanif154
ip binding vpn-instance test
ip address 161.1.3.2 255.255.255.0
接⼝绑定vlan
interface 10GE1/0/19
port default vlan 151钢结硬质合金
port-isolate enable group 1
钍燃料device transceiver 10GBASE-FIBER
interface 10GE1/0/20
port default vlan 154
port-isolate enable group 1
device transceiver 10GBASE-FIBER
interface 10GE1/0/21
port default vlan 152
port-isolate enable group 1
device transceiver 10GBASE-FIBER
interface 10GE1/0/22
port default vlan 153
玻璃夹胶机
port-isolate enable group 1
device transceiver 10GBASE-FIBER
配置路由
ip route-static 8.1.0.0 255.255.0.0 161.1.1.1
ip route-static 8.2.0.0 255.255.0.0 161.1.2.2
四氢呋喃除水配置实例路由
ip route-static vpn-instance test 8.1.0.0 255.255.0.0 161.1.2.1
ip route-static vpn-instance test 8.2.0.0 255.255.0.0 161.1.3.1
可以通过以下命令查看配置路由表
display ip routing-table
display ip routing-table vpn-instance test
个⼈理解实现原理相当于配置了虚拟路由器把不同vlan隔离开来,要通就需要⾛路由。

本文发布于:2024-09-22 06:45:29,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/4/136569.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:配置   交换机   实例
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议