设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1442|回复: 1
收起左侧

[分享] VPN实验完整文档免费分享

[复制链接]
发表于 2023-8-28 14:27:23 | 显示全部楼层 |阅读模式

                               
登录/注册后可看大图



                               
登录/注册后可看大图

交换机配置端口类型,vlan间互通。


[Huawei]ip vpn-instance AAA

[Huawei-vpn-instance-AAA]ipv4-family

[Huawei-Vlanif10]ip binding vpn-instance AAA
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[Huawei-Vlanif10]ip address 192.168.1.1 24

[Huawei]display ip routing-table vpn-instance AAA
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: AAA
         Destinations : 2        Routes : 2        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

    192.168.1.0/24  Direct  0    0           D   192.168.1.1     Vlanif10
    192.168.1.1/32  Direct  0    0           D   127.0.0.1       Vlanif10
[Huawei]ip vpn-instance BBB           
[Huawei-vpn-instance-BBB]ipv4-family
[Huawei-Vlanif20]ip binding vpn-instance BBB
[Huawei-Vlanif20]ip address 192.168.1.1 24

[Huawei]display ip routing-table vpn-instance BBB
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: BBB
         Destinations : 2        Routes : 2        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

    192.168.1.0/24  Direct  0    0           D   192.168.1.1     Vlanif20
    192.168.1.1/32  Direct  0    0           D   127.0.0.1       Vlanif20
<Huawei>ping -vpn-instance BBB 192.168.1.10     //在ping后加上对应的vpn实例
  PING 192.168.1.10: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.10: bytes=56 Sequence=1 ttl=128 time=50 ms
    Reply from 192.168.1.10: bytes=56 Sequence=2 ttl=128 time=60 ms
    Reply from 192.168.1.10: bytes=56 Sequence=3 ttl=128 time=50 ms
    Reply from 192.168.1.10: bytes=56 Sequence=4 ttl=128 time=80 ms
    Reply from 192.168.1.10: bytes=56 Sequence=5 ttl=128 time=30 ms

  --- 192.168.1.10 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/54/80 ms


                               
登录/注册后可看大图

                               
登录/注册后可看大图


您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-1-24 14:01 , Processed in 0.787275 second(s), 14 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表