跟踪和NQA联动与静态路由的优先级是相同的
核心提示:跟踪和NQA联动与静态路由的优先级是一样的,很长时间没有写博客。接下来,让我们对轨道和NQA联动谈,与静态路由的优先级是一样的,不知道这是否是正确的,请指正。请看下面的图片:描述:西南铝是机房1…跟踪和NQA联动与静态路由的优先级是相同的
我好久没有写博客了。我们之间的联系和跟踪和NQA。VS的静态路由是相同的优先级。我不知道这是不是对的。请指正,请看下面的图片。
说明:西南铝1的机房,主观幸福感是2个电脑室,SWC是一个银行,一个是卡车直接连接到B,其他的是Access,C电信线路,C到B是联通专线,和卡车互为备份线路:插图。是千兆以太网端口,与实际配置以太网
SWA的配置:
{ } interfaceethernet0西南铝 / 4 / 0
{ swa-ethernet0 / 4 / 0 portlink typetrunk }
{SWA-Ethernet0/4/0}porttrunkpermitvlanall
{ }中的景象
{ } interfacevlan-interface2 SWA
{ } ipaddress10.1.1.124 swa-vlan-interface2
{ swa-ethernet0 / 4 / 1 portlink typeaccess }
{ swa-vlan4 } porte0 / 4 / 1
{ } ipaddress30.1.1.124 swa-vlan-interface4
{ swa-ethernet0 / 4 / 2 portlink typeaccess }
{ swa-vlan5 } porte0 / 4 / 2
{ } ipaddress50.1.1.124 swa-vlan-interface5
主观幸福感在相同的配置类似于SWC。
pc1:50.1.1.2255.255.255.050.1.1.1
pc2:60.1.1.2255.255.255.060.1.1.1
首先,让我们看看相同的静态路由优先级。
pc1-swa-swc-pc2线
配置在SWA,目的地址:60.1.1.2 / 24,下一跳:30.1.1.2 / 24,优先偏好默认60
{ } iproute-static60.1.1.22430.1.1.2 SWA
配置在SWC,目的地址:50.1.1.2 / 24,下一跳:30.1.1.1 / 24,优先偏好默认60
{ } iproute-static50.1.1.22430.1.1.1 SWC
{ } ping50.1.1.2ping50.1.1.2:56databytes SWC,pressctrl_ctobreakreplyfrom50.1.1.2:字节= 56sequence = 1ttl = 63time = 44msreplyfrom50.1.1.2:字节= 56sequence = 2ttl = 63time = 24msreplyfrom50.1.1.2:字节= = = = 25ms 63time 56sequence 3ttl。
{ } displayiprouting西南铝tableroutingtables:publicdestinations:9routes:9
目的地/ maskprotoprecostnexthopinterface
10.1.1.0 / / / 24direct0010.1.1.1vlan210.1.1.1 32direct00127.0.0.1inloop030.1.1.0 24direct0030.1.1.1vlan430.1.1.1 / / / 32direct00127.0.0.1inloop050.1.1.0 24direct0050.1.1.1vlan550.1.1.1 32direct00127.0.0.1inloop060.1.1.0 / / / 32direct00127.0.0.1inloop0 8direct00127.0.0.1inloop0127.0.0.1 24static60030.1.1.2vlan4127.0.0.0
{ } displayiprouting SWC tableroutingtables:publicdestinations:9routes:9
目的地/ maskprotoprecostnexthopinterface
20.1.1.0 / / / 24direct0020.1.1.2vlan320.1.1.2 32direct00127.0.0.1inloop030.1.1.0 24direct0030.1.1.2vlan430.1.1.2 / / / 32direct00127.0.0.1inloop050.1.1.0 24static60030.1.1.1vlan460.1.1.0 24direct0060.1.1.1vlan660.1.1.1 / / / 32direct00127.0.0.1inloop0 8direct00127.0.0.1inloop0127.0.0.1 32direct00127.0.0.1inloop0127.0.0.0
pc1-swa-swb-swc-pc2线
配置在SWA,目的地址:60.1.1.2 / 24,下一跳:10.1.1.2 / 24,优先偏好或默认60
{ } iproute-static60.1.1.22410.1.1.2 SWA
{ } disiprouting西南铝tableroutingtables:publicdestinations:9routes:10
目的地/ maskprotoprecostnexthopinterface
10.1.1.0 / / / 24direct0010.1.1.1vlan210.1.1.1 32direct00127.0.0.1inloop030.1.1.0 24direct0030.1.1.1vlan430.1.1.1 / / / 32direct00127.0.0.1inloop050.1.1.0 24direct0050.1.1.1vlan550.1.1.1 32direct00127.0.0.1inloop060.1.1.0 / / / 32direct00127.0.0.1inloop0 8direct00127.0.0.1inloop0127.0.0.1 24static60030.1.1.2vlan4static60010.1.1.2vlan2127.0.0.0
配置在SWC,目的地址:50.1.1.2 / 24,下一跳:20.1.1.1 / 24,优先偏好也默认60
{ } iproute-static50.1.1.22420.1.1.1 SWC
{ } disiprouting SWC tableroutingtables:publicdestinations:9routes:10
目的地/ maskprotoprecostnexthopinterface
20.1.1.0 / / / 24direct0020.1.1.2vlan320.1.1.2 32direct00127.0.0.1inloop030.1.1.0 24direct0030.1.1.2vlan430.1.1.2 / / / 32direct00127.0.0.1inloop050.1.1.0 24static60030.1.1.1vlan4static60020.1.1.1vlan360.1.1.0 24direct0060.1.1.1vlan660.1.1.1 / / / 32direct00127.0.0.1inloop0 8direct00127.0.0.1inloop0127.0.0.1 32direct00127.0.0.1inloop0127.0.0.0
在两条线路上的静态路由的情况下,由于主观幸福感没有静态路由,所以会出现分组丢失。
在主观幸福感中配置静态路由:
swb-pc1线
{幸福} iproute-static50.1.1.22410.1.1.1
swb-pc2线
{幸福} iproute-static60.1.1.22420.1.1.2
{幸福} disiprouting tableroutingtables:publicdestinations:8routes:8
目的地/ maskprotoprecostnexthopinterface
10.1.1.0 / / / 24direct0010.1.1.2vlan210.1.1.2 32direct00127.0.0.1inloop020.1.1.0 24direct0020.1.1.1vlan320.1.1.1 / / / 32direct00127.0.0.1inloop050.1.1.0 24static60010.1.1.1vlan260.1.1.0 24static60020.1.1.2vlan3127.0.0.0 / / 32direct00127.0.0.1inloop0 8direct00127.0.0.1inloop0127.0.0.1
当两线优先级相同,关掉一个西南铝或SWC的接口,和其他线路是通的,因为它是互动的。
{ swa-vlan-interface4 }关闭
50.1.1.2icmp_seq = 497ttl = 61time = 40.000ms50.1.1.2icmp_seq = 498ttl = 61time = 30.000ms50.1.1.2icmp_seq = 499ttl = 61time = 50.000ms50.1.1.2icmp_seq = 500ttl = 61time = 30.000ms50.1.1.2icmp_seq = 501ttl = = 40.000ms 61time
跟踪和NQA之间的联系必须配置的两侧。如果只有一方是唯一的,它只能检测线是否连接到对面。
pc1-swa-swc-pc2线
配置在SWA,目的地址:60.1.1.2 / 24,下一跳:30.1.1.2 / 24,默认的默认值是60,这是与田径项目1。
{ } iproute-static60.1.1.22430.1.1.2track1 SWA
pc1-swa-swb-swc-pc2线
配置在SWA,目的地址:60.1.1.2 / 24,下一跳:10.1.1.2 / 24、优先优惠为70
{ } iproute-static60.1.1.22410.1.1.2preference70 SWA
{ } nqaentryadmindianxin SWA
{ SWA NQA管理点心} typeicmp回声
{ SWA NQA管理点心ICMP } destinationip30.1.1.2
{ SWA NQA管理点心ICMP } frequency100
{ SWA NQA管理点心ICMP } reaction1checked-elementprobe-failthreshold-typeconsecutive5action-typetrigger-only
{ SWA NQA管理点心ICMP }退出
{ } nqascheduleadmindianxinstart timenowlifetimeforever SWA
{ } track1nqaentryadmindianxinreaction1 SWA
{ } distrackalltrackid西南铝:1status:positiveduration:0days0hours0minutes15secondsnotificationdelay:positive0,negative0(秒)referenceobject:nqaentry:admindianxinreaction:1。
以同样的方式,SWC配置一样的景象,可以检测连接其他的线。
例如:关闭一个在深港西部通道口岸,并跟踪可以启动另一个备用线路
{ } { } swc-vlan-interface4关机swc-vlan-interface4 % apr2722:30:49:2202014swcifnet / 3 / link_updown:vlan-interface4linkstatusisdown % apr2722:30:49:2202014swcifnet / 5 / lineproto_updown:lineprotocolontheinterfacevlan-interface4isdown。{ } { } swc-vlan-interface4 swc-vlan-interface4 displayiprouting tableroutingtables:publicdestinations:7routes:7
目的地/ maskprotoprecostnexthopinterface
20.1.1.0 / / / 24direct0020.1.1.2vlan320.1.1.2 32direct00127.0.0.1inloop050.1.1.0 24static70020.1.1.1vlan360.1.1.0 / / / 24direct0060.1.1.1vlan660.1.1.1 32direct00127.0.0.1inloop0127.0.0.0 8direct00127.0.0.1inloop0127.0.0.1 / 32direct00127.0.0.1inloop0