【物理交换机配置 ipv4/ipv6 VXLAN隧道】

两台交换机配置VXLAN隧道,实现相同网段两台PC之间的互访

IPV4:

在这里插入图片描述

拓扑如下:

在这里插入图片描述

配置如下

配置基础IP地址:,完成基本链路通信

PC1
在这里插入图片描述
PC2
在这里插入图片描述

SW01

以下是SW01的交换机配置
Please configure the login password (8-16)
Enter Password:
Confirm Password:
Info: Save the password now. Please wait for a moment. 
Info: The max number of VTY users is 5, the number of current VTY users online is 0, and total number of terminal users online is 1.
      The current login time is 2024-07-28 12:21:27.
<HUAWEI>sys
Enter system view, return user view with return command.
[~HUAWEI]sysname  SW01   //修改设备的主机名
[*HUAWEI]commit
[~SW01]
[~SW01]int loopback  1   //添加loopback接口
[*SW01-LoopBack1]ip address 1.1.1.1 32 配置loopback接口IP地址,后续充当VTEP的地址
[*SW01-LoopBack1]quit
[*SW01]int  10GE1/0/1
[*SW01-GE1/0/1]undo portswitch   //取消二层口,配置三层IP地址
[*SW01-GE1/0/1]ip address  10.0.0.1 30 
[*SW01-GE1/0/1]quit  
[*SW01]ip route-static 2.2.2.2 32 10.0.0.2  /<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值