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

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

LSW1:

LSW1valn 10 20

LSW1int vlanif 10 创建交换机虚拟接口vlanif 10 (SVI)

LSW1-Vlanif10ip add 192.168.10.1 24 配置ip地址作为vlan10网关

LSW1int vlanif 20

LSW1-Vlanif20ip add 192.168.20.1 24 配置ip地址作为vlan20网关

注意:可以将三层交换机抽象成一台路由器,vlanif接口就是路由器的接口。

二层SVI

sw2:

LSW1vlan batch 10 30

LSW1interface 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

相关推荐
fiveym5 小时前
01 - iPXE + Clonezilla 网络装机原理解析
linux·运维·服务器·网络
虎头金猫6 小时前
如何在群晖NAS上通过Docker部署CloudSaver?群晖部署CloudSaver教程|聚合资源搜索并实现远程访问
运维·服务器·网络·python·docker·容器·pandas
dog2506 小时前
网络优化,还是降低各阶矩
服务器·网络·php
反转180度6 小时前
Qt 6 + C++17 实现 SFTP 批量部署:工业设备运维工具实战解析
运维·c++·qt
liuqs3326 小时前
nat123安卓和nat123全端口选型指南,映射工具怎么挑
网络·笔记
雨辰AI7 小时前
RAG 知识库搭建:基于人大金仓构建信创运维问答机器人|全栈国产化落地完整版
运维·ai·机器人·ai编程
x_x-F7 小时前
网络数据从网卡到用户态:一场基于内存所有权转移的接力赛
开发语言·网络·php
-今昭-7 小时前
Ansible
linux·运维·ansible
星野川崎2067 小时前
电商多店运维:云机长期挂机频繁掉线、账号无故风控原因剖析与解决方案
大数据·运维·云计算·电商
IT邦德9 小时前
Dify1.6基于ubuntu系统的部署实战
linux·运维·ubuntu