三层交换机SVI实现不同VLAN通信.
先看拓扑:
一般来说配置不成什么问题,一定记得开启三层的ip routing
S1配置:
Switch#show run
Building configuration...
Current configuration : 1066 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 2
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
S2配置:
Switch#show run
Building configuration...
Current configuration : 1066 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 3
!
interface FastEthernet0/2
switchport access vlan 3
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
S3配置:
Switch#show run
Building configuration...
Current configuration : 1192 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
ip routing
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan2
ip address 192.168.1.1 255.255.255.0
!
interface Vlan3
ip address 192.168.2.1 255.255.255.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
注 :下面附PKZ文件下载
转载于:https://blog.51cto.com/ccnayyq/1220655
三层交换机SVI实现不同VLAN通信.相关推荐
- 实训十:三层交换机实现二层交换机VLAN间通信
一.实验目的 1.理解多层交换机的路由原理. 2.了解多层交换机在实际网络中的常用配置. 3.回顾二层交换机vlan的划分方法. 4.进一步理解802.1Q的原理和使用方法. 二.应用环境 1.二层交 ...
- 三层交换机SVI技术
交换机虚拟接口SVI 一个交换机虚拟接口(Switch Virtual Interface,SVI)代表一个由交换端口构成的VLAN(其实就是通常所说的VLAN接口),以便于实现系统中路由和桥接的功能 ...
- 【计算机网络】思科实验(4):综合实验作业之办公室的跨VLAN通信
系列文章目录 [计算机网络]思科实验(1):交换机的VLAN划分 [计算机网络]思科实验(2):交换机间的VLAN通信 [计算机网络]思科实验(3):使用三层交换机实现跨VLAN间的通信 [计算机网络 ...
- 【计算机网络】思科实验(2):交换机间的VLAN通信
系列文章目录 [计算机网络]思科实验(1):交换机的VLAN划分 [计算机网络]思科实验(2):交换机间的VLAN通信 [计算机网络]思科实验(3):使用三层交换机实现跨VLAN间的通信 [计算机网络 ...
- 跨vlan通信之vlanif配置-华为ensp
跨vlan通信的手段之一:vlanif 定义:VLANIF(Virtual Local Area Network Interface),是华为交换机的一个配置项,应用于三层交换机.这是一种逻辑接口,物 ...
- 配置Trunk实现相同Vlan通信
路由交换技术,配置Trunk实现相同Vlan通信! 转载于:https://blog.51cto.com/yuanliujun/362657
- ENSP配置 实例八 三层交换机DHCP配置加VLAN划分实验
ENSP配置 实例八 三层交换机dhcp配置加vlan划分实验 LW1配置 [SW1]vlan batch 10 20 [SW1-GigabitEthernet0/0/1]port link-type ...
- 实现同网段不同vlan通信有几种方式?纯二层网络下又是如何实现的?
你知道纯二层网络,如何实现同网段不同vlan通信吗? 你知道通过代理ARP,如何实现同网段不同vlan通信吗? 你知道Vxlan架构,如何实现同网段不同vlan通信吗? 我会通过一系列场景,给大家分析 ...
- Cisco Packet Tracer交换机间相同VLAN通信
同一个交换机上同一VLAN内PC可以通信,不同VLAN被隔离.但由于网络规模的增大或地域范围的限制,同一VLAN的用户可能跨接在不同交换机上,需要配置跨交换机链路实现交换机间的相同VLAN通信. 学习 ...
- ARP代理实现同网段不同vlan通信
ARP代理实现同网段不同vlan通信 划分vlan vlan batch 10 20interface GigabitEthernet0/0/1port link-type accessport de ...
最新文章
- k-means优化 k-means距离的选择 k-medoids对比
- python代码编辑器-世界上最好的Python编辑器是什么?
- 【若依(ruoyi)】树表代码生成
- zookeeper 负载均衡 概念笔记
- 实现机器学习的循序渐进指南II——决策树
- Java基础学习总结(41)——JPA常用注解
- Nagios(装包、文件类型)
- 通过PDB文件实现非嵌入式的c++反射
- RFID:ISO14443、15693、18000体系分析
- HTML:自定义修改鼠标指针
- k3 Bos开发百问百答
- MSOCache(转载)
- Axure8超详细使用教程(含安装包)
- el-table复选框全部勾选以及勾选回显
- 《GTD I》读书笔记
- Visual studio 2015 未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包
- 放榜!腾讯iOA、腾讯天幕入选国内数字化可信服务首批认证产品
- Faker生成测试数据
- Qt音视频开发49-通用截图截屏
- 酷Q python 导入插件出现问题解决
热门文章
- 四个数学软件主要特点
- MySQL 5.5.31 procedure 的语法规则细节
- Ubuntu 配置VNC时,出现“perl: warning: Falling back to the standard locale (C).”等提示错误解决方法...
- JavaScript笔记1基础
- Django之路——4 Django的视图层
- Tomcat整体架构分析
- Java:类与对象概念
- 2016/7/7 设置wamp2.5 mysql密码 重点是mysql版本
- [Javascript]jquery $(document).ready() 与window.onload的区别
- 在vue的项目中引入swiper插件