




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1交换机端口与mac地址绑定SwitchenSwitch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#Switch(config)#int vlan 1Switch(config-if)#ip add 192.168.1.1 255.255.255.0Switch(config-if)#no sh%LINK-5-CHANGED: Interface Vlan1, changed state to upSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to upSwitch(config-if)#exitSwitch(config-if)#switchport mode access Switch(config-if)#switchport port-security Switch(config-if)#switchport port-security mac-address 0007.EC41.68E0Switch#sh port-security address Secure Mac Address Table-VlanMac AddressTypePortsRemaining Age(mins)-10007.EC41.68E0SecureConfiguredFastEthernet0/1-Total Addresses in System (excluding one mac per port) : 0Max Addresses limit in System (excluding one mac per port) : 1024Switch#2.用交换机划分vlan并添加端口SwitchenSwitch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#int range f0/1-2Switch(config-if-range)#sw mod accSwitch(config-if-range)#sw acc vlan 2Switch(config-if-range)#exitSwitch(config)#int range f0/3-4Switch(config-if-range)#sw mod accSwitch(config-if-range)#sw acc vlan 3Switch(config-if-range)#exitSwitch(config)#int vlan 2%LINK-5-CHANGED: Interface Vlan2, changed state to upSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#no shSwitch(config-if)#exitSwitch(config)#int vlan 3%LINK-5-CHANGED: Interface Vlan3, changed state to upSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to upSwitch(config-if)#no shSwitch(config-if)#ZSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#sh vlan VLAN Name Status Ports- - - -1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/242 VLAN0002 active Fa0/1, Fa0/23 VLAN0003 active Fa0/3, Fa0/41002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 02 enet 100002 1500 - - - - - 0 03 enet 100003 1500 - - - - - 0 01002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs-Primary Secondary Type Ports- - - -Switch#3.相同vlan的跨交换机通信SwitchSwitchenSwitch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#Switch(config)#Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#sw mod accSwitch(config-if)#sw acc vlan 2Switch(config-if)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#int f1/1Switch(config-if)#sw mod accSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#int vlan 2Switch(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)#exitSwitch(config)#int vlan 3Switch(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)#exitSwitch(config)#int f2/1Switch(config-if)#sw mod trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/1, changed state to upSwitch(config-if)#exitSwitch(config)#(两交换机配置相同)4.通过三层交换机实现vlan间路由SwitchSwitchenSwitch#Switch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#sw mod accSwitch(config-if)#sw acc vlan 2Switch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#sw mod accSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#int vlan 2Switch(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)#Switch(config-if)#ip add 192.168.2.1 255.255.255.0Switch(config-if)#exitSwitch(config)#int vlan 3Switch(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 add 192.168.3.1 255.255.255.0Switch(config-if)#exitSwitch(config)#(失败)5.通过单臂路由实现vlan间路由路由器:RouterenRouter#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#no shRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#no ip address Router(config-if)#exitRouter(config)#int f0/0.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip add 192.168.2.1 255.255.255.0Router(config-subif)#exitRouter(config)#int f0/0.3%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to upRouter(config-subif)#en dot1Q 3Router(config-subif)#ip add 192.168.3.1 255.255.255.0Router(config-subif)#exit交换机:SwitchSwitchenSwitch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#Switch(config)#int vlan 2Switch(config-if)#no shSwitch(config-if)#exitSwitch(config)#int f0/1Switch(config-if)#sw mod accSwi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 沧州市中医院血管通路建立配合考核
- 大学酒吧常规知识培训课件
- 沧州市中医院专业外语应用考核
- 秦皇岛市中医院专科护理学术引领考核
- 2025北京林业大学雄安校区规划建设指挥部招聘1人模拟试卷及答案详解一套
- 2025年福建省南平市建阳区新华书店招聘3人模拟试卷及答案详解1套
- 秦皇岛市人民医院肿瘤突变负荷分析考核
- 2025儿童医院腹壁重建技术专项考核
- 张家口市中医院起搏心电图分析考核
- 2025法士特社会招聘模拟试卷及一套参考答案详解
- 我的家乡-枣阳
- 2023年宝钢股份用户满意度调查分析报告
- GB/T 18851.4-2005无损检测渗透检测第4部分:设备
- GB/T 17553.1-1998识别卡无触点集成电路卡第1部分:物理特性
- 2023年西藏山南雅砻天然饮品有限公司招聘笔试模拟试题及答案解析
- 海南矿产资源概况
- 幻影桌面云管理平台实践指导手册
- 沪教牛津版英语4A M3U1 In our school:animal school优质课课件
- 编版一年级下册 《荷叶圆圆》2022年小学语文作业设计
- 施工现场安全检查记录表(周)以及详细记录
- 汽车配件购销合同集合
评论
0/150
提交评论