锐捷5750基本配置_第1页
锐捷5750基本配置_第2页
锐捷5750基本配置_第3页
锐捷5750基本配置_第4页
锐捷5750基本配置_第5页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、锐捷 5750 基本配置锐捷 5750 基本配置并不复杂,可以通过以下方式来进行设备配置。1.1 通过TELNET式来配置设备提问:如何通过telnet 方式来配置设备,回答:步骤一:配置VLAN1的IP地址S5750>en- 进入特权模式 S5750#conf- 进入全局配置模式S5750(config)#intvlan1 进入 vlan1 接口 S5750(config-if)#ip address192.168.0.230255.255.255.0 为 vlan1 接 口 上 设 置 管 理 ipS5750(config-if)#exit 退回到全局配置模式步骤二:配置telnet

2、 密码 S5750(config)#linevty04 进入 telnet 密码配置模式S5750(config-line)#login- 启用需输入密码才能telnet 成功 S5750(config-line)#passwordrscstar 将 telnet 密码设置为rscstar S5750(config-line)#exit- 回到全局配置模式enablesecretlevel150rscstar 配置进入特权模式的密码为 rscstar1.2 更改IOS命令的特权等级提问:如何只允许dixy这个用户使用与ARP相关的命令,回答:S5750(config)#usernamedixy

3、passworddixy 设 置 dixy 用 户 名 和 密 码S5750(config)#usernamedixyprivilege10dixy 帐 户 的 权 限 为 10S5750(config)#privilegeexeclevel10showarp 权限 10 可以使用showarp 命令S5750(config)#privilegeconfigalllevel10arp 权限 10 可以使用所有arp 打头的命令S5750(config)#linevty04 配置telnet 登陆用户S5750(config-line)#nopassword S5750(config-line)

4、#loginlocal1.3 设备时钟设置提问:如何设置设备时钟,回答 : S5750#clockset12:45:5511252008 设置时间为2008 年 11 月 25 日 12 点 45 分 55 秒 S5750#clock updatecalendar 设置日历更新S5750(config)#clocktimezoneCN822 时间名字为中国,东8 区 22 分2.1交换机vlan和trunk的配置 提问:如何在交换机上划分vlan,配置trunk接口 ,回答:步骤一给交换机配置 IP 地址 S2724G#conf S2724G(coMig)#intvlan1S2724G(con

5、fig-if)#ipaddess192.168.0.100255.255.255.0 给 VLAN1 配置 IP地址 S2724G(config-if)#noshutdown 激活该 VLAN 接口 S2724G(config-if)#exit S2724G(config)#ipdefault-gateway192.168.0.1- 指定交换机的网关地址步骤二:创建VLANS2724G#conf S2724G(config)#vlan10 创建 VLAN10S2724G(config-vlan)#exitS2724G(config)#vlan20 创建 VLAN20S2724G(config-

6、vlan)#exit步 骤 三 : 把 相 应 接 口 指 定 到 相 应 的 VLAN 中 S2724G(config)#intgi0/10S2724G(config-if)#switchaccessvlan10 把交换机的第10 端口划到VLAN 10中 S2724G(config-if)#exit S2724G(config)#intgi0/20 S2724G(config- if)#switchaccessvlan20 把 交 换 机 的 第 20 端 口 划 到 VLAN 20 中S2724G(config-if)#exitS2724G(config)#intgi0/24S2724G

7、(config-if)#switchmodetrunk 设置 24 口为 Trunk 模式(与三层交换 机的连接口S2724G(config-if)#步骤四:保存配置S2724G(config-if)#end S2724G#write 2.2turnk接口修剪配置提问:如何让trunk 接口只允许部分vlan 通过 ,回答 : Switch(config)#intfa0/24Switch(config-if)#switchmodetrunkSwitch(config-if)#switchporttrunkallowedvlanremove10,20,30-40 不 允 许VLAN10,20,3

8、0-40 通过 Trunk 口 2.3PVLAN 配置提问:如何实现几组用户之间的隔离,但同时又都能访问公用服务,回答:步骤一:创建隔离VLAN S2724G#conf S2724G(config)#vlan3 创建 VLAN3S2724G(config-vlan)#private-vlancommunity 将 VLAN3 设 为 隔 离 VLANS2724G(config)#vlan4 创 建 VLAN4 S2724G(config-vlan)#private-vlancommunity-将 VLAN4 设为隔离 VLAN S2724G(con巾g-vlan)#exit-退回到特权模式步骤

9、二 :创建主 VLAN S2724G(config)#vlan2 进入 VLAN2 S2724G(config-vlan)#private-vlanprimaryVLAN2 为主 VLAN步骤三 : 将隔离 VLAN 加到到主VLAN 中 VLANS2724G(config-vlan)#private-vlanassociationadd3-4 将 VLAN3 和 VLAN4 加入到公用VLAN 中, VLAN3 和VLAN4的用户可以访问公用接口步 骤 四 : 将 实 际 的 物 理 接 口 与 VLAN 相 对 应S2724G(config)#interfaceGigabitEtherne

10、t0/1 进入接口1, 该接口连接服务器或者上联设备S2724G(config-if)#switchportmodeprivate-vlanpromiscuous接口 模式为混杂模式S2724G(config-if)#switchportprivate-vlanmapping2add3-4 将 VLAN3 和VLAN4 映 射 到 VLAN2 上 S2724G(config)#intgi0/10 进 入 接 口 10S2724G(config-if)#switchportmodeprivate-vlanhostS2724G(config-if)#switchportprivate-vlanho

11、st-association23 该 接 口 划 分 入 VLAN3S2724G(config)#intgi0/20 进 入 接 口 20 S2724G(config-if)#switchportmodeprivate-vlanhostS2724G(config-if)#switchportprivate-vlanhost-association24 该接口划分入VLAN4步骤五完成 VLAN 的映射 S2724G(config)#intvlan2- 进入 VLAN2 的 SVI 接口S2724G(config-if)#ipaddress192.168.2.1255.255.255.0 配置

12、VLAN2 的 ip 地址 S2724G(config-if)#private-vlanmappingadd3-4 将 VLAN3 和 VLAN4 加入到VLAN2中 注释:1.S20、S21不支持私有VLAN,可以通过保护端口实现类似功能2.S325R S3750和S5750同时支持保护端口和私有 VLAN3.S3760不支持私有 VLAN 和保护 端口 2.4 端口汇聚配置提问:如何将交换机的端口捆绑起来使用,回答:S5750#confS5750(config)#interfacerangegigabitEthernet0/1汨- 同时进入1 到 4 号接 口 S5750(config-i

13、f)#port-group1 设置为聚合口1S5750(config)#interfaceaggregateport1 进入聚合端口1 注意:配置为AP 口的接口将丢失之前所有的属性,以后关于接口的操作只能在AP1 口上面进行2.5生成树配置提问 :如何配置交换机的生成树: 步骤一:根桥的设置switch_A#conft switch_A(config)#spanning-tree- 默认 模 式 为 MSTP switch_A(config)#spanning-treemstconfiguration switch_A(config)#spanning-treemst10priority40

14、96-设置为根桥步骤二 :非根桥的设置switch_B#conft switch_B(config)#spanning-tree- 默认模式为MSTP switch_B(config)#spanning-treemstconfiguration switch_B(config)#intf0/1-PC的 接 入 端 口 switch_B(config)#spanning-treebpduguardenableswitch_B(config)#spanning-treeportfast 2.6 端口镜像设置提 问 : 如 何 配 置 交 换 机 的 端 口 镜 像 , 回 答 : switch#conft switc

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论