[Contents] [Prev] [Next] [Index] [Report an Error]

Examples: Controlling Route Preference

Assign a preference of 160 to routes learned from the BGP system 192.168.1.1. The routing protocol process prefers these routes over routes learned from other BGP systems, which have the default preference of 170.

[edit]
routing-options {
autonomous-system 23;
}
protocols {
bgp {
group 23 {
type external;
peer-as 56;
neighbor 192.168.1.1 {
preference 160;
}
}
}
}

Assign a preference of 140 to all routes learned by BGP systems. Because the default OSPF preference is 150, BGP routes are preferred over those learned from OSPF.

[edit]
routing-options {
autonomous-system 23;
}
protocols {
bgp {
preference 140;
group 23 {
type external;
peer-as 56;
neighbor 192.168.1.1;
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]