您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > H3C路由学习笔记-静态路由
H3C路由(MSR26-30)1、进入系统视图Startupconfigurationfiledoesnotexist.Performingautomaticconfiguration...PressCTRL_Dtobreak.------------------------按Ctrl+D键终止设备查找自动配置Automaticconfigurationattempt:1.Notreadyforautomaticconfiguration:nointerfaceavailable.Waitingforthenext...Automaticconfigurationisaborted.-------按Ctrl+D键后放弃自动配置的尝试Lineaux0isavailable.PressENTERtogetstarted.---------------到这里系统启动完毕,按回车键H3C%Aug2209:19:53:3182014H3CSHELL/5/SHELL_LOGIN:TTYloggedinfromaux0.--------------再按一次回车键H3CH3Csystem-view[H3C]2、修改路由器名称H3Csys[H3C]sysname名称如将默认的路由器名称改为RoNetwork_Dept,Ro表示设备类型为路由器,Network_Dept表示部门名称,以后看到这个名称就知道这是什么设备、在什么位置。建议以后都采用这种方式来给设备命名,以方便管理。[H3C]sysnameRoNetwork_Dept[RoNetwork_Dept]如果要恢复默认名称,使用undosysname命令:[RoNetwork_Dept]undosysname[H3C]3、显示路由表(1)IPv4显示路由表概要信息:[RoNetwork_Dept]displayiprouting-table显示路由表详细信息:[RoNetwork_Dept]displayiprouting-tableverbose显示某种路由协议的信息:[RoNetwork_Dept]displayiprouting-tableprotocol{bgp|direct|guard|isis|ospf|rip|static}还有其他信息,可使用?显示帮助以便选择:[RoNetwork_Dept]displayiprouting-table?(2)IPv6只需将IPv4的命令中ip替换成ipv6即可。4、配置接口H3CsysH3Csystem-view[H3C]int接口名称如配置G0/0接口:[RoNetwork_Dept]intg0/0[RoNetwork_Dept-GigabitEthernet0/0]---------进入接口配置视图配置IP地址:[RoNetwork_Dept-GigabitEthernet0/0]ipadd12.0.0.1?-----后面跟掩码长度也行,跟掩码也行INTEGER1-31IPmasklengthX.X.X.XIPmask[RoNetwork_Dept-GigabitEthernet0/0]ipadd12.0.0.124----24表示掩码长度为24位,和255.255.255.0等效[RoNetwork_Dept-GigabitEthernet0/0]undoshutdown-----激活接口[RoNetwork_Dept-GigabitEthernet0/0]disintg0/0-----查看接口信息5、信息回显及tracert为了防止命令被系统输出的消息打断,可以配置信息回显:[RoNetwork_Dept]info-centersynchronous为防止tracert超时,链路两端的设备都要开启以下功能:[RoNetwork_Dept]ipredirectsenable开启设备的ICMP重定向报文的发送功能[RoNetwork_Dept]ipttl-expiresenable开启设备的ICMP超时报文的发送功能[RoNetwork_Dept]ipunreachableenable开启设备的ICMP目的不可达报文的发送功能6、配置静态路由拓扑图:RoNetwork_Dept端:H3CsysSystemView:returntoUserViewwithCtrl+Z.[H3C]sysRoNetwork_Dept[RoNetwork_Dept]infosyncInfo-centersynchronousoutputison.[RoNetwork_Dept]intlo0[RoNetwork_Dept-LoopBack0]ipadd192.168.1.124[RoNetwork_Dept-LoopBack0]intg0/0[RoNetwork_Dept-GigabitEthernet0/0]ipadd12.0.0.124[RoNetwork_Dept-GigabitEthernet0/0]undosh[RoNetwork_Dept-GigabitEthernet0/0]iproute192.168.2.2255.255.255.25512.0.0.2[RoNetwork_Dept]%Aug2211:45:32:4152014RoNetwork_DeptIFNET/3/PHY_UPDOWN:PhysicalstateontheinterfaceGigabitEthernet0/0changedtoup.%Aug2211:45:32:4162014RoNetwork_DeptIFNET/5/LINK_UPDOWN:LineprotocolstateontheinterfaceGigabitEthernet0/0changedtoup.-------系统发出的消息,g0/0接口已经up了[RoNetwork_Dept]disiproDestinations:17Routes:17Destination/MaskProtoPreCostNextHopInterface0.0.0.0/32Direct00127.0.0.1InLoop012.0.0.0/24Direct0012.0.0.1GE0/012.0.0.0/32Direct0012.0.0.1GE0/012.0.0.1/32Direct00127.0.0.1InLoop012.0.0.255/32Direct0012.0.0.1GE0/0127.0.0.0/8Direct00127.0.0.1InLoop0127.0.0.0/32Direct00127.0.0.1InLoop0127.0.0.1/32Direct00127.0.0.1InLoop0127.255.255.255/32Direct00127.0.0.1InLoop0192.168.1.0/24Direct00192.168.1.1Loop0192.168.1.0/32Direct00192.168.1.1Loop0192.168.1.1/32Direct00127.0.0.1InLoop0192.168.1.255/32Direct00192.168.1.1Loop0192.168.2.2/32Static60012.0.0.2GE0/0224.0.0.0/4Direct000.0.0.0NULL0224.0.0.0/24Direct000.0.0.0NULL0255.255.255.255/32Direct00127.0.0.1InLoop0[RoNetwork_Dept]ping192.168.2.2---------使用ping命令测试路由是否配置正确Ping192.168.2.2(192.168.2.2):56databytes,pressCTRL_Ctobreak56bytesfrom192.168.2.2:icmp_seq=0ttl=255time=1.457ms56bytesfrom192.168.2.2:icmp_seq=1ttl=255time=1.113ms56bytesfrom192.168.2.2:icmp_seq=2ttl=255time=1.168ms56bytesfrom192.168.2.2:icmp_seq=3ttl=255time=1.189ms56bytesfrom192.168.2.2:icmp_seq=4ttl=255time=1.049ms---Pingstatisticsfor192.168.2.2---5packetstransmitted,5packetsreceived,0.0%packetlossround-tripmin/avg/max/std-dev=1.049/1.195/1.457/0.140ms[RoNetwork_Dept]%Aug2211:49:29:3042014RoNetwork_DeptPING/6/PING_STATISTICS:Pingstatisticsfor192.168.2.2:5packetstransmitted,5packetsreceived,0.0%packetloss,round-tripmin/avg/max/std-dev=1.049/1.195/1.457/0.140ms.[RoNetwork_Dept]RoNetCenter端:H3CsysSystemView:returntoUserViewwithCtrl+Z.[H3C]sysRoNetCenter[RoNetCenter]infosyncInfo-centersynchronousoutputison.[RoNetCenter]intlo0[RoNetCenter-LoopBack0]ipadd192.168.2.232[RoNetCenter-LoopBack0]intg0/0[RoNetCenter-GigabitEthernet0/0]ipadd12.0.0.224[RoNetCenter-GigabitEthernet0/0]undosh[RoNetCenter-GigabitEthernet0/0]quit[RoNetCenter]ipro192.168.1.1255.255.255.25512.0.0.1[RoNetCenter]disiproDestinations:14Routes:14Destination/MaskProtoPreCostNextHopInterface0.0.0.0/32Direct00127.0.0.1InLoop012.0.0.0/24Direct0012.0.0.2GE0/012.0.0.0/32Direct0012.0.0.2GE0/012.0.0.2/32Direct00127.0.0.1InLoop012.0.0.255/32Direct0012.0.0.2GE0/0127.0.0.0/8Direct00127.0.0.1InLoop0127.0.0.0/32Direct00127.0.0.1InLoop0127.0.0.1/32Direct00127.0.0.1InLoop0127.255.255.255/32Direct00127.0.0.1InLoop0192.168.1.1/32Static60012.0.0.1GE0/0192.168.2.2/32Direct00127.0.0.1InLoop0224.0.0.0/4Direct000.0.0.0NULL0224.0.0.0/24Direct000.0.0.0NULL0255.255.255.255/32Direct00127.0.0.1InLoop0[RoNetCenter]配置等价静态路由RoNetwork_Dept端:[RoNetwork_Dept]intg0/1[RoNetwork_Dept-GigabitEthernet0/1]ipadd21.0.0.124[RoNetwork_Dept-Gigabi
本文标题:H3C路由学习笔记-静态路由
链接地址:https://www.777doc.com/doc-7193908 .html