This article provides information on how to configure the TED protocol to prefer one IGP over the other, when multiple IGPs are configured for traffic engineering.
TED protocol preference can be influenced to prefer one IGP over the other via the following command :
1 | set protocols traffic-engineering credibility-protocol-preference |
Topology used:
1 2 3 4 5 | lo0 192.168.1.1 lo0 192.168.1.2 +---------+ +---------+ | +----------------------+ | | r1 |ge-0/2/0 ge-0/2/1| r2 | +---------+10.1.2.1 10.1.2.2+---------+ |
- For illustration purposes, the r1 and r2 logical systems are used.
- Traffic engineering is enabled on both the ISIS and OSPF routing protocols.
- By default, ISIS is preferred as the TED protocol
- When a particular links information is populated in TED by both OSPF and ISIS, TED will prefer ISIS over OSPF, as by default, the credibility of ISIS is higher than that of OSPF.
- This selection occurs before the link`s traffic-engineering metric is evaluated or compared.
- Versions 9.6 and 10.0 or later work as described above. For versions before 9.6 / 10.0, TED credibility is not enforced.
- The default credibility/protocol preference can be changed to prefer one protocol over the other, by using the set protocols <protocol> traffic-engineering credibility-protocol-preference hidden command.
Configuration – Logical system r1:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | lab@black# show logical-systems r1 Jun 25 16:32:09 interfaces { ge-0/2/0 { unit 0 { family inet { address 10.1.2.1/24; } family iso; } } lo0 { unit 1 { family inet { address 192.168.1.1/32; } family iso { address 49.0190.0192.0168.0101.00; } } } } protocols { isis { interface ge-0/2/0.0; interface lo0.1; interface all { level 2 disable; } } ospf { traffic-engineering; area 0.0.0.0 { interface all; } } } routing-options { router-id 192.168.1.1; } Logical system r2 : [edit] lab@black# show logical-systems r2 Jun 25 16:32:13 interfaces { ge-0/2/1 { unit 0 { family inet { address 10.1.2.2/24; } family iso; } } lo0 { unit 2 { family inet { address 192.168.1.2/32; } family iso { address 49.0190.0192.0168.0102.00; } } } } protocols { isis { interface ge-0/2/1.0; interface lo0.2; interface all { level 2 disable; } } ospf { traffic-engineering; area 0.0.0.0 { interface all; } } } routing-options { router-id 192.168.1.2; } |
Outputs:
- By default, ISIS is preferred in TED.
- The show ted protocol command can be used to view the TED preference:123456789101112131415[edit]lab@black# run show ted protocol logical-system r1Jun 25 16:32:42Protocol name Credibility Self nodeIS-IS(2) 2 black-r1.00(192.168.1.1) < ISIS preferred, credibility 2IS-IS(1) 1 black-r1.00(192.168.1.1)OSPF(0) 0 black-r1.00(192.168.1.1)[edit]lab@black# run show ted protocol logical-system r2Jun 25 16:34:36Protocol name Credibility Self nodeIS-IS(2) 2 black-r2.00(192.168.1.2) < ISIS preferred, credibility 2IS-IS(1) 1 black-r2.00(192.168.1.2)OSPF(0) 0 black-r2.00(192.168.1.2)
Configuration change:
r1 is configured to prefer OSPF in TED, whereas r2 is left as is:
1 2 3 | [edit] lab@black# set logical-systems r1 protocols ospf traffic-engineering credibility-protocol-preference |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | [edit] lab@black# show logical-systems r1 protocols isis Jun 25 16:33:57 interface ge-0/2/0.0; interface lo0.1; interface all { level 2 disable; } [edit] lab@black# show logical-systems r1 protocols ospf Jun 25 16:34:01 traffic-engineering credibility-protocol-preference; < Configured area 0.0.0.0 { interface all; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | [edit] lab@black# run show ted protocol logical-system r1 Jun 25 16:34:20 Protocol name Credibility Self node OSPF(0) 502 black-r1.00(192.168.1.1)< OSPF is preferred in TED, credibility 502 IS-IS(2) 2 black-r1.00(192.168.1.1) IS-IS(1) 1 black-r1.00(192.168.1.1) [edit] lab@black# run show ted protocol logical-system r2 Jun 25 16:34:21 Protocol name Credibility Self node IS-IS(2) 2 black-r2.00(192.168.1.2)< ISIS is preferred in TED, as r2`s configuration was not changed IS-IS(1) 1 black-r2.00(192.168.1.2) OSPF(0) 0 black-r2.00(192.168.1.2) |