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

相关推荐
Decay__9 小时前
12_MySQL InnoDB 内存与锁调优 —— Buffer Pool、redo log、隔离级别与锁等待
运维·数据库·sql·mysql·架构
java_logo11 小时前
Docker 部署 Dify:轻松搭建 LLM 应用开发平台
运维·docker·容器
方便面不加香菜12 小时前
Docker Container -- 综合实战案例详解
运维·docker·容器
海洋之恒13 小时前
GitHub Actions 自动化:5 个真实运维提效案例
运维·自动化·github
迪康coolmu15 小时前
出差终端数据安全落地实战:基于迪康端点安全一体化管理系统的四道防线实践
运维·服务器·经验分享·笔记·其他·安全·php
xiaoye-duck15 小时前
《C++ 项目:手写大模型接入 SDK》Ollama接口设计(上):初始化、全量响应实现和测试
开发语言·网络·c++·语言模型
qq_3718021117 小时前
Ubuntu Linux中安装WorkBuddy
linux·运维·服务器·ubuntu
无足鸟ICT17 小时前
【RHCA+】iptraf-ng(网络监控分析)
linux·网络
逃逸线LOF18 小时前
服务网关Gateway
java·运维·gateway