华为数通——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

相关推荐
linux修理工10 分钟前
chrome官方下载地址
运维·服务器
无忧智库14 分钟前
IT运维正在经历一场真正的范式革命:从告警风暴到AIOps自主自愈的完整工程解构(WORD)
运维
笨笨饿38 分钟前
69_如何给自己手搓一个串口
linux·c语言·网络·单片机·嵌入式硬件·算法·个人开发
Swift社区43 分钟前
鸿蒙 App 架构中的“领域拆分”
华为·架构·harmonyos
cn_lyg1 小时前
Linux的入门级常用操作命令
linux·运维·服务器
geneculture1 小时前
《智能通信速分多次传输技术(VDMT)》专利文件的全文汉英双语对照版本
服务器·网络·人工智能·融智学的重要应用·哲学与科学统一性·融智时代(杂志)·人机间性
就叫飞六吧2 小时前
TOML vs YAML:为什么 Cargo 选择 TOML?
linux·运维·服务器
MiNG MENS2 小时前
nginx 代理 redis
运维·redis·nginx
IMPYLH2 小时前
Linux 的 test 命令
linux·运维·服务器·chrome·bash
xrui582 小时前
2026实战:深度解析 Gemini 3.1 镜像站函数调用在自动化运维工单中的应用
linux·服务器·网络