华为数通——SVI(vlanif虚拟接口)

SVI:众所周知交换机是没有ip地址的,如果要配置的话一般需要本地console连接设置,这样在后期运维过程中不得不总是要跑到现场调试,SVI配置就是将交换机的一个vlan口,设置ip地址在配合Telnet远程登录权限,这样后期运维人员就可以远程通过ip地址直接Telnet登录到交换机内部进配置。

LSW1:

LSW1\]valn 10 20 \[LSW1\]int vlanif 10 创建交换机虚拟接口vlanif 10 (SVI) \[LSW1-Vlanif10\]ip add 192.168.10.1 24 配置ip地址作为vlan10网关 \[LSW1\]int vlanif 20 \[LSW1-Vlanif20\]ip add 192.168.20.1 24 配置ip地址作为vlan20网关 注意:可以将三层交换机抽象成一台路由器,vlanif接口就是路由器的接口。 ****二层SVI**** ![](https://img-blog.csdnimg.cn/direct/6641a8d7bac3440393efb5ae9d3c10bb.png) sw2: \[LSW1\]vlan batch 10 30 \[LSW1\]interface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/2 port link-type access port default vlan 10 # interface Ethernet0/0/3 port link-type access port default vlan 30 sw3: vlan 20 interface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/2 port link-type access port default vlan 20 sw1: vlan batch 10 20 30 interface Vlanif10 ip address 192.168.10.1 255.255.255.0 # interface Vlanif20 ip address 192.168.20.1 255.255.255.0 # interface Vlanif30 ip address 192.168.30.1 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan all # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan all

相关推荐
原来是猿5 小时前
Linux-【动静态库】
linux·运维·服务器
讯方洋哥6 小时前
HarmonyOS App开发——鸿蒙ArkTS基于首选项引导页的集成和应用
华为·harmonyos
深圳市恒讯科技6 小时前
云服务器怎么选?从CPU、内存到IOPS的零基础选型手册
运维·服务器
victory04316 小时前
Agent 面试知识树 + 高频追问答案库
网络·面试·职场和发展
艾莉丝努力练剑7 小时前
【脉脉】AI创作者崛起:掌握核心工具,在AMA互动中共同成长
运维·服务器·c++·人工智能·安全·企业·脉脉
Blurpath住宅代理8 小时前
原生IP vs 广播IP:如何从网络层判断代理IP的“真实性”?
网络·静态ip·动态ip·代理·代理ip·住宅ip·住宅代理
chinesegf8 小时前
DNS 验证验证SSL证书
linux·服务器·网络
猿饵块9 小时前
python--websocket
网络·websocket·网络协议
taxunjishu9 小时前
塔讯总线协议转换信捷 PLC 对接 TCP/IP 设备实战方案
网络·物联网·自动化
未佩妥剑,已入江湖9 小时前
docker Windows下安装
运维·windows·docker·容器