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

相关推荐
筵陌12 分钟前
Linux网络传输层协议UDP
linux·网络
yukai0800817 分钟前
【203篇系列】041 Websocket Server
网络·websocket·网络协议
AC赳赳老秦17 分钟前
轻量化模型浪潮下的关键技术突破:DeepSeek INT4量化优化引领2026端侧算力新纪元
网络·安全·mongodb·web安全·flink·prometheus·deepseek
御坂10101号36 分钟前
JIT 上的 JIT:Elysia JS 的优化实践与争议
开发语言·javascript·网络·性能优化·node.js·express
e***13621 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
coollove74821 小时前
Linux下PostgreSQL-12.0安装部署详细步骤
linux·运维·postgresql
yuyuyuliang001 小时前
Ubuntu 22.04安装PostgreSQL教程
linux·运维·ubuntu·postgresql
无巧不成书02182 小时前
【RN鸿蒙教学|第8课时】表单优化+AsyncStorage数据持久化(本地缓存)+ 多终端兼容进阶
react native·缓存·华为·交互·harmonyos
feng68_2 小时前
抓包理解LVS中的DR模式
服务器·网络·lvs
njtong2 小时前
Ubuntu系统apache2网站的Let‘s Encrypt证书问题
linux·运维·ubuntu