华为的路由器模拟器及实验内容全解

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

华为的路由器模拟器及实验内容2009-12-2120:27:53|分类:默认分类|标签:|字号大中小订阅实验一:基本命令实验实验二:配置端口聚合实验三:基本VLAN设置实验四:配置primaryVLAN和secondaryVLAN实验五:其它功能实验六:路由器BootROM升级实验七:直联路由实验八:单臂路由实验九:静态路由实验实验十:动态路由实验实验十一:访问控制列表实验十二:地址转换配置华为的路由器模拟器下载地址(右键迅雷下载)实验一基本命令实验添加一个交换机,一个计算机,双击交换机,进入终端配置:systempassword:[Quidway]sysnameS3026交换机命名[S3026]superpassword111修改特权用户密码[S3026]user-interfacevty04[S3026-ui-vty0-4]authentication-modepassword[S3026-ui-vty0-4]setauthentication-modepasswordsimple222[S3026-ui-vty0-4]userprivilegelevel3[S3026-ui-vty0-4]quit[S3026]quitsyspassword:111[S3026]displaycurrect-config[S3026]discurr[S3026]vlan2[S3026-vlan2]portethernet0/2[S3026-vlan2]porte0/4toet0/6[S3026-vlan2]quit[S3026]disvlan[S3026]inte0/3[S3026-Ethernet1]portaccessvlan2[S3026-Ethernet1]quit[S3026]disvlan[S3026]discurr[S3026]interfacevlan1进入接口视图[S3026-Vlan-interface1]ipaddress10.65.1.1255.255.0.0[S3026-Vlan-interface1]quit[S3026]iproute-static0.0.0.00.0.0.010.65.1.2[S3026]ipdefault-gateway10.65.1.2[S3026]discurr[S3026]save双击小电脑:login:rootpassword:linux[root@PCAroot]#ifconfigeth010.65.1.1netmask255.255.0.0[root@PCAroot]#ping10.65.1.2[root@PCAroot]#telnet10.65.1.2实验二配置端口聚合要求聚合的端口工作在全双工,速度一致,在同一槽口且连续,ingress:源MAC,both:源和目的MAC对于SwitchA:[SwitchA]interfaceethernet0/1[SwitchA-Ethernet0/1]duplexfull[SwitchA-Ethernet0/1]speed100[SwitchA-Ethernet0/1]inte0/2[SwitchA-Ethernet0/2]duplexfull[SwitchA-Ethernet0/2]speed100对于SwitchB:[SwitchB]interfaceethernet0/1[SwitchB-Ethernet0/1]duplexfull[SwitchB-Ethernet0/1]speed100[SwitchB-Ethernet0/1]inte0/2[SwitchB-Ethernet0/2]duplexfull[SwitchB-Ethernet0/2]speed100聚合操作:[SwitchA]link-aggregationethernet0/1toethernet0/2both[SwitchB]link-aggregationethernet0/1toethernet0/2both[SwitchA]displaylink-aggregationethernet0/1[SwitchA]undolink-aggregationall实验三基本VLAN设置[SwitchA]vlan2[SwitchA-vlan2]porte0/3toe0/4[SwitchA]vlan3[SwitchA-vlan3]porte0/5toe0/6[SwitchB]vlan2[SwitchB-vlan2]porte0/3toe0/4[SwitchB]vlan3[SwitchB-vlan3]porte0/5toe0/6设置计算机的IP为:PCA:10.65.1.1PCB:10.65.1.2PCC:10.65.1.3PCD:10.65.1.4[root@PCAroot]#ping10.65.1.1通[root@PCAroot]#ping10.65.1.2不通[root@PCAroot]#ping10.65.1.3不通[root@PCAroot]#ping10.65.1.4不通将PCA改接到SwitchAE0/2,PCC改接到SwitchBE0/2[root@PCAroot]#ping10.65.1.3通(这时都在vlan1)再改回来:[S3026A]interfaceethernet0/8[S3026A-Ethernet0/8]portlink-typetrunk[S3026A-Ethernet0/8]porttrunkpermitvlanall[S3026B]interfaceethernet0/1[S3026B-Ethernet0/1]portlink-typetrunk[S3026B-Ethernet0/1]porttrunkpermitvlanall[root@PCAroot]#ping10.65.1.3通[root@PCAroot]#ping10.65.1.4不通[root@PCBroot]#ping10.65.1.4通即:PCA和PCC同在vlan2是通的。PCB和PCD同在vlan3是通的。PCA和PCB是不通的。同理PCC和PCD也是不通的。[S3026C]interfaceethernet0/1[S3026C-Ethernet0/1]portlink-typetrunk[S3026C-Ethernet0/1]porttrunkpermitvlanall[S3026C]interfaceethernet0/8[S3026C-Ethernet0/8]portlink-typetrunk[S3026C-Ethernet0/8]porttrunkpermitvlanall[root@PCAroot]#ping10.65.1.3通[root@PCAroot]#ping10.65.1.4不通实验四配置primaryVLAN和secondaryVLAN[SwitchA]vlan2[SwitchA-vlan2]portethernet0/5toethernet0/6[SwitchA]vlan3[SwitchA-vlan3]portethernet0/7toethernet0/8[SwitchA]vlan5[SwitchA-vlan5]portethernet0/1toethernet0/4[SwitchA-vlan5]isolate-user-vlanenable;vlan5是主vlan[SwitchA-vlan5]quit[SwitchA]isolate-user-vlan5secondary2,3;vlan2,3是子vlan[SwitchB]vlan2[SwitchB-vlan2]portethernet0/5toethernet0/6[SwitchB]vlan3[SwitchB-vlan3]portethernet0/7toethernet0/8[SwitchA]vlan4[SwitchB-vlan4]portethernet0/1toethernet0/4[SwitchB-vlan4]isolate-user-vlanenable;vlan4是主vlan[SwitchB-vlan4]quit[SwitchB]isolate-user-vlan4secondary2,3;vlan2,3是子vlan实验五其它功能(一)设置镜像[Quidway]monitor-porte0/8[Quidway]portmirrore0/1或:[Quidway]portmirrore0/1toe0/2observing-porte0/8(二)生成树[Quidway]stp{enable|disable}[Quidway]stppriority4096设置交换机的优先级[Quidway]stprootprimary设置交换机为树根[Quidway-Ethernet0/1]stpcost200设置交换机端口的花费实验六路由器BootROM升级system[Quidway]reloadPressCtrl+BtoenterBootMenu…BootMenu:1:Downloadapplicationprogram2:DownloadBootromprogram3:ModifyBootrompassword4:Exitmenu5:RebootEnteryourchoice(1-5):1Downloadingapplicationprogramfromserial...(rs232)pleasechooseyourdownloadspeed:1:9600bps2:19200bps3:38400bps4:ExitandrebootEnteryourchoice(1-4):2Downloadspeedis38400bps.Pleasechangetheterminal'sspeedto38400bps.AndselectXMODEMprotocol.PressENTERkeywhenready.Downloading...CC(pleaseselect[File]-[Send])Downloadcompleted.Writeflashauccessfully!实验七直联路由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.11.一个接口两个IP的情况systempassword:[Quidway]interfaceethernet0[Quidway-Ethernet0]ipaddr10.65.1.2255.255.255.0[Quidway-Ethernet1]ipaddr10.66.1.2255.255

1 / 17
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功