v200r010c00配置指南-ip单播路由0103静态_第1页
v200r010c00配置指南-ip单播路由0103静态_第2页
v200r010c00配置指南-ip单播路由0103静态_第3页
v200r010c00配置指南-ip单播路由0103静态_第4页
v200r010c00配置指南-ip单播路由0103静态_第5页
已阅读5页,还剩41页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

配置指南-IP单播路由©©静态路由配置静态路由简介定目 静态路由基础目的地址和掩码《S1720&S2700&S5700&S6720V200R010C00配置指南-IPIPv6应用参见“3.3.2静态缺省路由的应用”。出接口和下一跳地址l对于点到点类型的接口,只需指定出接口。因为指定发送接口即隐含指定了下一l对于NBMA(NonBroadcastMultipleAccess)类型的接口(如ATM接口),配置l对于广播类型的接口(如以太网接口)和VT(Virtual-temte)接口,必须指定接口下可以关联多个虚拟接口(VirtualAccessInterface),这都会导致出现多静态路由优先级配置到达相同目的地的多态路由,如果指定相同优先级,则可实现负载分担;如果指定不同优先级,则可实现路由备份。具体应用参见“3.3.1负载分担与路由备份静态路由与BFD联动 性》BFD配置中的“原理描述”。制,在某些应用场景无法实施。而静态路由与NQA(NetworkQualityysis)联动则l如果NQA测试例检测到链路故障,路由器将这态路由设置为“非激活”状 NQA的详细介绍请参见《S1720&S2700&S5700&S6720V200R010C00配置指南-网络管理与》NQA配置。说明应 IPIP 静态路由永久发布径穿越时,静态路由永久发布可以通过静态路由目的地址的方式来检测链路的有 注注应如图3-2所示,BR1、BR2和BR3分别属于ISP1、ISP2和ISP3。从BR1到BR2有两BBRBRBR在BR1和BR2之间建立直连单跳EBGP邻居,同时为了进行业务状态,在BR1上配地接口),并使能路由永久发布。网络系统周期性的10.1.1.2,可通过结BGP邻居断开,系统可以通过结果间接的检测到业务问题,并通知人员及负载分担与路由备份负载分担

SwitchPreference=Preference=Switch Preference= SwitchSwitch路由备份

