




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
本文格式为Word版,下载可任意编辑——H3C路由器与交换机的试验H3C路由器与交换机的试验
systempassword:
[Quidway]interfaceethernet0
[Quidway-Ethernet0]ipaddr10.65.1.2255.255.255.0[Quidway-Ethernet0]undoshutdown[Quidway-Ethernet0]inte1
[Quidway-Ethernet1]ipaddr10.66.1.2255.255.255.0[Quidway-Ethernet1]undoshutdown
[root@PCAroot]#ifconfigeth010.65.1.1netmask255.255.0.0[root@PCBroot]#ifconfigeth010.66.1.1netmask255.255.0.0[root@PCAroot]#ping10.65.1.2通
[root@PCAroot]#ping10.66.1.2不通,没设网关
[root@PCAroot]#routeadddefaultgw10.65.1.2[root@PCAroot]#ping10.66.1.2通
去掉HostB与Router的连线,再ping:
[root@PCAroot]#ping10.66.1.2不通(没有接线端口会自动down掉)再连接HostB与Router的连线,再ping:[root@PCAroot]#ping10.66.1.2通了
试验八单臂路由
设PCA:10.65.1.1PCB:10.66.1.1
1.一个接口两个IP的状况systempassword:
[Quidway]interfaceethernet0
[Quidway-Ethernet0]ipaddr10.65.1.2255.255.255.0
[Quidway-Ethernet1]ipaddr10.66.1.2255.255.255.0secondary[Quiway-Ethernet1]undoshutdown[root@PCAroot]#ping10.66.1.1通
2.划分两个子接口,对两个vlan的路由[SwitchA]vlan2[SwitchA-vlan2]porte0/3[SwitchA]vlan3
[SwitchA-vlan3]porte0/6[SwitchA]inee0/1
[SwitchA-Ethernet0/1]portlink-typetrunk
[SwitchA-Ethernet0/1]porttrunkpermitvlanall
[SwitchA-Ethernet0/1]porttrunkencapdot1q[SwitchA]discurr[Quidway]inte0
[SwitchA-Ethernet0]inte0.1
[SwitchA-Ethernet0.1]encapsulationdot1q2
[SwitchA-Ethernet0.1]ipaddr10.65.1.2255.255.255.0[SwitchA-Ethernet0.1]nudoshut
[SwitchA-Ethernet0.1]inte0.2
[SwitchA-Ethernet0.2]encapsulationdot1q2
[SwitchA-Ethernet0.2]ipaddr10.66.1.2255.255.255.0[SwitchA-Ethernet0.2]nudoshut[SwithA]discurr
[root@PCAroot]#ping10.66.1.1通
试验九静态路由试验
PCA:10.65.1.1PCB:10.66.1.1PCC:10.68.1.1PCD:10.69.1.1
[RouterA]interfaceethernet0
[RouterA-Ethernet0]ipaddrress10.65.1.2255.255.0.0[RouterA-Ethernet0]undoshutdown[RouterA-Ethernet0]inte1
[RouterA-Ethernet1]ipaddrress10.66.1.2255.255.0.0[RouterA-Ethernet1]undoshutdown
[RouterA-Ethernet1]ints1
[RouterA-Serial1]ipaddrress10.67.1.2255.255.0.0[RouterA-Serial1]undoshutdown[RouterA-Serial1]clockrate64000[RouterA-Serial1]quit[RouterA]iprouting[RouterA]discurr
[RouterB]interfaceethernet0
[RouterB-Ethernet0]ipaddrress10.68.1.2255.255.0.0[RouterB-Ethernet0]undoshutdown[RouterB-Ethernet0]inte1
[RouterB-Ethernet1]ipaddrress10.69.1.2255.255.0.0[RoterB-Ethernet1]undoshutdown[RouterB-Ethernet1]ints0
[RouterB-Serial0]ipaddrress10.67.1.1255.255.0.0[RouterB-Serial0]undoshutdown[RouterB-Serial0]quit[RouterB]iprouting
[RouterB]discurr
[root@PCAroot]#ifconfigeth010.65.1.1netmask255.255.0.0[root@PCAroot]#routeadddefaultgw10.65.1.2[root@PCAroot]#ping10.65.1.2通[root@PCAroot]#ping10.66.1.2通[root@PCAroot]#ping10.67.1.2通[root@PCAroot]#ping10.68.1.2不通[root@PCAroot]#ping10.69.1.2不通
[RouterA]iproute-static10.69.0.0255.255.0.010.67.1.1[root@PCAroot]#ping10.69.1.1通
下面再参与一个路由器RouterC:
[RouterB-Serial0]undoipaddrress10.67.1.1255.255.0.0[RouterB-Serial0]ipaddrress10.70.1.1255.255.0.0[RouterC]interfaceserial0
[RouterC-Serial0]ipaddrress10.67.1.1255.255.0.0[RouterC-Serial0]undoshutdown
[C-Serial0]clockrate64000[RouterC-Serial0]ints1
[RouterC-Serial1]ipaddrress10.70.1.1255.255.0.0[RouterC-Serial1]undoshutdown
[RouterC-Serial1]quit
[RouterC]iproute-static10.69.0.0255.255.0.010.70.1.1[RouterC]discurr
[root@PCAroot]#ping10.69.1.1通[root@PCAroot]#ping10.68.1.1不通
试验十动态路由试验
[RouterA]ripversion2multicast
[RouterA-rip]network10.0.0.0;可以allrA-rip]iprouting
[RouterB]ripversion2multicast[RouterB-rip]network10.0.0.0[RouterB-rip]iprouting
[RouterC]ripversion2multicast[RouterC-rip]network10.0.0.0[RouterC-rip]iprouting[RouterC]disiproute
[root@PCAroot]#ping10.68.1.1通[root@PCAroot]#ping10.69.1.1通
[RouterA-rip]peer10.67.1.1;指明交换点[RouterA-rip]summary;聚合[RouterA-Serial0]ripsplit-horizon;水平分隔[RouterA]ripwork[RouterA]ripinput[RouterA]ripoutput
[Quidway]routeridA.B.C.D;配置路由器的ID[Quidway]ospfenable;启动OSPF协议[Quidway-ospf]import-routedirect;引入直联路由[Quidway-Serial0]ospfenablearea0;配置OSPF区域[Quidway-Serial0]link-protocolppp
试验十一访问控制列表试验
1.基本访问列表
[RouterC]firewallenable
[RouterC]firewalldefaultpermit[RouterC]acl10
[RouterC-acl-10]rulenormaldenysource10.65.1.1[RouterC-acl-10]rulenormalpermitsourceany[C]ints0
[RouterC-Serial0]firewallpacket-filter10inbound[RouterC-Serial0]quit[RouterC]displayacl
[root@PCAroot]#ping10.68.1.1不通[root@PCBroot]#ping10.68.1.1通[RouterC]undoacl10[RouterC]displayacl
[root@PCAroot]#ping10.68.1.1通[root@PCBroot]#ping10.68.1.1通
[RouterC]acl11
[RouterC-acl-11]rulenormaldenysource10.65.1.10.0.0.255[RouterC-acl-11]rulenormalpermitsourceany[RouterC]ints0
[RouterC-Serial0]firewallpacket-filter11inbound[rC]displayacl
[root@PCAroot]#ping10.68.1.1不通[root@PCBroot]#ping10.68.1.1不通[RouterC]undoacl
2.扩展访问控制列表
[RouterC]firewallenable
[RouterC]firewalldefaultpermit[RouterC]acl101
[RouterC-acl-101]ruledenytcpsource10.65.1.10destination10.69.1.10[RouterC-acl-101]rulepermitipsourceanydestinationany[RouterC]ints1
[RouterC-Serial1]firewallpacket-filter101outbound[RouterC-Serial1]qu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 农村安全饮水工程项目可行性研究报告(模板)
- 高端卫生材料项目可行性研究报告(参考模板)
- 2023年矿山救护队理论考试题库
- 2025年高压电工考试攻略:高压设备维护保养计划应用题案例分析
- 2025年婚姻家庭咨询师职业技能鉴定试卷(高级)实操试题及答案
- 2025年物流师职业技能鉴定模拟试卷:物流供应链金融与融资渠道试题解析
- 电动自行车用电机企业县域市场拓展与下沉战略研究报告
- 筑路机械企业数字化转型与智慧升级战略研究报告
- 购物中心餐饮店企业县域市场拓展与下沉战略研究报告
- 2025年网络工程师职业技能测试卷:企业级网络设计实践试题
- 2025年高考历史总复习世界近代史专题复习提纲
- 对患者入院评估的系统化方法试题及答案
- 教育与社会发展的关系试题及答案
- 内蒙古汇能集团笔试题库
- 七年级英语下学期期中押题预测卷(深圳专用)(原卷版)
- 2024年贵州贵州路桥集团有限公司招聘真题
- DB11-T 2397-2025 取水供水用水排水数据库表结构
- 多式联运模式在跨境电商中的应用-全面剖析
- 中药学(士)基础知识押题密卷1
- 2025年第三届天扬杯建筑业财税知识竞赛题库附答案(1401-1536题)
- 土壤氡检测方案
评论
0/150
提交评论