欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    思科3560 配置命令.docx

    • 资源ID:5946443       资源大小:33.95KB        全文页数:17页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    思科3560 配置命令.docx

    1、思科3560 配置命令 switch 命令行模式;config#特权模式 switch(config)#logging host 你的IP地址 一、配置交换机vlan模式;有两种方式 switch(config)#logging facility 你选着的信息 第一种: 配置3550作为dhcp服务器 config#vlan ID 这里的ID是需要你个人给要划分的vlan起的编号 六、配置cisco启动dhcp功能 config-if#name 名字 配置地址池 switch#show vlan brief 查看vlan 用来检验是否配置成功 switch(config)ip dhcp poo

    2、l 名字 第二种: switch(config-pool)network mask switch#vlan database 交换机的vlan配置状态 switch(config-pool)dns-server switch(vlan)#vlan ID name 名字 配置vlan 并且分配相应的名字 switch(config-pool)default-router 网关 二、3560上开启路由功能配置 设置dhcp保留不分配的地址 switch(config)#ip routing switch(config)ip dhcp excluded-address 地址 地址 switch(co

    3、nfig)#ip route ipaddress net-hop 配置路由(静态) 第一步;从起交换机 switch(config)#ip default-gateway ipaddress 配置网关 第二步;配置 三、开启聚合链路配置 1)按下MODE键后给3560加电。 #conf t 2)在出现的菜单中选择第一项 SW(config)#interface range f1/1 - 2 system software: SW(config-if)#channel-group 1 mode desirable/on flash_init SW(config-if)#swithport loa

    4、d_helper SW(config-if)#switchport mode trunk boot SW(config-if)#switchport trunk encap dot1q switch:flash_init 四、启动telnet管理模式 switch:load_helper switch(config)#line vty 0 4 3)重命名flash:config.text文件。 switch(config-line)#password 密码 switch: ren flash:config.text flash:config.old switch(config-line)#lo

    5、gin 4)重启交换机 五、开启cisco日志功能 switch: boot switch(config)#logging on 5)当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了) switch(config)#logging trap 信息 Would you like to enter the initial configuration dialog? yes/no:no 1 6)从用户模式登录特权模式,无需密码。 Swith(config-if)#no shutdown /激活VLAN1 Switchen 三、设置交换机的密码 Switch# 1、

    6、用户到特权的密码 7)恢复刚才重命令的配置文件名. Swith(config)#enable password 123 (优先级低) Switch#ren flash:config.old flash:config.text Swith(config)#enable secret 456 (优先级高) /如果两个都设置则456生效 Destination filename config.text?直接回车 2、控制台console密码设置 8)用老的配置文件替换当前的配置文件。 Swith(config)# line con 0 Switch#copy flash:config.text sy

    7、stem:running-config Swith(config-line)#login Destination filename running-config?直接回车 Swith(config-line)#password console123 /设置console密码为telnet123 9)修改使用密码。 3、启用telnet密码 Switch#conf t Swith(config)#line vty 0 15 /最多有015人可以telnet访问swith,合计16人 10) 保存密码 Swith(config-line)#login switch(config)#enable p

    8、assword song Swith(config-line)#password telnet123 /设置telnet密码为telnet123 switch#wr or copy running-config starting-config 注:要想真正生效telnet还要设置特权密码 OK到这里我们的密码就改好了。 交换机命名hostname BENETSW01 一、交换机五种模式 Swith(config)#hostname BENETSW01 /使用hostname命名交换机的名字 Swith (用户模式) 四、show命令集 Swith# (特权模式) Swith#show vers

    9、ion/显示IOS版本信息 Swith(config)# (全局配置模式) Swith#show vlan id 10/简单的显示VLAN10的信息 Swith(config-if)# (接口模式) Swith#show running-config/显示正在运行的配置文件 Swith(config-line)# (线模式) Swith#show startup-config/显示己经保存的配置文件 二、交换机模式切换 Swith#show mac-address-table/显示MAC地址表 Swithenable /切换到特权 Swith#show mac-address-table/显示

    10、MAC地址表更新的间隔,默认为5分钟 Swith#config t /切换到全局配置模式 Swith#show neighbor detail/显示邻居详细信息 Swith(config)# interface f0/1 /进入接口f0/0 Swith#show traffic/显示CDP流量 Swith(config)# interface vlan 1 /进入VLAN 1中 Swith#show Swith(config-if)#ip address 192.168.1.1 255.255.255.0 /对VLAN1设置IP地址和子网掩码 五、设置交换机的网关和DNS名称服务器的IP地址

    11、2 Swith(config)# ip default-gateway 192.168.10.8/交换机的网关设置为192.168.10.8 Router(config-subif)# encapsolution dot1q 1 /子接口封装dot1q 针对的是VLAN1 Swith(config)#ip domain -name server 202.106.0.20 /设置DNS名称服务器地址 Router(config-subif)# ip address 192.168.1.1 255.255.255.0 /设置VLAN的网关地址 Swith(config)# no ip domain

    12、-lookup /交换机名称服务器的域名查询 Router(config)# interface f0/0.2 六、创建、删除、查看VLAN Router(config-subif)# encapsolution dot1q 2/子接口封装dot1q针对的是vlan2 Switch#vlan database /进入vlan数据库配置模式 Router(config-subif)# ip address192.168.2.1 255.255.255.0/设置vlan2的网关的地址 Switch(vlan)#vlan 2 /创建VLAN2命名为vlan0002,也可以使用vlan2 name s

    13、ales 第一章:VTP VLAN 2 added: 配置思路: Name: VLAN0002 1设置VTP域名 Switch(vlan)#exit /退出时应用生效 2设置VTP模式 Swith(vlan)#no vlan 2 /删除vlan2 3创建VLAN Switch(config)# interface f0/1 4配置其它VTP参数 Switch(config-if)# switchport access vlan 2 /将端口加入vlan 2中 vtp domian domian name /设置vtp域名 Switch(config-if)# no switchport acc

    14、ess vlan 2 /将端口从vlan2中删除 vtp mode server|client|transparent /设置vtp模式 Switch(config)# interface range f0/1 10 / 进行F0/1到10端口范围 vtp password passdord /设置vtp口令 Switch(config-if-range)# switchport access vlan 2 /将f0/1到f0/10之间的所有端口加入vlan 2 vtp pruning /配置vtp修剪 Switch# show vlan brief /查看所有VLAN的摘要信息 vtp ve

    15、rsion 2 /运行vtp版本2 Switch# show vlan id vlan-id /查看指定VLAN的信息 show vtp status /查看vtp配置信息 七、开启并查看trunk端 第二章:STP Swith(config)#interface f0/24 配置思路: Swith(config-if)#swith mode trunk /将f0/24端口设置为trunk 1 启用STP协议 Switch#show interfacef0/24 switchport /查看f0/24的接口状态 2 设置根网桥 八、从Trunk中添加、删除Vlan 3 配置以太通道 Switc

    16、h (config-if )# switchport trunk allowed vlan remove 3 /从trunk端口删除v lan3通过 4 配置上行链路、速端口 Switch (config-if)# switchport trunk allowed vlan add 3 /从trunk端口添加vlan3通过 spanning-tree vlan vlan-list /启用生成树协议 Switch # show interface interface-id switchport /检查中继端口允许VLAN的列表 spanning-tree vlan vlan-list root

    17、primary|secondary /配置跟网桥 九、单臂路由配置 spanning-tree vlan vlan-list priority bridge-priority /修改网桥优先级 Router(config)# interface f0/0.1 spanning-tree vlan vlan-list cost cost /修改端口成本 3 spanning-tree vlan vlan-list port-priority priority /修改端口优先级 5 设置接口DCE时钟频率 spanning-tree uplinkfast /配置上行链路 6 配置接口封装协议 sp

    18、anning-tree portfasr /配置速端口 7 配置接口成为DCE interface range f0/1 2 /进入1-2快速以太接口 8 配置DLCI映射关系 channel-group 1 mode on /配置以太通道 9 将接口开启 show spanning-tree /查看生成树配置 外网帧中继 show spanning-tree vlan vlan-id detail /查看某个vlan的生成树详细信息frame-relay switching /开启帧中继协议 show etherchannel 1 summary /查看以太通道1信息 bandwidth 值

    19、 /设置接口带宽,反转ARP 第三章:三成交换 no ip address /将接口IP禁用 配置思路: encapsulation frame-relay /将接口封装模式为帧中继 1 开启三层交换路由功能 clock rate time /设置接口DCE时钟频率 2 配置VLAN IP地址 frame-relay lmi-type cisco|ansi /配置接口封装帧中继协议 3 关闭路由接口二层交换功能 frame-relay intf-typr dce|dte /配置接口成为DCE或DTE ip routing /开启路由功能 frame-relay route 值 interfac

    20、e 接口 值 /配置端口帧中继DLCI映射关系 interface vlan vlan-id /进入指定vlan no ip mroute-cache /关闭路由高级缓存 ip address ip-address subnet-mask /配置vlan IP地址和子网掩码 本地帧中继 no switchport /配置接口为三层模式 interface s0/0 /进入同步串行接口 ip helper-address address /中继转发DHCP地址 encapsulation frame-relay /配置接口封装方式为帧中继 show ip route /查看路由表信息 frame

    21、-relay interface-hdlc 值 /将外网的DLCI对应到帧中继接口上 show ip ecf /查看FIB表信息 frame-relay lmi-type cisco|ansi /配置接口封装的类型 show adjacency detail /查看邻接关系表信息 frame-relay map ip ip address broadcast /配置DTE静态帧中继映射 第五章:帧中继(Frame Relay) 第六章:PPP 配置思路: 配置思路: 1 将路由器交换机转换成帧中继交换机 1 进入接口将接口封装为PPP协议 2 设置帧中继交换机接口的带宽 2 配置配置接口IP地

    22、址 3 将接口IP地址关闭 3 配置主认证方PAP或者CHAP认证 4 设置接口封装模式为帧中继 4 配置被认证方PAP或者CHAP认证 4 5 配置IP地址协商 配置思路: 6 配置PPP压缩 1 开启OSPF路由协议 PAP 2 发布接口所在区域 encapsulation ppp /配置接口封装方式为PPP协议 3 修改OSPF其它参数 ip address ip address ip mask /配置接口IP地址和子网掩码 interface loopback 0 /进入路由器回环接口 shutdown /将接口关闭 ip address ip address /配置回环接口IP地址多

    23、位路由器的RouterID no shutdown /将端口开启 router ospf 进程号 /启动OSPF路由协议,设置进程号 username username password 0 password /配置验证用户名和密码 不带0是加密密码 network 网段地址 反码掩码 area 区域号 /指定OSPF协议接口所运行的区域 ppp authentication pap|chap /配置接口认证方式 ip ospf cost 值 /修改接口Cost值 ppp pap sent-username username password 0 password /配置被认证方用户密码 PA

    24、P模式下需要填写的是ip ospf hello-interval 时间 /修改OSPF Hello值时间默认时间10秒 主认证方的用户名和密码 ip ospf dead-interval 时间 /修改OSPF Dead(失效间隔)时间,默认是Hello的4倍 CHAP show ip ospf neighbor /查看邻居列表 主认证方 show ip ospf detabase /查看链路状态数据库 username username password 0 password /配置主认证端用户名和密码 show ip ospf /查看OSPF配置 ppp encapsulation chap

    25、 /将端口封装成CHAP认证方式 show ip ospf interface 接口 /查看OSPF接口状态 被认证方 show ip ospf proce-id /显示指定进程信息 username username password 0 password /配置主认证方发送过来的用户名和被认证放自己的密码 第九章:OSPF多域 ppp chap password 0 password /在接口配置这条命令也可以达到相同的效果 配置思想: IP协商 1 启用OSPF路由协议 peer default ip address ip address /在PPP服务器要分配给对方的IP地址 2 发布

    26、接口所在区域 ip address negotiated /在PPP客户端要获取服务器的IP地址 area area id stub /将指定区域设置成末梢区域 PPP压缩 area area id stub no-summary /将指定区域设置成完全末梢区域 compress presictor|stac /在接口启用PPP压缩 Predictor会消耗大量的内存,Stac会占用大部分的CPU debug ip ospf adj /查看路由器临界的整个过程 资源 clear ip router /清空路由表 ip tcp header-compression / 配置TCP头压缩 第十章:

    27、OSPF高级配置 debug ppp packet /启用调试模式来查看PPP连接状态和协商过程 配置思想: 第八章:OSPF单域 1 启用OSPF路由协议 5 2 发布接口所在区域 1 配置HSRP组号虚拟地址 3 配置OSPF辅助地址 2 配置HSRP优先级 4 配置路由重分发 3 配置HSRP占先权 5 配置地址汇总 4 配置HSRP端口跟踪 6 配置徐链路 5 配置HSRP其它参数 area area id nssa /将路由器配置成非纯末梢区域 ip irdp multicast /在路由器中进行IRDP广播,要让Solaris操作系统兼容需要用此命令 area area id ns

    28、sa no-summary /将在ASBR路由器设置为非纯末梢并不进行路由汇总 ip irdp preference number /设置路由器IRDP优先级 默认是0,值越大优先级越高 ip address ip address netmask secondary /配置接口辅助地址 stanbdy group number ip hsrp ip address /设置热备的组号和热备IP地址 area area id range ip address mask /在区域间路由器进行路由汇总 no standby group ip /取消一个端口用的热备IP地址 summary-addres

    29、s ip address mask /在ASBR路由器进行路由汇总 no ip redirects /关闭活跃路由器地址,防止主机知道路由器真是MAC地址 no summary-address /删除路由汇总 stanbfy group number priority 值 /配置接口HSRP优先级 ip route ip address mask null0 /汇总后的地址当实际地址不存在时候将不会再走默认路由而是丢弃该数stanbdy group number preempt 值 /设置接口HSRP占先权 据包 stanbdy group number times hellotime|hol

    30、dtime /配置HSRP HELLO之间和HSRP保持时间,默认HELLOredistribute protocol protocol id metric metric跳数 metric-type metric-tpye值 |subnets 时间是3秒,保持时间是10秒,保持时间最少应该是HELLO时间的3倍 /路由重分发 如: stanbdy group number track 接口 值 /配置跟踪端口 接口是路由有要跟踪的端口,值是当接口链路不可用时热备接口优先级自动降低指定数值 router rip /启用RIP路由协议 no stanbey group track /关闭端口跟踪

    31、redistribute ospf 2 metric 1 /将OSPF路由协议信息注入到RIP路由协议中 OSPF的进程号是2 到达RIP路由协议路由器的跳数为1 show stanbdy /查看路由所有热备信息 redistribute rip metric 1 metric-tpye 1|2 subnets /将RIP路由协议信息注入到OSPF路由协议中 其中metric 1 show stanbdy brief /查看路由热备状态 是给定一个OSPF代价,metric-tpye 1|2 1是计算整个路径的成本,2是不计算到达ASBR的路径成本,subnets debug stanbdy /启用热备调式模式 是网络汇总 no debug all /关闭所有调试模式 passive-inerface 接口 /在路由模式下,不管什么协议,只进行接收不发送 第十二章:ACL area area id virtual-link 对端IP地址 /设置与同个区域内的路由器建立虚链路 ”虚链路的地址为对端路由配置思想: 器的IP地址 1 创建ACL规则列表 default-information originate /开启FSPF的默认动态路由,告诉下面其他路由学习它的默认路由 2 将ACL规则应用到接口上 第十一章:HSRP 标准访问控制列表 配置思想: access-l


    注意事项

    本文(思科3560 配置命令.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开