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

相关推荐
岸边的风1 小时前
无需公网IP的文件交互:FileCodeBox容器化部署技术解析
网络·网络协议·tcp/ip
jingyu飞鸟2 小时前
linux系统源代码安装apache、编译隐藏版本号
linux·运维·apache
Zonda要好好学习2 小时前
Python入门Day4
java·网络·python
riverz12272 小时前
TCP backlog工作机制
服务器·网络·tcp/ip
2401_858286113 小时前
OS15.【Linux】gdb调试器的简单使用
linux·运维·服务器·开发语言·gdb
yqcoder3 小时前
1. http 有哪些版本,你是用的哪个版本,怎么查看
网络·网络协议·http
c30%004 小时前
内网渗透——红日靶场五
运维·服务器
二二孚日5 小时前
自用华为ICT云赛道Big Data第六章知识点-分布式搜索服务ElasticSearch
大数据·华为
zjw_rp5 小时前
centos停止维护后更换yum源
linux·运维·centos
宇钶宇夕5 小时前
EPLAN 电气制图:建立自己的部件库,添加部件-加SQL Server安装教程(三)上
运维·服务器·数据库·程序人生·自动化