{"id":368,"date":"2018-10-24T01:09:54","date_gmt":"2018-10-24T01:09:54","guid":{"rendered":"http:\/\/feralpacket.org\/?p=368"},"modified":"2018-11-06T21:52:22","modified_gmt":"2018-11-06T21:52:22","slug":"protocol-priorities","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=368","title":{"rendered":"Protocol Priorities"},"content":{"rendered":"<p><strong>Protocol Priorities<\/strong><\/p>\n<p><strong>Generally, but not always:<\/strong><\/p>\n<blockquote><p>\n &#8211; Layer 2<\/p>\n<blockquote><p>\n     -> Lower is better<br \/>\n     -> PAgP port priority, higher is better<\/p><\/blockquote>\n<p> &#8211; IGPs and layer 3<\/p>\n<blockquote><p>\n     -> Higher is better<br \/>\n     -> OSPF has an exception<\/p><\/blockquote>\n<p> &#8211; BGP<\/p>\n<blockquote><p>\n     -> There is a high \/ low cutoff<\/p><\/blockquote>\n<p> &#8211; Multicast<\/p>\n<blockquote><p>\n     -> If the protocol has &#8220;Router&#8221; in the name, then higher is better<br \/>\n          -> Think &#8220;Router&#8221; -> &#8220;IGP&#8221;<br \/>\n     -> Otherwise, lower is better<\/p><\/blockquote>\n<\/blockquote>\n<p><strong>Spanning-tree Protocol (STP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Root Bridge<\/p>\n<blockquote><p>\n     -> Lowest bridge ID<\/p>\n<blockquote><p>\n         -> Switch priority and MAC address<\/p><\/blockquote>\n<p>     -> Lowest priority selected<br \/>\n         -> Default is 32768<br \/>\n         -> Range (increments of 4096)  0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440<\/p>\n<blockquote><p>\n         -> SW1(config)#<em><strong>spanning-tree vlan 1-4094 root primary<\/strong><\/em><br \/>\n         -> SW1(config)#<em><strong>spanning-tree vlan 1-4094 root secondary<\/strong><\/em><br \/>\n         -> SW1(config)#<em><strong>spanning-tree vlan 1-4094 priority 4096<\/strong><\/em><br \/>\n         -> SW1(config)#<em><strong>spanning-tree mst 1 root primary<\/strong><\/em><br \/>\n         -> SW1(config)#<em><strong>spanning-tree mst 1 root secondary<\/strong><\/em><br \/>\n         -> SW1(config)#<em><strong>spanning-tree mst 1 priority 4096<\/strong><\/em><\/p><\/blockquote>\n<p>     -> Lowest base MAC address<\/p><\/blockquote>\n<p> &#8211; Root Port<\/p>\n<blockquote><p>\n     -> Lowest root bridge ID<br \/>\n     -> Lowest cost path to the root bridge<br \/>\n     -> Default<\/p>\n<blockquote><p>\n         -> 1000 Mb\/s: 4<br \/>\n         -> 100 Mb\/s: 19<br \/>\n         -> 10 Mb\/s: 100<\/p><\/blockquote>\n<p>     -> Range 1 to 200000000<\/p>\n<blockquote><p>\n         -> SW1(config-if)#<em><strong>spanning-tree cost 3<\/strong><\/em><br \/>\n         -> SW1(config-if)#<em><strong>spanning-tree vlan 1-4094 cost 3<\/strong><\/em><br \/>\n         -> SW1(config-if)#<em><strong>spanning-tree mst 1 cost 3<\/strong><\/em><\/p><\/blockquote>\n<p>     -> Lowest designated bridge ID<br \/>\n     -> Lowest designated path cost<br \/>\n     -> Lowest received physical port number or port-id<br \/>\n     -> Default is 128<br \/>\n     -> Range (increments of 16) 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, and 240.<br \/>\n     -> Which is in the format of &#8220;<port-priority>.<port number>\u201d<\/p>\n<blockquote><p>\n          -> SW1(config-if)#<em><strong>spanning-tree port-priority 112<\/strong><\/em><br \/>\n          -> SW1(config-if)#<em><strong>spanning-tree vlan 1-4094 port-priority 112<\/strong><\/em><br \/>\n          -> SW1(config-if)#<em><strong>spanning-tree mst 1 port-priority 112<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; Designated Port<\/p>\n<blockquote><p>\n     -> Assigned to the port of the switch on the segment with the:<\/p>\n<blockquote><p>\n         -> Lowest cost path to the root bridge<br \/>\n         -> Lowest neighbor bridge ID<br \/>\n         -> Lowest received port-priority<\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n<p><strong>Link Aggregation Control Protocol (LACP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Master \/ Slave System Priority<\/p>\n<blockquote><p>\n     -> Lowest system priority selected<br \/>\n     -> Default is 32768<br \/>\n     -> Range is 0 &#8211; 65535<\/p>\n<blockquote><p>\n         -> SW1(config)#<em><strong>lacp system-priority 32767<\/strong><\/em><\/p><\/blockquote>\n<p>     -> Lowest MAC address<br \/>\n     -> Lowest Port-ID<\/p><\/blockquote>\n<p> &#8211; Port Priority<\/p>\n<blockquote><p>\n     -> Lowest priority selected<br \/>\n     -> Default is 32768<br \/>\n     -> Range is 0 &#8211; 65535<\/p>\n<blockquote><p>\n         -> SW1(config-if)#<em><strong>lacp port-priority 32767<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n<p><strong>Port Aggregation Protocol (PAgP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Port Priority<\/p>\n<blockquote><p>\n     -> Highest priority selected<br \/>\n     -> Default is 128<br \/>\n     -> Range 0 to 255<\/p>\n<blockquote><p>\n         -> SW1(config-if)#<em><strong>pagp port-priority 129<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n<p><strong>Hot Standby Router Protocol (HSRP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Highest priority selected<br \/>\n &#8211; Default is 100<br \/>\n &#8211; Range is 0 to 255<\/p>\n<blockquote><p>\n    -> SW1(config-if)#<em><strong>standby 1 priority 101<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p><strong>Virtual Router Redundancy Protocol (VRRP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Highest priority selected<br \/>\n &#8211; Default is 100<br \/>\n &#8211; Range is 1 to 254<\/p>\n<blockquote><p>\n    -> SW1(config-if)#<em><strong>vrrp 1 priority 101<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p><strong>Gateway Load Balancing Protocol (GLBP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Highest priority selected<br \/>\n &#8211; Default is 100<br \/>\n &#8211; Range is 1 to 255<\/p>\n<blockquote><p>\n    -> SW1(config-if)#<em><strong>glbp 1 priority 101<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p><strong>Intermediate System to Intermediate System (IS-IS):<\/strong><\/p>\n<blockquote><p>\n &#8211; Designated Intermediate System (DIS)<\/p>\n<blockquote><p>     -> Highest priority selected<br \/>\n     -> Default is 64<br \/>\n     -> Range 0 &#8211; 127<\/p>\n<blockquote><p>\n         -> R1(config-if)#<em><strong>isis priority 65<\/strong><\/em><br \/>\n         -> R1(config-if)#<em><strong>isis priority 65 level-1<\/strong><\/em><br \/>\n         -> R1(config-if)#<em><strong>isis priority 65 level-2<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n<p><strong>Open Shortest Path First (OSPF):<\/strong><\/p>\n<blockquote><p>\n &#8211; Designated Router (DR) \/ Backup Designated Router (BDR) Election<\/p>\n<blockquote><p>\n     -> Highest priority selected<br \/>\n     -> Default is 1<br \/>\n     -> Range 0 &#8211; 255<\/p>\n<blockquote><p>\n         -> R1(config-if)#<em><strong>ip ospf priority 2<\/strong><\/em><br \/>\n         -> R1(config-if)#<em><strong>ipv6 ospf neighbor 12::2 priority 2<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; EXSTART Master \/ Slave Election<\/p>\n<blockquote><p>\n     -> Higher router-id selected<br \/>\n         -> R1(config-router)#<em><strong>router-id 0.0.0.2<\/strong><\/em><\/p><\/blockquote>\n<p> &#8211; Forwarding Address<\/p>\n<blockquote><p>\n     -> Lowest IP address<br \/>\n     -> When dealing with LSA Type 4 and there are multiple paths<\/p>\n<blockquote><p>\n          -> Broadcast network<\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n<p><strong>Border Gateway Protocol (BGP):<\/strong><\/p>\n<blockquote><p>\n &#8211; Weight<\/p>\n<blockquote><p>\n     -> Higher value selected<br \/>\n     -> Default is 0 for received routes<br \/>\n     -> Default is 32768 for locally generated routes <\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>route-map WEIGHT permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<em><strong>set weight 1<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 route-map WEIGHT in<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 default-originate route-map WEIGHT in<\/strong><\/em><br \/>\n         -> R1(config)#<em><strong>route-map WEIGHT_LOCAL permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<em><strong>set weight 32769<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>network 1.1.1.0 mask 255.255.255.0 route-map WEIGHT_LOCAL<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; Local Preference<\/p>\n<blockquote><p>\n     -> Higher value selected<br \/>\n     -> Default is 100<br \/>\n     -> Range 0 &#8211; 4294967295<\/p>\n<blockquote><p>\n         -> R1(config-router)#<em><strong>bgp default local-preference 101<\/strong><\/em><br \/>\n         -> R1(config)#<em><strong>route-map LP permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<em><strong>set local-preference 101<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 route-map LP in<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 default-originate route-map LP in<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute eigrp 1 route-map LP<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute ospf 1 route-map LP match internal external 1 external 2<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>network 1.1.1.0 mask 255.255.255.0 route-map LP<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>aggregate-address 1.1.2.0 255.255.255.252 attribute-map LP<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p>                    <strong>* * * * High \/ Low (or shortest) Cutoff * * * *<\/strong><\/p>\n<p> &#8211; AS-PATH<\/p>\n<blockquote><p>\n     -> Lowest number of organizations traversed is better<br \/>\n     -> Shortest<\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>route-map PREPEND permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<em>s<strong>et as-path prepend 100 100<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 route-map PREPEND out<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; ORIGIN<\/p>\n<blockquote><p>\n     -> Lowest type<\/p><\/blockquote>\n<p> &#8211; Multi-Exit Discriminator (MED)<\/p>\n<blockquote><p>\n     -> Lowest value selected<br \/>\n     -> Default is 0 for received routes<br \/>\n     -> Default is IGP metric for locally generated routes (network or redistribute commands)<br \/>\n     -> Range 0 to 65535<\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>route-map MED permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<em><strong>set metric 1<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 route-map MED out<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 default-originate route-map MED out<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute eigrp 1 metric 100<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute ospf 1 metric 100 match internal external 1 external 2<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute eigrp 1 route-map MED<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute ospf 1 route-map MED match internal external 1 external 2<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>network 1.1.1.0 mask 255.255.255.0 route-map MED<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>aggregate-address 1.1.2.0 255.255.255.252 attribute-map MED<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; IGP Metric<\/p>\n<blockquote><p>\n     -> Lowest<\/p><\/blockquote>\n<p> &#8211; Extended Community Cost<\/p>\n<blockquote><p>\n     -> Lowest extended cost community is selected<br \/>\n     -> IGP point of insertion (default)<br \/>\n     -> Default is 2147483647<br \/>\n     -> Range 0 and 4294967295<\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>route-map EXTCOMMUMITYCOST permit 10<<\/strong>\/em><br \/>\n         -> R1(config-route-map)#<em><strong>set extcommunity cost 1 1<\/strong><\/em><br \/>\n         -> R1(config)#<em><strong>route-map EXTCOMMUMITYCOST permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<em><strong>set extcommunity cost igp 1 1<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 route-map EXTCOMMUMITYCOST out<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 default-originate route-map EXTCOMMUMITYCOST out<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute eigrp 1 route-map EXTCOMMUMITYCOST<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute ospf 1 route-map EXTCOMMUMITYCOST match internal external 1 external 2<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>network 1.1.1.0 mask 255.255.255.0 route-map EXTCOMMUMITYCOST<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>aggregate-address 1.1.2.0 255.255.255.252 attribute-map EXTCOMMUMITYCOST<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; Multipath External Paths<\/p>\n<blockquote><p>\n     -> Path that was received first<\/p><\/blockquote>\n<p> &#8211; Cluster Length<\/p>\n<blockquote><p>\n     -> Shortest<\/p><\/blockquote>\n<p> &#8211; Router-id<\/p>\n<blockquote><p>\n     -> Lowest<\/p><\/blockquote>\n<p> &#8211; Neighbor Address<\/p>\n<blockquote><p>\n     -> Lowest<\/p><\/blockquote>\n<p> &#8211; Extended Community Cost, pre-best path<\/p>\n<blockquote><p>\n     -> Lowest extended community cost is selected<br \/>\n     -> Pre-best path point on insertion<br \/>\n     -> Default is 2147483647<br \/>\n     -> Range 0 and 4294967295<\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>route-map EXTCOMMCOST_PRE permit 10<\/strong><\/em><br \/>\n         -> R1(config-route-map)#<strong>set extcommunity cost pre-bestpath 1 1<\/strong><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 route-map EXTCOMMCOST_PRE out<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>neighbor 1.1.1.1 default-originate route-map EXTCOMMCOST_PRE out<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute eigrp 1 route-map EXTCOMMCOST_PRE<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>redistribute ospf 1 route-map EXTCOMMCOST_PRE match internal external 1 external 2<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>network 1.1.1.0 mask 255.255.255.0 route-map EXTCOMMCOST_PRE<\/strong><\/em><br \/>\n         -> R1(config-router)#<em><strong>aggregate-address 1.1.2.0 255.255.255.252 attribute-map EXTCOMMCOST_PRE<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n<p><strong>Multicast:<\/strong><\/p>\n<blockquote><p>\n &#8211; Multiple Rendezvous Point (RP) candidate<\/p>\n<blockquote><p>\n     -> Lowest priority selected<br \/>\n     -> Default 0<br \/>\n     -> Range 0 to 255<\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>ip pim rp-candidate fa0\/0 priority 1<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; Multiple Bootstrap Routers (BSR)<\/p>\n<blockquote><p>\n     -> Highest priority selected<br \/>\n     -> Default 0<br \/>\n     -> Range 0 to 255<\/p>\n<blockquote><p>\n         -> R1(config)#<em><strong>ip pim bsr-candidate fa0\/0 0 1<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; Designated Router (DR)<\/p>\n<blockquote><p>\n     -> Highest priority selected<br \/>\n     -> Default, command is disabled (no priority set)<br \/>\n     -> Range 0 to 4294967294<\/p>\n<blockquote><p>\n         -> SW1(config-if)#<em><strong>ip pim dr-priority 1<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; IGMP Querier Election<\/p>\n<blockquote><p>\n     -> Lowest IP address selected<\/p><\/blockquote>\n<\/blockquote>\n<p><strong>MPLS-TE:<\/strong><\/p>\n<blockquote><p>\n &#8211; Setup Priority<\/p>\n<blockquote><p>\n     -> Lowest priority selected<br \/>\n     -> Default is 7<br \/>\n     -> Range 0 to 7<\/p>\n<blockquote><p>\n         -> R1(config-if)#<em><strong>tunnel mpls traffic-eng priority 6<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<p> &#8211; Holding Priority<\/p>\n<blockquote \n<p>      -> Lowest priority selected<br \/>\n     -> Default is 7<br \/>\n     -> Range 0 to 7<\/p>\n<blockquote><p>\n         -> R1(config-if)#<em><strong>tunnel mpls traffic-eng priority 6 6<\/strong><\/em><\/p><\/blockquote>\n<\/blockquote>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Protocol Priorities Generally, but not always: &#8211; Layer 2 -> Lower is better -> PAgP port priority, higher is better &#8211; IGPs and layer 3 -> Higher is better -> OSPF has an exception &#8211; BGP -> There is a high \/ low cutoff &#8211; Multicast -> If the protocol has &#8220;Router&#8221; in the name, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-ccie"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=368"}],"version-history":[{"count":24,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/368\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}