欢迎来到天天文库
浏览记录
ID:53850349
大小:44.00 KB
页数:11页
时间:2020-04-08
《H3C路由器与交换机地实验研究.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、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.25
2、5.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
3、@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.255.0secondary[Quiway-Ethernet1]undoshutdown[root@PCAroot]#ping10.66.1.1通2.划分两个子接
4、口,对两个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-Ethe
5、rnet0.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.
6、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]
7、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.
此文档下载收益归作者所有