园区网VLAN应用实例
园区环境:一台核心路由器,一台核心交换机;四台汇聚层交换机;四台接入层交换机(可根据实际需求和带宽的大小增加接入层的数量)——接入层下接入大量的PC机。 技术要求:通过VLAN的划分及VTP的设置实现不同VLAN的互访和管理。SW5/6/7/8四台交换机设置一样;客户端模式的VTP在学习完VLAN信息后应把它改成透明模式以防断电或其它故障时丢失VLAN信息,注意VTP只能学习VLAN信息,不会把端口划入VLAN需手动划入来完成。 具体配置:本配置提供了SNMP及TELNET控制口管理和快速生成树转发以及热备份冗余;VLAN间互访。此配置省略了部分vlan创建和把端口划入VLAN的内容。 SW0配置: >en #conf t #host SW0 SW0#vlan database 进入VLAN配置模式 SW0(vlan)#vlan 100 name kkk 创建VLAN100名称为kkk SW0(vlan)#vtp domain hhh 创建VTP名称为hhh SW0(vlan)#vtp v2-mode VTP使用版本2 SW0(vlan)#vtp server 设置VTP工作模式为服务器模式 SW0(vlan)#vtp password 123 设置VTP密码 SW0(vlan)#exit SW0#conf t SW0(config)#int e 0/1 SW0(config-if)#switchport trunk encapsulation dot1q 采用dot1q封装 SW0(config-if)#switchport mode trunk 采用干道工作模式 SW0(config-if)#no shutdown SW0(config-if)#exit SW0(config)#int e 0/2 SW0(config-if)#switchport trunk encapsulation dot1q 采用dot1q封装 SW0(config-if)#switchport mode trunk 采用干道工作模式 SW0(config-if)#no shutdown SW0(config-if)#exit SW0(config)#int e 0/3 SW0(config-if)#switchport trunk encapsulation dot1q 采用dot1q封装 SW0(config-if)#switchport mode trunk 采用干道工作模式 SW0(config-if)#no shutdown SW0(config-if)#exit SW0(config)#int vlan 1 SW0(config-if)#ip add 10.10.10.1 255.255.255.0 配置管理IP SW0(config-if)#no shutdown SW0(config-if)#exit SW0(config)#enable password 123 设置特权密码 SW0(config)#line console 0 SW0(config-line)#password 123 设置控制口密码 SW0(config-line)#login 激活密码 SW0(config-line)#exit SW0(config)#line vty 0 4 SW0(config-line)#password 123 设置虚拟接口密码(用于telnet连接) SW0(config-line)#login 激活密码 SW0(config-line)#exit SW0(config)#service password-encryption 所有密码以密文形式加密 SW0(config)#spanning-tree uplinkfast 启用快速生成树协议实现快速收敛 SW0(config)#snmp-server community kkk ro 启用只读的名字为kkk的SNMP协议 SW1配置: >en #conf t SW1(config)#host SW1 SW1#vlan database SW1(vlan)#vlan 100 name kkk SW1(vlan)#vtp domain hhh SW1(vlan)#vtp v2-mode SW1(vlan)#vtp client SW1(vlan)#vtp password 123 SW1(vlan)#exit SW1#conf t SW1(config)#int e 0/1 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#int e 0/2 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#int e 0/3 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#int e 0/4 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#int vlan 1 SW1(config-if)#ip add 10.10.10.2 255.255.255.0 SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#int e0/12 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 100 SW1(config-if)#exit SW1(config)#enable password 123 SW1(config)#line console 0 SW1(config-line)#pass SW1(config-line)#password 123 SW1(config-line)#login SW1(config-line)#password 123 SW1(config-line)#login SW1(config-line)#exit SW1(config)#line vty 0 4 SW1(config-line)#password 123 SW1(config-line)#login SW1(config-line)#exit SW1(config)#service password-encryption SW1(config)#spanning-tree uplinkfast SW1(config)#snmp-server community kkk ro SW2配置: >en #conf t SW2(config)#host SW2 SW2#vlan database SW2(vlan)#vlan 100 name kkk SW2(vlan)#vtp domain hhh SW2(vlan)#vtp v2-mode SW2(vlan)#vtp client SW2(vlan)#vtp password 123 SW2(vlan)#exit SW2#conf t SW2(config)#int e 0/1 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#no shutdown SW2(config-if)#exit SW2(config)#int e 0/2 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#no shutdown SW2(config-if)#exit SW2(config)#int e 0/3 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#no shutdown SW2(config-if)#exit SW2(config)#int e 0/4 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#no shutdown SW2(config-if)#exit SW2(config)#int vlan 1 SW2(config-if)#ip add 10.10.10.3 255.255.255.0 SW2(config-if)#no shutdown SW2(config-if)#exit SW2(config)#int e0/12 SW2(config-if)#switchport mode access SW2(config-if)#switchport access vlan 100 SW2(config-if)#exit SW2(config)#enable password 123 SW2(config)#line console 0 SW2(config-line)#pass SW2(config-line)#password 123 SW2(config-line)#login SW2(config-line)#password 123 SW2(config-line)#login SW2(config-line)#exit SW2(config)#line vty 0 4 SW2(config-line)#password 123 SW2(config-line)#login SW2(config-line)#exit SW2(config)#service password-encryption SW2(config)#spanning-tree uplinkfast SW2(config)#snmp-server community kkk ro SW3配置: >en #conf t SW3(config)#host SW3 SW3#vlan database SW3(vlan)#vlan 100 name kkk SW3(vlan)#vtp domain hhh SW3(vlan)#vtp v2-mode SW3(vlan)#vtp client SW3(vlan)#vtp password 123 SW3(vlan)#exit SW3#conf t SW3(config)#int e 0/1 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#no shutdown SW3(config-if)#exit SW3(config)#int e 0/2 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#no shutdown SW3(config-if)#exit SW3(config)#int e 0/4 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#no shutdown SW3(config-if)#exit SW3(config)#int vlan 1 SW3(config-if)#ip add 10.10.10.4 255.255.255.0 SW3(config-if)#no shutdown SW3(config-if)#exit SW3(config)#int e0/12 SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 100 SW3(config-if)#exit SW3(config)#enable password 123 SW3(config)#line console 0 SW3(config-line)#pass SW3(config-line)#password 123 SW3(config-line)#login SW3(config-line)#password 123 SW3(config-line)#login SW3(config-line)#exit SW3(config)#line vty 0 4 SW3(config-line)#password 123 SW3(config-line)#login SW3(config-line)#exit SW3(config)#service password-encryption SW3(config)#spanning-tree uplinkfast 启用快速生成树协议实现快速收敛 SW3(config)#spanning-tree mst configuration 进入MST模式 SW3(config-mst)#instance 1 vlan 1-100 设置VLAN1-100为MST实例1 SW3(config-mst)#name kkk MST实例1命名 SW3(config-mst)#revision 1 MST版本号 SW3(config-mst)#instance 2 vlan 101-200 设置VLAN101-200为MST实例2 SW3(config-mst)#name kkk MST实例1命名 SW3(config-mst)#revision 1 MST版本号 SW3(config-mst)#exit SW3(config)#spanning-tree mode mst 启用MST SW3(config)#spanning-tree mst 1 root primary 指定为实例1的根交换机 SW3(config)#snmp-server community kkk ro SW4配置: >en #conf t SW4(config)#host SW4 SW4#vlan database SW4(vlan)#vlan 100 name kkk SW4(vlan)#vtp domain hhh SW4(vlan)#vtp v2-mode SW4(vlan)#vtp client SW4(vlan)#vtp password 123 SW4(vlan)#exit SW4#conf t SW4(config)#int e 0/1 SW4(config-if)#switchport trunk encapsulation dot1q SW4(config-if)#switchport mode trunk SW4(config-if)#no shutdown SW4(config-if)#exit SW4(config)#int e 0/2 SW4(config-if)#switchport trunk encapsulation dot1q SW4(config-if)#switchport mode trunk SW4(config-if)#no shutdown SW4(config-if)#exit SW4(config)#int e 0/4 SW4(config-if)#switchport trunk encapsulation dot1q SW4(config-if)#switchport mode trunk SW4(config-if)#no shutdown SW4(config-if)#exit SW4(config)#int vlan 1 SW4(config-if)#ip add 10.10.10.4 255.255.255.0 SW4(config-if)#no shutdown SW4(config-if)#exit SW4(config)#int e0/12 SW4(config-if)#switchport mode access SW4(config-if)#switchport access vlan 100 SW4(config-if)#exit SW4(config)#enable password 123 SW4(config)#line console 0 SW4(config-line)#pass SW4(config-line)#password 123 SW4(config-line)#login SW4(config-line)#password 123 SW4(config-line)#login SW4(config-line)#exit SW4(config)#line vty 0 4 SW4(config-line)#password 123 SW4(config-line)#login SW4(config-line)#exit SW4(config)#service password-encryption SW4(config)#spanning-tree uplinkfast SW4(config)#spanning-tree mst configuration SW4(config-mst)#instance 1 vlan 1-100 SW4(config-mst)#name kkk SW4(config-mst)#revision 1 SW4(config-mst)#instance 2 vlan 101-200 SW4(config-mst)#name kkk SW4(config-mst)#revision 1 SW4(config-mst)#exit SW4(config)#spanning-tree mode mst SW4(config)#spanning-tree mst 1 root secondary 指定为实例1的根交换机 SW4(config)#spanning-tree mst 2 root primary 指定为实例2的备份交换机 SW4(config)#snmp-server community kkk ro SW5 配置: 检测命令: |
转载于:https://blog.51cto.com/fendou929/1152471
园区网VLAN应用实例相关推荐
- VLAN TAG 实例
VLAN TAG实例,从这个例子中,理解TRUNK 与ACCESS端口类型如何处理VLAN TAG . 在实际中碰到的例子. 转载于:https://blog.51cto.com/ivwsyp/559 ...
- 思科配置VLAN的实例
大家好,今天分享思科配置VLAN 的实例 我们来看一下这个图: 配置个ip地址 配置上地址就可以通信 在我们上面的环境,是一个传统的网络,所有的主机都在一个广播域地址,正是这个原因,使得网络当中的广播 ...
- vlan配置实例详解_【精品网络干货】二层MSTP防环技术详解
一.MSTP 出现的背景: RSTP 在 STP 基础上进行了改进,实现了网络拓扑快速收敛.但 RSTP 和 STP 还存在同一个缺陷:由于局域网内所有的 VLAN 共享一棵生成树,因此无法在 VLA ...
- VLAN设置实例全程解读
作者:IT168网络频道 2005-05-13 什么是三层交换和VLAN? 要回答这个问题我们还是先看看以太网的工作原理.以太网的工作原理是利用二进制位形成的一个个字节组合成一帧帧的数据(其实是一些 ...
- 三层交换机实现VLAN互通实例
实验目的:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 随着 ...
- 【Cisco(思科)路由器vlan配置实例】制作简单的B项目小组VLAN规划
目录 一.实验目的 二.实验设备 三.实验步骤 1.实验拓扑图如下 2.创建VLAN 3.设置PC机的IP地址 4.配置路由器R1如下 一.实验目的 1.了解交换机划分的不同方法: 2.了解三层交换机 ...
- vlan配置实例详解_网工知识角|MUXVLAN技术详解,基本原理一篇搞定
学网络,就在IE-LAB 国内高端网络工程师培养基地 MUX VLAN(Multiplex VLAN )提供了一种通过VLAN进行网络资源控制的机制.通过MUX VLAN提供的二层流量隔离的机制可以实 ...
- VLAN划分基础及实例讲解
目录 一.VLAN划分基础 1.vlan概念 2.vlan作用 3.vlan分类 4.vlan常用范围 5.vlan接口类型 二.实例讲解 1.实验要求 2.实验准备 3.实验拓扑 4.实验步骤 一. ...
- 读书笔记{11} VLAN及其在生产中的应用
1 LAN 简介 LAN,Local Area Network,直译为本地区域网,可能是因为为了方便传播,大家基本上都叫它局域网,既然大家都这么叫,如果我们搞特例那就是不明智了. 局域网这个词的侧重其 ...
最新文章
- JAVA实现从上往下打印二叉树(《剑指offer》)
- poj 3352 双连通分量
- ecshop 全目录说明
- 用haslib给字符加密
- 大工18秋计算机应用基础1,大工18秋《计算机应用基础》在线测试1答案.pdf
- static数据的初始化
- 社会工程学之《反欺骗的艺术》小结(一)
- MATLAB 图像处理 简单人脸检测(详细,你上你也行)
- 2020软件测试最新视频教程大合集汇总
- 微信小程序开通广告要求累计独立访客(UV)不低于 1000是什么意思?怎么查看UV数量?
- 仿苹果官网首页面(Hbuilder X+CSS)
- 自定义一个Chrome翻译插件
- C++调用ffmpeg批量合并bilibili缓存视频
- 关于如何连接网络打印机
- 国内BLDC电机控制方案目前存在什么痛点?
- android sim 卡7816,采用SO7816标准规范的SIM卡读卡器的研究
- Oracle数据库,停止正在执行的package
- 5.4.1 映射Blob和Clob类型@Lob
- VFIO Introduction
- 微信小程序通过云函数生成带参数的小程序码
热门文章
- (二十)TCPIP面试宝典-进入大厂必备总结(中)
- libxml解析xml文件的一些总结
- C++(13)--函数的进阶:内联、传递引用、参数默认值、重载、函数模板
- 深入剖析C++中的string类
- 谈谈对于技术面试的心得体验
- 解决:Command line is too long. In order to reduce its length classpath file can be used.
- 根据一个属性,剔除 Json 中重复元素(删除 JSON 中重复的部分)
- Android - AsyncTask你知道多少?
- ASP.NET Core 2.2 : 十六.扒一扒2.2版更新的新路由方案
- 求职小记(持续更新)