Cisco实验-VTP基本使用
VTP基本使用
VTP(Vlan Trunk Protocol)即VLAN中继协议。VTP通过网络(ISL帧或者cisco私有的DTP帧)保证VLAN配置的统一性。VTP在系统级管理增加、删除,跳转VLAN,自动地将信息向网络中其他的交换机广播。此外,VTP减小了那些可能导致安全问题的配置。便于管理,只要在vtp server做相应的设置,vtp client会自动学习vtp server上的vlan信息。
3.1 实例拓扑图
3.2 配置VTP
核心交换机Cisco 3650配置为vtp Server,vtp domain为senya。
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vtp domain senya
Changing VTP domain name from NULL to senya
Switch(vlan)#vtp server
Device mode already VTP SERVER.
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa 0/1
Switch(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
报错了,我的天,含义是,命令被拒绝:接口的中继封装是“自动”不能被配置为“主干”模式
那就先封装一下吧
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config)#int fa 0/2
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunkSwitch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
图3-2-2 配置trunk链路,允许带vlan标记的以太网帧通过该链路
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vtp domain senya
Domain name already set to senya.
Switch(vlan)#vtp client
Setting device to VTP CLIENT mode.
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa 0/1
Switch(config-if)#switchport mode trunk
3.3 创建Vlan及端口划分
Switch>en
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2
VLAN 2 added:Name: VLAN0002
Switch(vlan)#vlan 3
VLAN 3 added:Name: VLAN0003
Switch#show vlan
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
3.4 配置pc测试vlan
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#int vlan 3
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan3, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to upSwitch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown
结果不同网段一直不能ping通,到另外VLAN的网关也不同,后来百度找到需要顶层启用路由功能
Switch(config)#ip routing
验证:
Cisco实验-VTP基本使用相关推荐
- Cisco vlan + vtp 配置实例
本实例是中用到的是Cisco 3620的交换机,由于是用模拟器做的实验,所以有的地方可能和真实机有所不同,这个简单的实验只是提供一个思路. 1.实验目的 通过本实验,读者可以掌握以下技能: 配置 ...
- 单臂路由实验-VTP
步骤0--配置PC: 分别按图中参数,配置两台PC机. 步骤1--启用trunk:在server f0/1 f0/2 f0/3 启用trunk ...
- cisco 模拟器安装及交换机的基本配置实验心得_「分享」7个必看的Cisco实验
1.修改cisco 路由器的名称及路由器密码命令操作 实验要求: 1.路由器名:cisconet 2.设置password为cisconet,secret为cisconet,vty为cisconet, ...
- Cisco实验-FTP抓包及下载文件
Cisco Packet Tracer Instructor使用方法和FTP抓包 在学校学习<计算机网络>这门课程时,因为理论课程会有点枯燥,老师会布置一些实验给大家(我们就是).但是因为 ...
- 自己搭建的CISCO实验环境
交换机: 设备型号: CISCO 3750 24-TS 3台 CISCO 3750 48-PS 1台 路由器: 设备型号: 1.CISCO 2821 3台 2.CISCO 3745 3台 物理拓扑图如 ...
- Cisco实验-配置Cisco交换机
实验软件Packet Tracer 5.0 1.几种命令模式 Switch> 提示符表示在用户命令模式.只能使用一些查询命令 Switch# 这种提示符表示在特权模式下. Switch(conf ...
- 无线路由器首次配置、修改WiFi名称和密码—— Cisco实验/家里实验
一.Csico实验 192.168.0.1.192.168.1.0和192.168.1.1是路由器常用的默认IP 1. 在PC打开浏览器(PC用网线直连无线路由器), 输入无线路由器在局域网内的静态I ...
- 对VLAN,TRUNK,VTP和CHANNEL实验总结
对VLAN,TRUNK,VTP和CHANNEL实验总结 VLAN 虚拟局域网VLAN(Virtual LAN)是交换机端口的逻辑组合.VLAN 工作在OSI的第2 层,一个VLAN 就是一个广播域,V ...
- cisco路由器基本实验之一 静态路由的配置(Boson NetSim
花了快一个月的时间之后,我的Linux服务器建设学习算是小告了一个段落了.现在开始要回到windows里面利用Boson NetSim这个cisco实验模拟器来加深对路由交换的配置学习了.好在上学期上 ...
最新文章
- cs结构航空订票系统java_VC++航空订票系统数据库设计-课程设计
- 【干货】策划一个线上活动的整体流程
- 如何从校招脱颖而出?支付宝程序媛王妍岩:自信+方法
- mysql limit分页查询效率
- OpenCV medianBlur、GaussianBlur和bilateralFilter (中值滤波、高斯滤波、双边滤波)
- 【电子技术实验理论】语音放大电路
- 虚幻引擎5 C++游戏开发教程
- 红外图像盲元检测matlab,一种红外图像盲元检测方法与流程
- 影响下载速度的因素--总结
- 宠物狗行走手机应用市场现状研究分析-
- JavaScript实现Sleep效果
- 为什么魂斗罗只有128KB却能实现那么长的剧情有答案了
- 建立大数据分析能力需四大要素
- 没有学历可以学习游戏建模吗?这问题真致命!
- @RunWith注解的作用
- CSS常见的居中方法
- 当心PayPal,Amazon认真对待付款
- STM32使用DMA在Normal模式下二次传输
- 算法训练营学习笔记2
- 论文阅读:Personalized Purchase Prediction of Market with Wasserstein-Based Sequence Matching