Preference=SwPreference=SwitchPreference=SwitchSwitch如图3-4wcASwhwhwh的 静态缺省路由的应用 中通往1、2、3网络的3态路由。配置任务概览静态路由的配置任务如表3-1场描对应任务l3.6配置IPv4静态路由l3.10配置IPv6场描对应任务l3.7配置IPv4静态路由与静态BFD联动l3.8配置IPv4静态路由与NQA联动l3.9配置IPv4静态路由与EFM联动参缺省IPv4静态前置任务 配置流程背景信息 操作步骤步骤1执行命令system-view步骤2配置IPv4 在公网上配置IPv4静态路由:iproute-staticip-addressmask|mask-length{nexthop-address|interface-typeinterface-number[nexthop-address] --instance-namenexthop-address}[preferencepreference|tagtag]*[text 实例中配置IPv4静态路由:iproute-static destination-address{mask|mask-length}{nexthop-address[public]|interface-typeinterface-number[nexthop-address]| -instance-instance-namenexthop-address}[preferencepreference|tagtag]*[descriptiontext]说明----结束(可选)配置IPv4静态路由的缺省优先级背景信息操作步骤

步骤1执行命令system-view步骤2执行命令iproute-staticdefault-preferencepreference,配置静态路由的缺省优先级。说明----结束(可选)配置IPv4静态路由永久发布背景信息

操作步骤步骤1执行命令system-view步骤2执行命令iproute-staticip-address{mask|mask-length}{nexthop-address|interface-typeinterface-number[nexthop-address]| -instance-instance-namenexthop-address}说明 ----结束背景信息缺省情况下,与静态路由绑定的BFD会话处于Admindown状态时,这些静态路由是可为了解决这个问题,可以配置iproute-statictrackbfd-sessionadmindowninvalid命操作步骤

步骤1执行命令system-view步骤2执行命令iproute-statictrackbfd-sessionsession-namebfd-nameadmindowninvalid,配置与BFD会话绑定的静态路由在BFD会话处于Admindown时不可以参与选路。----结束(可选)配置静态路由迭代到黑洞路背景信息

操作步骤

步骤1执行命令system-view步骤2执行命令iprouterecursive-lookupblackholeprotocolstaticdisable,配置静态路由----结束检查配置结果操作步骤 ----结束IPv4静态路由与静态BFD联前置任务

靠性》BFD配置。操作步骤

步骤1执行命令system-view步骤2执行命令iproute-staticip-addressmask|mask-lengthnexthop-address|interface-typeinterface-number[nexthop-addresspreferencepreference|tagtag*trackbfd-sessioncfg-name[descriptiontext],为公网IPv4静态路由绑定静态BFD会话。说明配置bfdsessionnonexistent-config-checkdisable命令去使能检查被联动的BFD会话是否被删除的----结束检查配置结果 使用disybfdsessionall[verbose]命令查看BFD会话信息IPv4静态路NQA联前置任务 操作步骤

步骤1配置ICMP类型的NQA执行命令nqatest-instanceadmin-nametest-name,建立NQA测试例,并进入测试例说明(可选)执行命令probe-countnumber,配置NQA测试例一次测试的探针数目。缺执行命令startnowendatyyyy/mm/ddhh:mm:ss|delaysecondssecondhh:mm:ss|lifetimesecondssecond|hh:mm:ss执行命令startat[yyyy/mm/dd]hh:mm:ss[end{at[yyyy/mm/dd]hh:mm:ss|delaysecondssecond|hh:mm:ss|lifetimesecondssecond|hh:mm:ss,执行命令startdelaysecondssecond|hh:mm:ssendatyyyy/mm/dd]hh:mm:ss|delay{secondssecond|hh:mm:ss}|lifetime{secondssecond|hh:mm:ss}}],延迟指定时间后启动测试例。步骤2配置静态路由与NQA执行命令iproute-staticip-addressmask|mask-lengthnexthop-addressinterface-typeinterface-number[nexthop-address]}[preferencepreference|tagtag*tracknqaadmin-nametest-namedescriptiontext],配置IPv4静态路由与NQA测说明----结束检查配置结果 使用disycurrent-configuration|includenqa命令查看静态路由与NQA联动的配 ynqaresults[collection][test-instanceadmin-nametest-name]命令查看 ,必须使用disynqaresults命令查看测 IPv4静态路EFM联背景信息前置任务操作步骤

步骤1执行命令system-view步骤2执行命令iproute-staticip-addressmask|mask-lengthnexthop-address|interface-typeinterface-number[nexthop-addresspreferencepreference]trackefm-stateinterface-typeinterface-number[descriptiontext],配置IPv4静态路由与EFM联动。----结束检查配置结果

执行disyefmsession{all|interfaceinterface-typeinterface-number}命令查看指定接口的EFMOAM会话信息。 执行disycurrent-configuration|includeefm命令查看IPv4静态路由与EFM联动IPv6静态前置任务

配置流程

背景信息

操作步骤

