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

相关推荐
峰顶听歌的鲸鱼19 小时前
Zabbix监控系统
linux·运维·笔记·安全·云计算·zabbix·学习方法
物联网软硬件开发-轨物科技20 小时前
【技术白皮书】光伏电站数智化技改技术白皮书:从老旧场站到高收益智能资产的演进路径
大数据·运维·服务器
不光头强20 小时前
Linux 系统中最常用的命令及具体使用方法
linux·运维·chrome
BigALiang20 小时前
Linux驱动复习小记
linux·运维·服务器
2501_9464903820 小时前
Hirender MTC时间码技术实操——PH®CLUB激光投影声光电精准同步实现方案
大数据·运维·人工智能·hirender·hecoos
田里的水稻20 小时前
OE_ubuntu24.04如何安装中文简体拼音输入法
运维·前端·chrome
东北甜妹20 小时前
Rsync+sersync 数据实时同步
运维
白云偷星子20 小时前
RHCSA笔记5
linux·运维·笔记
Wpa.wk21 小时前
har文件转为接口自动化测试用例
运维·测试工具·自动化·测试用例·接口自动化
志栋智能21 小时前
自动化运维还有这样一种模式。
运维·人工智能·安全·机器人·自动化