欢迎来到天天文库
浏览记录
ID:38808299
大小:44.00 KB
页数:11页
时间:2019-06-19
《H3C路由器与交换机的实验研究》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
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]#ifconf
2、igeth010.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]#ping1
3、0.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.2
4、55.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]porttrunkpermitvlan
5、all[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
6、]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.
7、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
8、]clockrate64000[RouterA-Serial1]quit[RouterA]iprouting[RouterA]discurr[RouterB]interfaceethernet0[RouterB-Ethernet0]ipaddrress10.68.1.2255.255.0.
此文档下载收益归作者所有