步骤1执行命令system-view步骤2配置IPv6 {interface-typeinterface-number[nexthop-ipv6-address]|nexthop-ipv6-address[preferencepreference|tagtag]*[bfdenable|track{bfd-sessioncfg-name|admin-nametest-name}][descriptiontext 在实例中配置IPv6静态路由:ipv6route-static dest-ipv6-addressprefix-length{[interface-typeinterface-number]nexthop-ipv6-address|nexthop-ipv6-address[public]| -destination-namenexthop-ipv6-address}[preferencepreference|tagtag]*[descriptiontext]说明 ----结束(可选)配置IPv6静态路由的缺省优先级背景信息操作步骤

步骤1执行命令system-view步骤2执行命令ipv6route-staticdefault-preferencepreference,配置IPv6静态路由的缺省优先----结束检查配置结果操作步骤 ----结束IPv6静态路由与静态BFD联应用环境前置任务

建立BFD会话。详细配置请参见《S1720&S2700&S5700&S6720V200R010C00配置指南-可靠性》BFD配置。操作步骤

步骤1执行命令system-view步骤2执行命令ipv6route-staticdest-ipv6-addressprefix-length{interface-typeinterface-number[nexthop-ipv6-address]|nexthop-ipv6-address| nexthop-ipv6-address}[preferencepreference|tagtag]*[trackbfd-sessioncfg-name][descriptiontext],为IPv6静态路由绑定BFD会话。说明配置bfdsessionnonexistent-config-checkdisable命令去使能检查被联动的BFD会话是否被删除的----结束检查配置结果 使用disybfdsession{all|discriminatordiscr-value}[verbose]命令查看BFD会 使用disycurrent-configuration|includebfd命令查看BFDforIPv6静态路由的配配置IPv4静态路由示例组网需求PC10.1.2.2/2Switch

GE0/0/1VLANIF1010.1.4.2/3

GE0/0/3VLANIF4010.1.2.1/2GE0/0/VLANIF2010.1.4.5/3Switch

SwitchGE0/0/2VLANIF3010.1.1.1/2

GE0/0/1VLANIF1010.1.4.1/3

GE0/0/1VLANIF2010.1.4.6/30GE0/0/VLANIF5010.1.3.1/2PC PC10.1.1.2/2 10.1.3.2/2配置思路

操作步骤

步骤1配置各接口所属#<<[>system-]sysname[SwitchA]vlanbatch10[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-typetrunk[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan10[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/2]portlink-typeaccess[SwitchA-GigabitEthernet0/0/2]portdefaultvlan30[SwitchA-GigabitEthernet0/0/2]quit步骤2配置各VLANIF接口的IP#[SwitchA][SwitchA]interfacevlanif[SwitchA-Vlanif10]ipaddress10.1.4.130[SwitchA-Vlanif10]quit[SwitchA]interfacevlanif[SwitchA-Vlanif30]ipaddress10.1.1.124[SwitchA-Vlanif30]quit步骤3步骤4[SwitchA][SwitchA]iproute-static0.0.0.00.0.0.0[SwitchB][SwitchB]iproute-static10.1.1.0255.255.255.0[SwitchB]iproute-static10.1.3.0255.255.255.0[SwitchC][SwitchC]iproute-static0.0.0.00.0.0.0步骤5[SwitchA]disyiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:Routes: Proto Static10.1.1.0/24Direct10.1.1.1/32Direct10.1.4.0/30Direct10.1.4.1/32Direct Direct Direct 10.1.3.1:56databytes,pressCTRL_CtoReplyfrom10.1.3.1:bytes=56Sequence=1ttl=253time=62msReplyfrom10.1.3.1:bytes=56Sequence=2ttl=253time=63msReplyfrom10.1.3.1:bytes=56Sequence=3ttl=253time=63msReplyfrom10.1.3.1:bytes=56Sequence=4ttl=253time=62msReplyfrom10.1.3.1:bytes=56Sequence=5ttl=253time=62---statistics--5packet(s)5packet(s)0.00%packetround-tripmin/avg/max=62/62/63[SwitchA][SwitchA]tracerttracerouteto10.1.3.1(10.1.3.1),maxhops:30,packetlength:40,pressCTRL_Cto110.1.4.231ms32ms31210.1.3.162ms63ms62----结束配置文件 ##vlanbatch1030interfaceinterfaceipaddress10.1.4.1255.255.255.252interfaceipaddress10.1.1.1255.255.255.0portlink-typetrunkporttrunkallow-passvlan10portlink-typeaccessportdefaultvlan30iproute-static0.0.0.00.0.0.010.1.4.2##vlanbatch102040interfaceipaddress10.1.4.2#interfaceipaddress10.1.4.5#interfaceipaddress10.1.2.1#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/3portlink-typeaccessportdefaultvlan#iproute-static10.1.1.0255.255.255.0iproute-static10.1.3.0255.255.255.010.1.4.6 ##vlanbatch2050interfaceipaddress10.1.4.6#interfaceipaddress10.1.3.1#portlink-typetrunkporttrunkallow-passvlan#portlink-typeaccessportdefaultvlan#ipiproute-static0.0.0.00.0.0.010.1.4.5相关信息如何配置缺省路由如何配置浮动静态路由配置IPv6静态路由示例组网需求

PCFC00:0:0:2002::2/6GE0/0/1VLANIF2FC00:0:0:2010::2/6

GE0/0/3VLANIF3FC00:0:0:2002::1/6GE0/0/2VLANIF40FC00:0:0:2020::1/6SwitchGE0/0/VLANIF2

Switch

GE0/0/1VLANIF4

SwitchGE0/0/2VLANIF1FC00:0:0:2001::1/6

FC00:0:0:2010::1/6 FC00:0:0:2020::2/64GE0/0/VLANIF5FC00:0:0:2003::1/6PC PCFC00:0:0:2001::2/6 FC00:0:0:2003::2/6配置思路

操作步骤

步骤1配置接口所属<<[>system-]sysname[SwitchA]vlanbatch10[SwitchA][SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-typetrunk[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan20[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/2]portlink-typeaccess[SwitchA-GigabitEthernet0/0/2]portdefaultvlan10[SwitchA-GigabitEthernet0/0/2]quit步骤2配置VLANIF接口的IP#[SwitchA][SwitchA][SwitchA]interfacevlanif10[SwitchA-Vlanif10]ipv6enable[SwitchA-Vlanif10]ipv6addressfc00:0:0:2001::1/64[SwitchA-Vlanif10]quit[SwitchA]interfacevlanif20[SwitchA-Vlanif20]ipv6enable[SwitchA-Vlanif20]ipv6addressfc00:0:0:2010::1/64[SwitchA-Vlanif20]quit步骤3步骤4配置IPv6[SwitchA]ipv6route-static::0vlanif20 #[SwitchB][SwitchB]ipv6route-staticfc00:0:0:2001::64vlanif20fc00:0:0:2010::1[SwitchB]ipv6route-staticfc00:0:0:2003::64vlanif40[SwitchC]ipv6route-static::0vlanif40 步骤5[SwitchA][SwitchA] yipv6routing-RoutingTable:Destinations: Routes::::PrefixLength:RelayNextHop: : : : ::::PrefixLength:RelayNextHop: : : : ::::PrefixLength:RelayNextHop::: : : ::::PrefixLength:RelayNextHop: : : : ::::PrefixLength:RelayNextHop: : : : ::::PrefixLength:RelayNextHop: : : : ::::PrefixLength:RelayNextHop: : : : :ipv6fc00:0:0:2003::1:56databytes,pressCTRL_CtoReplyfrombytes=56Sequence=1hoplimit=63ReplyfromFC00:0:0:2003::1bytes=56Sequence=2hoplimit=63ReplyfromFC00:0:0:2003::1bytes=56Sequence=3hoplimit=63ReplyfromFC00:0:0:2003::1bytes=56Sequence=4hoplimit=63ReplyfromFC00:0:0:2003::1bytes=56Sequence=5hoplimit=63time=63time=62time=62mstime=63time=63--- statistics--5packet(s)5packet(s)0.00%packetround-tripmin/avg/max=62/62/63[SwitchA][SwitchA]tracertipv6traceroutetofc00:0:0:2003::130hopsmax,60bytes1FC00:0:0:2010::231ms32ms312FC00:0:0:2003::162ms63ms62----结束配置文件 ##vlanbatch1020ipv6enableipv6address#ipv6enableportlink-typetrunkporttrunkallow-passvlan20portlink-typeaccessportdefaultvlan10ipv6route-static::0Vlanif20FC00:0:0:2010::2##vlanbatch203040ipv6enableipv6address#ipv6enableipv6address#ipv6enableipv6address#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/3portlink-typeaccessportdefaultvlan#ipv6route-staticFC00:0:0:2001::64Vlanif20FC00:0:0:2010::1ipv6route-staticFC00:0:0:2003::64Vlanif40FC00:0:0:2020::2 ##vlanbatch4050ipv6enableipv6address#ipv6enableipv6address#interfaceportportlink-typeporttrunkallow-passvlan40portlink-typeaccessportdefaultvlan50ipv6route-static::0Vlanif40FC00:0:0:2020::1配置IPv4静态路由与静态BFD联动示例组网需求

如图3-8所示,SwitchA通过SwitchB和NMS跨网段相连。在SwitchA上通过静GE0/0/VLANIF1010.1.1.1/2

GE0/0/

GE0/0/VLANIF2010.2.2.2/210.2.2.1/2SwitchA VLANIF1010.1.1.2/2

Switch NM配置思路

在SwitchA和SwitchB上配置BFDSession,在SwitchA和SwitchB之间实现毫秒级故配置SwitchA到NMS的静态路由并绑定BFDSession,实现毫秒级故障感知,提高操作步骤

步骤1配置各接口所属的#<<[>system-]sysname[SwitchA]vlan[SwitchA-vlan10][SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-typetrunk[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan10[SwitchA-GigabitEthernet0/0/1]quit步骤2配置各VLANIF接口的IP#[SwitchA][SwitchA]interfacevlanif[SwitchA-Vlanif10]ipaddress10.1.1.124[SwitchA-Vlanif10]quit步骤3配置SwitchA和SwitchB间的BFD#[SwitchA][SwitchA]bfd[SwitchA-bfd]quit[SwitchA]bfdaabindpeer-ip[SwitchA-bfd-session-aa]discriminatorlocal10[SwitchA-bfd-session-aa]discriminatorremote20[SwitchA-bfd-session-aa]commit[SwitchA-bfd-session-aa]#[SwitchB][SwitchB]bfd[SwitchB-bfd]quit[SwitchB]bfdbbbindpeer-ip[SwitchB-bfd-session-bb]discriminatorlocal20[SwitchB-bfd-session-bb]discriminatorremote10[SwitchB-bfd-session-bb]commit[SwitchB-bfd-session-bb]步骤4配置静态路由并绑定BFD#[SwitchA]iproute-static10.2.2.02410.1.1.2trackbfd-session 步骤5[SwitchA]disybfdsessionLocalRemote -TotalUP/DOWNSessionNumber:[SwitchA]yiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:5 /24/3210.2.2.0/24 Routes: 0 0 0 0 [SwitchB][SwitchB]interfacegigabitethernet0/0/1[SwitchB-GigabitEthernet0/0/1]shutdown# yiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations: Routes: Pre Flags 00D00D#[SwitchB-GigabitEthernet0/0/1]undo [SwitchA]yiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:5 /24/3210.2.2.0/24 Routes: 0 0 0 0 ----结束配置文件

##interfaceipaddress10.1.1.1255.255.255.0interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10bfdaabindpeer-ip10.1.1.2discriminatorlocal10#iproute-static10.2.2.0255.255.255.010.1.1.2trackbfd-sessionaa ##vlanbatch1020interfaceipaddress10.1.1.2##interfaceipaddress10.2.2.2255.255.255.0portlink-typetrunkporttrunkallow-passvlan10portlink-typetrunkporttrunkallow-passvlan20bfdbbbindpeer-ip10.1.1.1discriminatorlocal20#相关信息如何配置缺省路由如何配置浮动静态路由配置IPv6静态路由与静态BFD联动示例组网需求 配置思路操作步骤

步骤1配置各Switch接口IPv6#<<[>system-]sysname[SwitchA][SwitchA]interfaceGigabitEthernet0/0/1[SwitchA-GigabitEthernet0/0/1]undoportswitch[SwitchA-GigabitEthernet0/0/1]ipv6enable[SwitchA-GigabitEthernet0/0/1]ipv6addressfc00::164[SwitchA-GigabitEthernet0/0/1]quit步骤2配置SwitchA和SwitchB之间的BFD#[SwitchA][SwitchA]bfd[SwitchA-bfd]quit[SwitchA]bfdaabindpeer-ipv6fc00::2[SwitchA-bfd-session-aa]discriminatorlocal10[SwitchA-bfd-session-aa]discriminatorremote20[SwitchA-bfd-session-aa]commit[SwitchA-bfd-session-aa]#[SwitchB][SwitchB]bfd[SwitchB-bfd]quit[SwitchB]bfdbbbindpeer-ipv6fc00::1[SwitchB-bfd-session-bb]discriminatorlocal20[SwitchB-bfd-session-bb]discriminatorremote10[SwitchB-bfd-session-bb]commit[SwitchB-bfd-session-bb]步骤3配置静态缺省路由并绑定BFD[SwitchA][SwitchA]ipv6route-static0::00fc00::2trackbfd-session步骤4[SwitchA]ybfdsessionLocal -TotalUP/DOWNSessionNumber:#在SwitchA和SwitchB上执行disycurrent-configuration|includebfd命令,可以看[SwitchA][SwitchA]dis ycurrent-configuration|includebfdbfdaabindpeer-ipv6ipv6route-static::0FC00::2trackbfd-session#[SwitchA][SwitchA]dis RoutingTable:PublicDestinationsDestinations:Routes:Destination:PrefixLength: : :RelayNextHop:::: : : : ::::PrefixLength:RelayNextHop::: : : : ::::PrefixLength:RelayNextHop: : : : : ::::PrefixLength:RelayNextHop: : : : : ::::PrefixLength:RelayNextHop::: :NULL0 : : : :#[SwitchB][SwitchB]interfaceGigabitEthernet0/0/1[SwitchB-GigabitEthernet0/0/1]shutdown[SwitchA][SwitchA] yipv6routing-RoutingTable:Destinations: Routes::::PrefixLength:RelayNextHop::: : : : :----结束配置文件 ##interfaceGigabitEthernet0/0/1undoportswitchipv6ipv6addressFC00::1/64bfdaabindpeer-ipv6discriminatordiscriminatorlocal#ipv6route-static::0FC00::2trackbfd-sessionaa ##interfaceGigabitEthernet0/0/1undoportswitchipv6ipv6address#bfdbbbindpeer-ipv6FC00::1discriminatorlocal20#组网需求

如图3-10所示为某公司网络,接入层设备SwitchD和SwtichE通过静态路由与汇 说明IPIPNetwoSwitchSwitchSwitch.....Switch.....Switch.....Client Client1 Client9 Client10设备名称接IP地址配置思路

操作步骤

步骤1配置各接口所属的#<<[>system-]sysname[SwitchA]vlanbatch30[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-typetrunk[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan30[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/2]portlink-typetrunk[SwitchA-GigabitEthernet0/0/2]porttrunkallow-passvlan40[SwitchA-GigabitEthernet0/0/2]quit步骤2配置各VLANIF接口的IP#[SwitchA][SwitchA]interfacevlanif[SwitchA-Vlanif30]ipaddress192.168.3.124[SwitchA-Vlanif30]quit[SwitchA]interfacevlanif[SwitchA-Vlanif40]ipaddress192.168.4.124[SwitchA-Vlanif40]quit[SwitchB][SwitchB]nqatest-instanceusertest[SwitchB-nqa-user-test]test-type[SwitchB-nqa-user-test]frequency20[SwitchB-nqa-user-test]probe-count2[SwitchB-nqa-user-test]intervalseconds5[SwitchB-nqa-user-test]timeout4[SwitchB-nqa-user-test]startnow[SwitchB-nqa-user-test]步骤4[SwitchB][SwitchB]iproute-static192.168.7.0255.255.255.0Vlanif10192.168.1.2tracknqauser[SwitchC]iproute-static192.168.7.0255.255.255.0Vlanif60 [SwitchA][SwitchA]ospf1router-id[SwitchA-ospf-1]area[SwitchA-ospf-1-area-0.0.0.0]network192.168.3.0[SwitchA-ospf-1-area-0.0.0.0]network192.168.4.00.0.0.255[SwitchA-ospf-1-area-0.0.0.0]quit[SwitchA-ospf-1][SwitchB][SwitchB]ospf1router-id[SwitchB-ospf-1]area[SwitchB-ospf-1-area-0.0.0.0]network192.168.3.00.0.0.255[SwitchB-ospf-1-area-0.0.0.0]quit[SwitchB-ospf-1][SwitchC][SwitchC]ospf1router-id[SwitchC-ospf-1]area[SwitchC-ospf-1-area-0.0.0.0]network192.168.4.00.0.0.255[SwitchC-ospf-1-area-0.0.0.0]quit[SwitchC-ospf-1]步骤6在SwitchB和SwitchC上配置OSPF#[SwitchB][SwitchB]ospf[SwitchB-ospf-1]import-routestaticcost10[SwitchB-ospf-1]quit#[SwitchC][SwitchC]ospf[SwitchC-ospf-1]import-routestaticcost20[SwitchC-ospf-1]quit步骤7配置完成后,在系统视图下,在汇聚层交换机SwitchB上执行disycurrent-configuration|includenqa命令,可以看到静态路由已经绑定NQA测试例。执行disynqaresults命令,可以看到NQA测试例已经建立。[SwitchB][SwitchB] ycurrent-configuration|includeiproute-static192.168.7.0255.255.255.0Vlanif10192.168.1.2tracknqausertestnqatest-instanceusertest#查看NQA[SwitchB][SwitchB] ynqaresultstest-instanceuserNQAentry(user,test):testflagisactive,testtypeis1.Test288 ThetestisSendoperationtimes:2 Receiveresponsetimes:2 RTDOverThresholdsnumber:0Attemptsnumber:1 Dropoperationnumber:0Disconnectoperationnumber:0 Operationtimeoutnumber:0Systembusyoperationnumber:0 Connectionfailnumber:0Operationsequenceerrorsnumber:0 RTTStatuserrorsnumber:0Destinationipaddress:192.168.1.2Min/Max/AverageCompletionTime:Sum/Square-SumSum/Square-SumCompletionTime:LastGoodProbeTime:2014-09-09Lostpacketratio:0可以看到“Lostpacketratio:0[SwitchB]disyiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:Routes: 127.0.0.1/32192.168.1.0/24192.168.1.1/32192.168.3.0/24192.168.3.2/32192.168.4.0/24192.168.5.0/24192.168.5.1/32192.168.7.0/2400000000 [SwitchA]disyiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:Routes: 127.0.0.1/32192.168.3.0/24192.168.3.1/32192.168.4.0/24192.168.4.1/32192.168.7.0/24000000 #[SwitchB][SwitchB]interfaceGigabitEthernet0/0/3[SwitchB-GigabitEthernet0/0/3]shutdown[SwitchB-GigabitEthernet0/0/3]quit#查看NQA[SwitchB][SwitchB] ynqaresultstest-instanceuserNQAentry(user,test):testflagisactive,testtypeis1.Test309 ThetestisSendoperationtimes:2 Receiveresponsetimes:0 RTDOverThresholdsnumber:0Attemptsnumber:1 Dropoperationnumber:2Disconnectoperationnumber:0 Operationtimeoutnumber:0Systembusyoperationnumber:0 Connectionfailnumber:0Operationsequenceerrorsnumber:0 RTTStatuserrorsnumber:0Destinationipaddress:192.168.1.2Min/Max/AverageCompletionTime:Sum/Square-SumCompletionTime:LastLastGoodProbeTime:0000-00-00Lostpacketratio:100可以看到“Completion:failed”、“Lostpacketratio:100”,这说明链路发生了故[SwitchB]disyiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:Routes: 127.0.0.1/32192.168.3.0/24192.168.3.2/32192.168.4.0/24192.168.5.0/24192.168.5.1/32192.168.7.0/24000000 [SwitchA]disyiprouting-RouteFlags:R-relay,D-downloadtoRoutingTables:Destinations:Routes: 127.0.0.1/32192.168.3.0/24192.168.3.1/32192.168.4.0/24192.168.4.1/32192.168.7.0/24000000 因为wchQANAwchwcASwh4whwch192168.7.02的路由,19.168.7.0412.168.4.2cos值为0wchwch。----结束配置文件 ##vlanbatch3040interfaceipaddress192.168.3.1#interfaceipaddress192.168.4.1#interfaceGigabitEthernet0/0/1portlink-typetrunkportporttrunkallow-passvlan30portlink-typetrunkporttrunkallow-passvlan40ospf1router-idareanetwork192.168.3.0network192.168.4.0##vlan#vlanbatch103050interfaceipaddress192.168.1.1#interfaceipaddress192.168.3.2#interfaceipaddress192.168.5.1#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/3portlink-typetrunkporttrunkallow-passvlan#ospf1router-id10.2.2.2import-routestaticcost10area0.0.0.0network192.168.3.0#iproute-static192.168.7.0255.255.255.0Vlanif10192.168.1.2tracknqausertestnqatest-instanceusertesttest-typeicmpdestination-addressipv4frequencyintervalsecondstimeoutstartnow# ##vlanbatch204060interfaceipaddress192.168.2.1#interfaceipaddress192.168.4.2#interfaceinterfaceipaddress192.168.6.1255.255.255.0portlink-typetrunkporttrunkallow-passvlan40portlink-typetrunkporttrunkallow-passvlan60portlink-typetrunkporttrunkallow-passvlan20ospf1router-id10.3.3.3import-routestaticcost20area0.0.0.0network192.168.4.0#iproute-static192.168.7.0255.255.255.0Vlanif60192.168.6.2#vlan#vlanbatch106070interfaceipaddress192.168.1.2255.255.255.0interfaceipaddress192.168.6.2255.255.255.0interfaceipaddress192.168.7.1255.255.255.0interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan60interfaceGigabitEthernet0/0/4portlink-typetrunkporttrunkallow-passvlan70 ##vlanbatch205080interfaceipaddress192.168.2.2#interfaceipaddress192

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论