路由器基础配置之单臂路由实现vlan间通信

我们将以上面的拓扑图开始进行配置,目的为设置单臂路由实现vlan间通信,设置4个vlan,pc0,1,2为vlan10
pc3,4,5为vlan20;pc6,7,8为vlan30;server0,1为vlan40,为求方便,我们使用vtp来配置vlan
先配置switch0
enable 进入特权模式
configure terminal 进入全局配置模式
vtp domain abc(设置vtp的域为abc)
vtp mode server 设置switch0为server模式
vlan 10 创建vlan
vlan 20
vlan 30
vlan 40
interface f0/4
switchport mode trunk
exit
interface f0/3
switchport mode trunk
exit
interface f0/5
switchport mode trunk
exit
interface f0/1
switchport mode access
switchport access vlan 40
exit
interface f0/2
switchport mode access
switchport access vlan 40
配置switch1
enable 进入特权模式
configure terminal 进入全局配置模式
vtp domain abc 进入abc域
vtp mode client 设置为client客户模式
interface f0/2
switchport mode access
switchport access vlan 30
exit
interface f0/3
switchport mode access
switchport access vlan 20
exit
interface f0/4
switchport mode access
switchport access vlan 10
exit
配置switch2
enable 进入特权模式
configure terminal 进入全局配置模式
vtp domain abc 进入abc域
vtp mode client 设置为client客户模式
interface f0/2
switchport mode access
switchport access vlan 30
exit
interface f0/3
switchport mode access
switchport access vlan 20
exit
interface f0/4
switchport mode access
switchport access vlan 10
exit
配置switch3
enable 进入特权模式
configure terminal 进入全局配置模式
vtp domain abc 进入abc域
vtp mode client 设置为client客户模式
interface f0/2
switchport mode access
switchport access vlan 30
exit
interface f0/3
switchport mode access
switchport access vlan 20
exit
interface f0/4
switchport mode access
switchport access vlan 10
exit
配置路由器
enable 进入特权模式
configure terminal 进入全局配置模式
interface f0/0
no shutdown 先激活接口
exit
interface f0/0.1 进入虚拟子接口
encapsulation dot1Q 10 封装vlan 10
ip address 192.168.1.254 255.255.255.0
exit
interface f0/0.2 进入虚拟子接口
encapsulation dot1Q 20 封装vlan 20
ip address 192.168.2.254 255.255.255.0
exit
interface f0/0.3 进入虚拟子接口
encapsulation dot1Q 30 封装vlan 30
ip address 192.168.3.254 255.255.255.0
exit
interface f0/0.4 进入虚拟子接口
encapsulation dot1Q 40 封装vlan 40
ip address 192.168.4.254 255.255.255.0
exit
这样单臂路由间vlan通信就完成了
路由器基础配置之单臂路由实现vlan间通信的更多相关文章
- 单臂路由实现VLAN间通信
实验要求:利用路由器完成同vlan能通信,不同vlan也能通信 拓扑如下: 涉及内容有: 1.VTP的创建和配置 2.VLAN的创建和划分 3.路由器的单臂路由配置 配置如下: route1 enab ...
- 路由器配置——单臂路由实现VLAN间通信
一.实验目的:用路由器使同和不同vlan可以通信 二.拓扑图如下: 三.具体步骤: (1)R1路由器配置: Router>en --进入特权模式Router#conf t --进入全局配置模 ...
- 利用单臂路由实现VLAN间的路由
实验4:利用单臂路由实现VLAN间的路由. 实验原理: 实验内容: 本实验模拟公司网络场景,路由器R1是公司的出口网关,员工PC通过接入层交换机(如S2和S3)接入公司网络,接入层交换机又通过汇聚交 ...
- eNSP仿真软件之利用单臂路由实现VLAN间路由
1. 实验原理 以太网中,通常会使用VLAN技术隔离二层广播域来减少广播的影响,并增强网络的安全性和可管理性.其缺点是同时也严格地隔离了不同VLAN之间的任何二层流量,使分属于不同VLAN的用户不能直 ...
- VLAN实验4(在eNSP上利用单臂路由实现VLAN间路由)
原理概述: 以太网中,通常会使用VLAN技术隔离二层广播域来减少广播的影响*并增强 网络的安全性和可管理性.其缺点足同时也严格地隔离了不同VLAN之间的任何二层流量,使分属于不同VLAN的用户 不能直 ...
- VLAN实验4:利用单臂路由实现VLAN间路由
单臂路由: 实验环境: 实验拓扑图: 实验编址: 实验步骤:1.创建VLAN并配置Access.Trunk接口. 我们在S2上创建VLAN10和VLAN20,并且吧链接PC1的E0/0/1和链接PC2 ...
- 在ensp上利用单臂路由实验VLAN间路由
我们为什么要设置单臂路由? 因为我们要解决不同vlan,不同网络的PC机间的通信问题~ 那它为啥叫单臂路由嘞? 单臂路由的原理时通过一台路由器,使vlan间互通数据通过路由器进行三层转发,如果在路由器 ...
- eNSP——利用单臂路由实现VLAN间路由
原理: 以太网中,通常会使用VLAN技术隔离二层广播域来减少广播的影响,并增强网络的安全性和可管理性.其缺点是同时也严格地隔离了不同VLAN之间的任何二层流量,使分属于不同VLAN的用户不能直接互相通 ...
- 利用单臂路由实现vlan间路由
本实验模拟公司场景 通过路由器实现不同vlan部门间通讯,拓扑图如下
随机推荐
- [转].NET Core配置文件加载与DI注入配置数据
本文转自:http://www.cnblogs.com/skig/p/6079187.html .NET Core配置文件 在以前.NET中配置文件都是以App.config / Web.config ...
- java实现新旧版本号比较
项目中需要使用比较现在线上版本和新版本,然后新版本执行新方法,方法如下: /** * * @方法名称:comparaVersion * @内容摘要: <版本比较> * @param old ...
- Win7无线路由Win8/8.1开启网络承载DOS命令笔记本电脑当无线路由器
以下废话,先吐槽几句 这个功能其实在Win7+系统都内置了,不要再用什么某豹.某大师.某Soft之类的开启无线网络,这些软件都是骗你们安装一些垃圾软件的. 另外吐槽 某度wifi.某数字wifi都是垃 ...
- PHP运行机制
PHP运行机制: 访问html文件:访问的域名à解析成IP地址(hosts文件,dns)à找到服务器àapache拿到html文件à返回给浏览器à浏览器解析html内容 访问php文件:apache拿 ...
- Python高级数据类型
除了python中默认提供的几种基本数据类型 collections模块还提供了几种特别好用的类型! 1.Conters //计数器 2.Orderdict // 有序字典 3.defalutdict ...
- <Android 基础(十三)> shape
介绍 简单来说,shape就是用来在xml文件中定义形状,代码解析之后就可以当做Drawable一样使用 官方说明 关于shape定义的drawable 文件位置:res/drawable/filen ...
- Python开发环境Wing IDE如何使用GTK和PyGObject
Wing IDE是一个集成开发环境,可用于编辑.测试和调试使用PyGObject为GTK编写的Python代码.Wing IDE提供自动完成.调用提示.一个强大的调试器,以及许多其他功能,可帮助用户编 ...
- 用户管理的设计--3.jquery的ajax实现二级联动
页面效果 实现步骤 1.引入struts整合json的插件包 2.页面使用jquery的ajax调用二级联动的js //ajax的二级联动,使用选择的所属单位,查询该所属单位下对应的单位名称列表 fu ...
- org.springframework.beans.MethodInvocationException: Property 'cacheManager' threw exception; nested exception is org.apache.shiro.cache.CacheException: net.sf.ehcache.CacheException: Caches cannot be
shiro cache manage配置报错: org.springframework.beans.MethodInvocationException: Property 'cacheManager' ...
- 关于java@Override错误
重写的接口的方法,编译的时候一直报@override is not override a method from superclass,查了一下资料,这个@override报错是因为版本的原因. 在J ...