版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
配置指南-IP單播路由??靜態(tài)路由配置靜態(tài)路由簡(jiǎn)介定目 靜態(tài)路由基礎(chǔ)目的地址和掩碼《S1720&S2700&S5700&S6720V200R010C00配置指南-IPIPv6應(yīng)用參見“3.3.2靜態(tài)缺省路由的應(yīng)用”。出接口和下一跳地址l對(duì)于點(diǎn)到點(diǎn)類型的接口,只需指定出接口。因?yàn)橹付òl(fā)送接口即隱含指定了下一l對(duì)于NBMA(NonBroadcastMultipleAccess)類型的接口(如ATM接口),配置l對(duì)于廣播類型的接口(如以太網(wǎng)接口)和VT(Virtual-temte)接口,必須指定接口下可以關(guān)聯(lián)多個(gè)虛擬接口(VirtualAccessInterface),這都會(huì)導(dǎo)致出現(xiàn)多靜態(tài)路由優(yōu)先級(jí)配置到達(dá)相同目的地的多態(tài)路由,如果指定相同優(yōu)先級(jí),則可實(shí)現(xiàn)負(fù)載分擔(dān);如果指定不同優(yōu)先級(jí),則可實(shí)現(xiàn)路由備份。具體應(yīng)用參見“3.3.1負(fù)載分擔(dān)與路由備份靜態(tài)路由與BFD聯(lián)動(dòng) 性》BFD配置中的“原理描述”。制,在某些應(yīng)用場(chǎng)景無法實(shí)施。而靜態(tài)路由與NQA(NetworkQualityysis)聯(lián)動(dòng)則l如果NQA測(cè)試?yán)龣z測(cè)到鏈路故障,路由器將這態(tài)路由設(shè)置為“非激活”狀 NQA的詳細(xì)介紹請(qǐng)參見《S1720&S2700&S5700&S6720V200R010C00配置指南-網(wǎng)絡(luò)管理與》NQA配置。說明應(yīng) IPIP 靜態(tài)路由永久發(fā)布徑穿越時(shí),靜態(tài)路由永久發(fā)布可以通過靜態(tài)路由目的地址的方式來檢測(cè)鏈路的有 注注應(yīng)如圖3-2所示,BR1、BR2和BR3分別屬于ISP1、ISP2和ISP3。從BR1到BR2有兩BBRBRBR在BR1和BR2之間建立直連單跳EBGP鄰居,同時(shí)為了進(jìn)行業(yè)務(wù)狀態(tài),在BR1上配地接口),并使能路由永久發(fā)布。網(wǎng)絡(luò)系統(tǒng)周期性的10.1.1.2,可通過結(jié)BGP鄰居斷開,系統(tǒng)可以通過結(jié)果間接的檢測(cè)到業(yè)務(wù)問題,并通知人員及負(fù)載分擔(dān)與路由備份負(fù)載分擔(dān)
SwitchPreference=Preference=Switch Preference= SwitchSwitch路由備份
Preference=SwPreference=SwitchPreference=SwitchSwitch如圖3-4wcASwhwhwh的 靜態(tài)缺省路由的應(yīng)用 中通往1、2、3網(wǎng)絡(luò)的3態(tài)路由。配置任務(wù)概覽靜態(tài)路由的配置任務(wù)如表3-1場(chǎng)描對(duì)應(yīng)任務(wù)l3.6配置IPv4靜態(tài)路由l3.10配置IPv6場(chǎng)描對(duì)應(yīng)任務(wù)l3.7配置IPv4靜態(tài)路由與靜態(tài)BFD聯(lián)動(dòng)l3.8配置IPv4靜態(tài)路由與NQA聯(lián)動(dòng)l3.9配置IPv4靜態(tài)路由與EFM聯(lián)動(dòng)參缺省IPv4靜態(tài)前置任務(wù) 配置流程背景信息 操作步驟步驟1執(zhí)行命令system-view步驟2配置IPv4 在公網(wǎng)上配置IPv4靜態(tài)路由:iproute-staticip-addressmask|mask-length{nexthop-address|interface-typeinterface-number[nexthop-address] --instance-namenexthop-address}[preferencepreference|tagtag]*[text 實(shí)例中配置IPv4靜態(tài)路由:iproute-static destination-address{mask|mask-length}{nexthop-address[public]|interface-typeinterface-number[nexthop-address]| -instance-instance-namenexthop-address}[preferencepreference|tagtag]*[descriptiontext]說明----結(jié)束(可選)配置IPv4靜態(tài)路由的缺省優(yōu)先級(jí)背景信息操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令iproute-staticdefault-preferencepreference,配置靜態(tài)路由的缺省優(yōu)先級(jí)。說明----結(jié)束(可選)配置IPv4靜態(tài)路由永久發(fā)布背景信息
操作步驟步驟1執(zhí)行命令system-view步驟2執(zhí)行命令iproute-staticip-address{mask|mask-length}{nexthop-address|interface-typeinterface-number[nexthop-address]| -instance-instance-namenexthop-address}說明 ----結(jié)束背景信息缺省情況下,與靜態(tài)路由綁定的BFD會(huì)話處于Admindown狀態(tài)時(shí),這些靜態(tài)路由是可為了解決這個(gè)問題,可以配置iproute-statictrackbfd-sessionadmindowninvalid命操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令iproute-statictrackbfd-sessionsession-namebfd-nameadmindowninvalid,配置與BFD會(huì)話綁定的靜態(tài)路由在BFD會(huì)話處于Admindown時(shí)不可以參與選路。----結(jié)束(可選)配置靜態(tài)路由迭代到黑洞路背景信息
操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令iprouterecursive-lookupblackholeprotocolstaticdisable,配置靜態(tài)路由----結(jié)束檢查配置結(jié)果操作步驟 ----結(jié)束IPv4靜態(tài)路由與靜態(tài)BFD聯(lián)前置任務(wù)
靠性》BFD配置。操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令iproute-staticip-addressmask|mask-lengthnexthop-address|interface-typeinterface-number[nexthop-addresspreferencepreference|tagtag*trackbfd-sessioncfg-name[descriptiontext],為公網(wǎng)IPv4靜態(tài)路由綁定靜態(tài)BFD會(huì)話。說明配置bfdsessionnonexistent-config-checkdisable命令去使能檢查被聯(lián)動(dòng)的BFD會(huì)話是否被刪除的----結(jié)束檢查配置結(jié)果 使用disybfdsessionall[verbose]命令查看BFD會(huì)話信息IPv4靜態(tài)路NQA聯(lián)前置任務(wù) 操作步驟
步驟1配置ICMP類型的NQA執(zhí)行命令nqatest-instanceadmin-nametest-name,建立NQA測(cè)試?yán)?,并進(jìn)入測(cè)試?yán)f明(可選)執(zhí)行命令probe-countnumber,配置NQA測(cè)試?yán)淮螠y(cè)試的探針數(shù)目。缺執(zhí)行命令startnowendatyyyy/mm/ddhh:mm:ss|delaysecondssecondhh:mm:ss|lifetimesecondssecond|hh:mm:ss執(zhí)行命令startat[yyyy/mm/dd]hh:mm:ss[end{at[yyyy/mm/dd]hh:mm:ss|delaysecondssecond|hh:mm:ss|lifetimesecondssecond|hh:mm:ss,執(zhí)行命令startdelaysecondssecond|hh:mm:ssendatyyyy/mm/dd]hh:mm:ss|delay{secondssecond|hh:mm:ss}|lifetime{secondssecond|hh:mm:ss}}],延遲指定時(shí)間后啟動(dòng)測(cè)試?yán)?。步驟2配置靜態(tài)路由與NQA執(zhí)行命令iproute-staticip-addressmask|mask-lengthnexthop-addressinterface-typeinterface-number[nexthop-address]}[preferencepreference|tagtag*tracknqaadmin-nametest-namedescriptiontext],配置IPv4靜態(tài)路由與NQA測(cè)說明----結(jié)束檢查配置結(jié)果 使用disycurrent-configuration|includenqa命令查看靜態(tài)路由與NQA聯(lián)動(dòng)的配 ynqaresults[collection][test-instanceadmin-nametest-name]命令查看 ,必須使用disynqaresults命令查看測(cè) IPv4靜態(tài)路EFM聯(lián)背景信息前置任務(wù)操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令iproute-staticip-addressmask|mask-lengthnexthop-address|interface-typeinterface-number[nexthop-addresspreferencepreference]trackefm-stateinterface-typeinterface-number[descriptiontext],配置IPv4靜態(tài)路由與EFM聯(lián)動(dòng)。----結(jié)束檢查配置結(jié)果
執(zhí)行disyefmsession{all|interfaceinterface-typeinterface-number}命令查看指定接口的EFMOAM會(huì)話信息。 執(zhí)行disycurrent-configuration|includeefm命令查看IPv4靜態(tài)路由與EFM聯(lián)動(dòng)IPv6靜態(tài)前置任務(wù)
配置流程
背景信息
操作步驟
步驟1執(zhí)行命令system-view步驟2配置IPv6 {interface-typeinterface-number[nexthop-ipv6-address]|nexthop-ipv6-address[preferencepreference|tagtag]*[bfdenable|track{bfd-sessioncfg-name|admin-nametest-name}][descriptiontext 在實(shí)例中配置IPv6靜態(tài)路由:ipv6route-static dest-ipv6-addressprefix-length{[interface-typeinterface-number]nexthop-ipv6-address|nexthop-ipv6-address[public]| -destination-namenexthop-ipv6-address}[preferencepreference|tagtag]*[descriptiontext]說明 ----結(jié)束(可選)配置IPv6靜態(tài)路由的缺省優(yōu)先級(jí)背景信息操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令ipv6route-staticdefault-preferencepreference,配置IPv6靜態(tài)路由的缺省優(yōu)先----結(jié)束檢查配置結(jié)果操作步驟 ----結(jié)束IPv6靜態(tài)路由與靜態(tài)BFD聯(lián)應(yīng)用環(huán)境前置任務(wù)
建立BFD會(huì)話。詳細(xì)配置請(qǐng)參見《S1720&S2700&S5700&S6720V200R010C00配置指南-可靠性》BFD配置。操作步驟
步驟1執(zhí)行命令system-view步驟2執(zhí)行命令ipv6route-staticdest-ipv6-addressprefix-length{interface-typeinterface-number[nexthop-ipv6-address]|nexthop-ipv6-address| nexthop-ipv6-address}[preferencepreference|tagtag]*[trackbfd-sessioncfg-name][descriptiontext],為IPv6靜態(tài)路由綁定BFD會(huì)話。說明配置bfdsessionnonexistent-config-checkdisable命令去使能檢查被聯(lián)動(dòng)的BFD會(huì)話是否被刪除的----結(jié)束檢查配置結(jié)果 使用disybfdsession{all|discriminatordiscr-value}[verbose]命令查看BFD會(huì) 使用disycurrent-configuration|includebfd命令查看BFDforIPv6靜態(tài)路由的配配置IPv4靜態(tài)路由示例組網(wǎng)需求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----結(jié)束配置文件 ##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相關(guān)信息如何配置缺省路由如何配置浮動(dòng)靜態(tài)路由配置IPv6靜態(tài)路由示例組網(wǎng)需求
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----結(jié)束配置文件 ##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靜態(tài)路由與靜態(tài)BFD聯(lián)動(dòng)示例組網(wǎng)需求
如圖3-8所示,SwitchA通過SwitchB和NMS跨網(wǎng)段相連。在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之間實(shí)現(xiàn)毫秒級(jí)故配置SwitchA到NMS的靜態(tài)路由并綁定BFDSession,實(shí)現(xiàn)毫秒級(jí)故障感知,提高操作步驟
步驟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配置靜態(tài)路由并綁定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 ----結(jié)束配置文件
##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#相關(guān)信息如何配置缺省路由如何配置浮動(dòng)靜態(tài)路由配置IPv6靜態(tài)路由與靜態(tài)BFD聯(lián)動(dòng)示例組網(wǎng)需求 配置思路操作步驟
步驟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配置靜態(tài)缺省路由并綁定BFD[SwitchA][SwitchA]ipv6route-static0::00fc00::2trackbfd-session步驟4[SwitchA]ybfdsessionLocal -TotalUP/DOWNSessionNumber:#在SwitchA和SwitchB上執(zhí)行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::: : : : :----結(jié)束配置文件 ##interfaceGigabitEthernet0/0/1undoportswitchipv6ipv6addressFC00::1/64bfdaabindpeer-ipv6discriminatordiscriminatorlocal#ipv6route-static::0FC00::2trackbfd-sessionaa ##interfaceGigabitEthernet0/0/1undoportswitchipv6ipv6address#bfdbbbindpeer-ipv6FC00::1discriminatorlocal20#組網(wǎng)需求
如圖3-10所示為某公司網(wǎng)絡(luò),接入層設(shè)備SwitchD和SwtichE通過靜態(tài)路由與匯 說明IPIPNetwoSwitchSwitchSwitch.....Switch.....Switch.....Client Client1 Client9 Client10設(shè)備名稱接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配置完成后,在系統(tǒng)視圖下,在匯聚層交換機(jī)SwitchB上執(zhí)行disycurrent-configuration|includenqa命令,可以看到靜態(tài)路由已經(jīng)綁定NQA測(cè)試?yán)?。?zhí)行disynqaresults命令,可以看到NQA測(cè)試?yán)呀?jīng)建立。[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”,這說明鏈路發(fā)生了故[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 因?yàn)閣chQANAwchwcASwh4whwch192168.7.02的路由,19.168.7.0412.168.4.2cos值為0wchwch。----結(jié)束配置文件 ##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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024版土地使用權(quán)轉(zhuǎn)讓合同(商業(yè)用地)2篇
- 2025年度餐飲企業(yè)品牌形象設(shè)計(jì)與宣傳推廣合同6篇
- 2024租賃期間廠房轉(zhuǎn)租管理的委托出租合同
- 2024年皮革原料購銷合同范本
- 2025年度旅游度假精美合同協(xié)議范本(休閑度假版)3篇
- 2024年能源結(jié)構(gòu)調(diào)整-充電樁施工建設(shè)及管理協(xié)議3篇
- 2024年蘋果手機(jī)消費(fèi)者維權(quán)服務(wù)合同范本3篇
- 2024年項(xiàng)目評(píng)估合作協(xié)議
- 2024年度倒插門女婿離婚后財(cái)產(chǎn)保全與執(zhí)行協(xié)議3篇
- 2025年度網(wǎng)絡(luò)安全防護(hù)解決方案調(diào)研委托合同集錦3篇
- (完整版)鋼筋加工棚驗(yàn)算
- 安徽省合肥市廬陽區(qū)2023-2024學(xué)年三年級(jí)上學(xué)期期末數(shù)學(xué)試卷
- 概念方案模板
- 西南交大畢業(yè)設(shè)計(jì)-地鐵車站主體結(jié)構(gòu)設(shè)計(jì)
- 2024年山東傳媒職業(yè)學(xué)院高職單招(英語/數(shù)學(xué)/語文)筆試歷年參考題庫含答案解析
- 江蘇省南通市崇川區(qū)2023-2024學(xué)年三年級(jí)上學(xué)期期末語文試卷
- 華電行測(cè)題庫及答案2024
- crtd植入術(shù)護(hù)理查房
- 掃雪鏟冰安全教育培訓(xùn)
- 人教版三年級(jí)下冊(cè)必讀書目《中國古代寓言故事》
- 涉密內(nèi)網(wǎng)分級(jí)保護(hù)設(shè)計(jì)方案
評(píng)論
0/150
提交評(píng)論