欢迎来到天天文库
浏览记录
ID:10675110
大小:199.50 KB
页数:23页
时间:2018-07-07
《网段和vlan在交换机中的关系》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、第一章交换机与VLAN一、创建VLAN的两种方法n在进入配置状态下生成VLAN20Switch>enSwitch#conftSwitch(config)#vlan20Switch(config-vlan)#nametest20Switch(config-vlan)#endSwitch#showvlan20n在enable状态下生成VLAN20Switch>enSwitch#vlandatabaseSwitch(vlan)#vlan20nametest20Switch(vlan)#exitSwitch#showvlan20二、删除VLAN的两种方法n在进入配置状态下删除VLAN20Swit
2、ch>enSwitch#conftSwitch(config)#novlan20Switch(config)#endSwitch#showvlanbriefn在vlandatabase进入VLAN状态下删除VLAN20Swtich>enSwitch#vlandatabaseSwitch(vlan)#novlan20nametest20Switch(vlan)#exitSwitch#showvlanbrief三、在VLAN中添加和删除端口n把交换机F0/1端口分配到VLAN20中Switch>enSwitch#conftSwitch(config)#interfacef0/1Switch(
3、config-if)#swichportmodeaccessSwitch(config-if)#switchportaccessvlan20Switch(config-if)endSwitch#showinterfacef0/1switchportn把交换机F0/1端口从VLAN20中删除Swtich>enSwitch#conftSwitch(config)#interfacef0/1Switch(config-if)#noswitchportaccessvlan20Switch(config-if)#endSwitch#showvlanbrief第二章跨交换机的VLAN通讯一、在交换机
4、端口上配置Trunkn在交换机端口F0/2上配置TrunkSwitch>enSwitch#conftSwitch(config)#interfacef0/2Switch(config-if)#switchportmodetrunkSwitch(config-if)#endSwitch#showinterfacef0/2switchport二、从Trunk中添加和删除VLANn在端口F0/2的Trunk中增加VLAN20Switch>enSwitch#conftSwitch(config)#interfacef0/2Switch(config-if)#switchporttrunkallo
5、wedvlanadd20Switch(config-if)#endSwitch#showinterfacef0/2switchportn在端口F0/2的Trunk中删除VLAN20Switch>enSwitch#conftSwitch(config)#interfacef0/2Switch(config-if)#switchporttrunkallowedvlanremove20Switch(config-if)#endSwitch#showinterfacef0/2switchport一、以太通道的配置n把交换机的端口F0/1-F0/3绑定成ChannelSwitch>enSwitch
6、#conftSwitch(config)#interfacerangef0/1–3Switch(config-if)#channel-group1modeonSwitch(config-if)#endSwitch#showetherchannel1summaryn把交换机的端口F0/1和F0/3、F0/5绑定成ChannelSwitch>enSwitch#conftSwitch(config)#interfacerangef0/1,f0/3,F0/5Switch(config-if)#channel-group1modeonSwitch(config-if)#endSwitch#show
7、etherchannel1summary第三章VLAN的Trunk协议(VTP)一、创建和VTP域n给交换机分配一个域名,域名为testSwitch>enSwitch#conftSwitch(config)#vtpdomaintestSwitch(config)#endSwitch#showvtpstatus一、配置VTP模式n在全局配置模式下,将模式修改为server/client/transpatentSwitch>enSwit
此文档下载收益归作者所有