第一部分连接路由器和交换机.doc_第1页
第一部分连接路由器和交换机.doc_第2页
第一部分连接路由器和交换机.doc_第3页
第一部分连接路由器和交换机.doc_第4页
第一部分连接路由器和交换机.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

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

文档简介

HCNE实验第一部分连接路由器和交换机 1:使用console口控制 使用console线缆连接PC机的R232串口与路由器或交换机的console口,打开pc机的超级终端。2:使用telnet控制A:路由器VRP1.4 Quidwayinterface e0Quidway-Ethernet0ip add Quidway-Ethernet0undo shutdownQuidway-Ethernet0quitQuidwaylogin telnet /开启telnet服务Quidwaylocal-user wjlove password simple hcne service-type exec-administrator /建立用户wjlove,明文密码hcne以及此用户是给管理员级别的命令行用的。否则是给ppp用的。Quidway 交换机VRP3.10 systemEnter system view, return to user view with Ctrl+Z.Quidwayinterface vlan 1Quidway-Vlan-interface1ip add Quidway-Vlan-interface1undo shutdown Quidway-Vlan-interface1quitQuidwayuser-interface vty 0 ?Quidwayuser-interface vty 0 4Quidway-ui-vty0-4authentication-mode ? none 不需要密码 password 使用密码 scheme 使用配置认证Quidway-ui-vty0-4authentication-mode password 启用密码认证模式Quidway-ui-vty0-4set authentication-mode password simple hcne 设置密码为hcneQuidway-ui-vty0-4user privilege level ?0 查看级别1 监控级别2 特权级别3 完全控制 Quidway-ui-vty0-4user privilege level 3注意上述在telnet登录不用输入用户,如果想输入用户:Quidway-ui-vty0-4authentication-mode scheme 启用配置模式Quidwaylocal-user wjlove Quidway-luser-wjlovepassword hcneQuidway-luser-wjloveservice-type telnetQuidway-luser-wjlove service-type telnet level 3 第二部分VRP操作系统特性和基本操作VRP:通用操作平台Huawei和3com公司组成H3CVRP1.4已被淘汰VRP3.1下: 特权模式reboot 重启more 移动命令language-mode chinese 改变为中文? lock 锁住终端save 保存current-confi到flash memorydisplay current-configurationde? Debugging deletedel 加tab 唯一deletedisplay ? Acl.Quidwayundo interface vlan 1 取消vlan1接口dirdelete vrpcfg.txt 删除flash memory配置文件reset recycle-bin 清空回收站delete /unreserved vrpcfg.txt 直接删除system-viewdisplay versiondisplay saved-configdisplay cpudisplay memorydisplay clockdisplay usersdisplay users-interfaceQuidwayinterface Ethernet 0/1Quidway 上下左右调用曾经输入过的命令Quidwaydis history-command华为的交换机的console和aux合二为一,更改aux接口即更改console接口Quidwayuser-interface aux 0Quidway-ui-aux0history-command max-size 256debugging ip icmp /启用ip包icmp调试terminal debugging /显示调试信息到终端terminal monitor /显示一切信息到终端Quidwayinfo-center enable 启用日志主机Quidwayinfo-center monitor channel Quidwayinfo-center loghost lanaguage Chinese给 console配置密码Quidwayuser-interface aux 0Quidway-ui-aux0set authentication password simple hcne破解console密码启动时按ctrl+B,回车,选择modify bootrom password或ctrl+p管理配置文件1:把交换机当成一台ftp服务器Quidwayinter vlan 1Quidway-Vlan-interface1ip add Quidway-Vlan-interface1undo shutdown Quidway-Vlan-interface1quitQuidwayftp serverQuidwaylocal-user wjloveQuidway-luser-wjlovepassword simple hcne Quidway-luser-wjloveservice-type ftpPC机上:ftp Dir Get vrpcfg.txt c:1.txt /下载 Put c:1.txt kkk.txt /上传在交换机上可以指定默认启动配置文件:start saved-c kkk.txt备份和升级VRP软件在pc机上:备份 ftp dir get XXXX.bin如果有两个vrp软件,可以指定默认启动vrp软件 Boot boor-loader vrp.bin第三部分:H3C交换机 主要内容:vlan配置、trunk口、STP协议、接口汇聚sysQuidwayvlan 2Quidway-vlan2port ethernet 0/1 /把接口e0/1加入vlan2Quidway-vlan2undo port ethernet 0/1 Quidway-vlan2quitQuidwayinterface e0/1Quidway-Ethernet0/1port access vlan 2Quidway-Ethernet0/1quitQuidwayvlan 2Quidway-vlan2port e0/1 to e0/10Quidway-vlan2dis vlanVlan Name Status Ports - - - -1 default Active F0/5, F0/6, F0/7, F0/82 Vlan02 Active F0/1, F0/2, F0/3, F0/41002 fddi-d Active1004 fnet-d ActiveVLAN Type SAID MTU- - - -1 enet 100001 15001002 fddi 101002 15001002 fnet 101003 1500 Quidwayinter e0/3Quidway-Ethernet0/3port link trunkQuidway-Ethernet0/3port trunk permit ?Quidway-Ethernet0/3port trunk permit allQuidway-Ethernet0/3端口汇聚:两个口必须都是trunkQuidway-Ethernet0/3speed 100Quidway-Ethernet0/3duplex fullQuidway-Ethernet0/4speed 100Quidway-Ethernet0/4duplex fullQuidwaylink-aggregation Ethernet 0/3 to Ethernet 0/4 both /汇聚Quidwaydis link-aggre 在链路汇聚中有主次端口STP生成树协议:防止环路,默认华为交换机没有打开Quidwaystp enable /全局开启Quidway-Ethernet0/4st disable|enable /启用接口的stp。注意:如果某个端口接的是一个pc机,建议一定要关闭这个stp功能,否则由于pc的启用关闭会引起stp的震荡。Quidwaydis stp趣味1:趣味2:第四部分:配置ip、静态路由、NDP协议 1: 配置接口的ip和SUB ip高端路由器上的接口可以设置32的子ip,低端路由器可以配置5个Quidwayinterface e0Quidway-Ethernet0ip add 24Quidway-Ethernet0ip add 24 sub /关键字subQuidway-Ethernet0ip add 24 subQuidway-Ethernet0dis ip rout /查看路由表2:配置静态路由Quidwaysysname R1R1inter loop 1R1-loopback1ip add 24R1inter e 0R1-ethernet0ip address 30R1ip rout 24 下一跳为对方接口ipQuidwaysysname R2R2inter loop 1R2-loopback1ip add 24R2inter e 0R2-ethernet0ip address 30R2ip rout 24 R1和R2可以ping通对方的 华为路由器可以指定发送包的源地址pingR2ping a /发送ping包,源地址 ,目标删除静态路由R1undo ip rout 24 注意:如果路由器两端全是ethernet接口,一定要把静态路由的下一跳指定为ip,而不要使用本接口号。那是因为本地在查询路由目的mac时,会发送arp广播,而路由器是禁止广播的。Cisco路由器可以实现arp代理来实现。3:NDP协议:发现邻居,类似cisco的Cdp协议默认NDP是启动的R1dis ndp R1ndp enableR1ntdp enable /ntdp用于探测邻居之外的设备R1ntdp hop 16 /探寻深度4:配置默认路由、浮动路由直连路由优先级为0静态路由优先级为60默认路由:ip rout 浮动路由:ip rout preference 30第五部分:配置RIP以及OSPF1:配置RIPR1ripR1-ripnetwork R1-ripnetwork all在帧中继网络中,双方使用Rip,则在双方Rip中指定peer邻居,因为帧中继网络不支持网络。备注:帧中继DCE端:frame switinginterface s1 link fr fr interface dce fr dlci 16 (默认16-1007) 帧中继DCE端 Interface s0 Link fr2:Rip实现静默主机 Inter s1 undo rip output /不允许rip的更新出去,但可以接受更新进来 undo rip input /不允许rip的更新进来,但可以接受更新出去3:配置Ripv2配置不连续子网 华为路由器Rip如果接收到同一个子网的更新,一般是谁先到就放到路由表 (Debug ip icmp Infor-center console Ctrl+D 关闭debug) Interface s 0 /接口下,接口一定要刷新 Rip v 2 Rip /rip下 Undo summary /关闭自动汇总4:Ripv2的验证 Interface s1 Rip authe simple hcne /明文密码 Shut Undo shutDebug ripInfor-cent con Rip authe md5 key-string hcne /加密密码5:OSPF单区域配置 Ospf enable Net 55 area 0 (vrp 3.1以上可以使用这个命令) Interface s1 Ospf enable area 0 (老版本的VRP配置ospf的方法) Ospf不会自动汇总6:OSPF在NBMA环境 必须指定peer Interface s1 Ospf peer /指明邻居 Dis ospf7:ospf邻居认证 Interface s1 Ospf authe md5 hcne Shut Undo shut 双方都的认证 Debug ospf8:OSPF多区域9:ospf与Rip互相引入R4上 Interface s0 Ospf enable area 0 Rip Network Import ospf cost 1R2上 Interface s1 Ospf enable area 0 Rip Network Ospf Import rip Rip的路由被引入ospf 0,在R1上看到引入的路由metrc为110:ospf虚链路R1上认为手工定义一个RouterIDRouter id 0R2上Router id 1R3上 Router id 2R4上 Router id 3在R2上:Ospf Vlink peer 2 transit-area 1 在R3上:Ospf Vlink peer 1 transit-area 1第六部分:配置wan链路层协议1:帧中继背靠背实验R2上:Internet s0Link-protocol fr动态映射R1上: Fr switching Internet s0Link-protocol frFr interface dceFr dlci 16 2:FR的DLCI交换R1上:Interface s0 Link-p frR3同上:R2上:Fr switch Inter s0 Link fr Fr interface dce Fr dlci 16 Fr dlci-sw pvc 16 interface s1 dlci 17 Interface s1 Link fr Fr inter dce Fr dlci 17 Fr dlci-sw pve 17 interface dlci 163;ppp验证PAP验证R1上:Interface s0 Link ppp Ppp aut papLocal hcne password simp 1234R2上:Interface s0 Link ppp Ppp pap local-user hcn

温馨提示

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

最新文档

评论

0/150

提交评论