Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Module 4 Protocols
Ross Callon
IS-IS
Yakov Rechter
Static Routes
Manually configured routes added to the routing table Once active, routes remain in the routing table until
static {
defaults { static-options; } route destination-prefix{ next-hop; static-options; }
preference for static routes to the same destination Recursive static routes allow you to configure a route to an IP address that is not connected directly to the router
routing-options { static { defaults { preference 250; } route 192.168.20.0/24 next-hop 10.0.0.1; route 192.168.21.0/24 discard; route 192.168.22.0/24 reject; } }
Aggregate Routes
Route prefixes in the network can be combined into a
single entry in the routing table Aggregate routes become active once one or more contributing routes are active You configure aggregate routes at the routingoptions hierarchy level
[edit] routing-options { aggregate { defaults { aggregate-options; } route destination-prefix { policy policy-name; aggregate-options; }
Martian Addresses
Address prefixes for which the routers ignore all
associated routing information Martians are not installed into the routing table In JUNOS software, the default martian addresses are:
0.0.0.0/8 orlonger 127.0.0.0/8 orlonger 128.0.0.0/16 orlonger 191.255.0.0/16 orlonger 192.0.0.0/24 orlonger 223.255.255.0/24 orlonger 240.0.0.0/4 orlonger
Routing Tables
Juniper Networks M-series and T-series platforms have
information exist
Referred to as protocols in the routing table
Default protocols: Direct Local Static RSVP LDP OSPF IS-IS RIP Aggregate BGP
Protocol Preference
Each protocol has a default preference value Preference is a measure of desirability
Used as a tiebreaker when the same prefix is learned through multiple sources; protocols with a lower preference are preferred
Direct/Local: 0 Static: 5 RSVP: 7 LDP: 9 OSPF internal route: 10 IS-IS Level 1 internal route: 15 IS-IS Level 2 internal route: 18
...
10.0.11.0/24
10.0.11.1/32 192.168.1.0/24
192.168.16.0/21
192.168.20.0/24
*[Direct/0] 1d 08:19:20 > via at-0/1/0.100 *[Local/0] 1d 08:19:20 Local *[BGP/170] 00:06:08, localpref 100 AS path: 1 I > to 10.0.11.2 via at-0/1/0.100 *[Static/5] 00:02:40 Discard [Aggregate/130] 00:36:17 Reject *[Static/5] 00:06:12 Reject
single AS OSPF reliably floods LSAs to distribute link-state information once an adjacency is formed Each router uses these LSAs to create a complete database for the network OSPF uses the SPF algorithm within the database to calculate the best route to every node in the network
Designated Router
DR is elected by two values First tiebreaker is priority (JUNOS default is 128)
IOS default is 1 Priority can be set to 0
Backup designated router is also elected Protects the segment from a DR failure Same election rules apply to the BDR
OSPF Configuration
Place operational interfaces within the OSPF area Each area is a separate configuration hierarchy All addresses on the interface can form adjacencies and are advertised into the network
protocols { ospf { area 0.0.0.0 { interface lo0.0; interface so-1/0/0.0; } area 0.0.0.1 { interface ge-0/1/0.0; } } } router ospf 1 network 10.81.254.40 0.0.0.0 area 0 network 10.81.40.14 0.0.0.1 area 0 network 10.81.40.16 0.0.0.1 area 1
IOS-RTR#sh ip ospf int POS2/1 is up, line protocol is up Internet Address 10.81.40.17/31, Area 1 Process ID 1, Router ID 10.81.254.40, Network Type POINT_TO_POINT, Cost: 1 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:09 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 2 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 10.81.254.20 Suppress hello for 0 neighbor(s)
user@host> show ospf neighbor Address Interface 10.81.40.35 so-1/0/0.0 10.81.40.37 ge-0/1/0.0 IOS-RTR#sh ip ospf neighbor Neighbor ID Pri State 10.81.254.24 0 FULL/ 10.81.254.23 0 FULL/
Dead 35 38
What Is BGP?
BGP Is an inter-domain routing protocol that communicates prefix reachability Is a path vector protocol Views the Internet as a collection of autonomous systems Supports CIDR Exchanges routing information between peers
BGP Fundamentals
Each BGP update contains one path advertisement and
attributes
Many prefixes can share the same path
path and other BGP-specific attributes BGP compares the AS path and other attributes to choose the best path
the protocol
Adjacency-RIB-In contains all the routes received from all peers Adjacency-RIB-Local contains the best path to each received destination Adjacency-RIB-Out contains the routes to advertise to each peer
BGP Configurations
The configuration of BGP is where many differences
appear between JUNOS and IOS Assigning the local Autonomous System number
JUNOS places the AS within routing-options
Allows multiple process to use the same value (VPN)
BGP Configurations
Peer groups JUNOS makes almost exclusive use of them Optional within IOS (but widely used)
AS number of the peer Can be defined for the whole group or just a peer
bgp { group EXTERNAL-PEERS { peer-as 65001; neighbor 10.81.254.1; neighbor 10.81.254.2 { peer-as 65002; } } } router bgp 65000 neighbor 10.81.254.1 remote-as 65001 neighbor 10.81.254.2 remote-as 65002
BGP Configurations
Synchronization JUNOS uses no synch by default
Automatic summarization off by default
bgp { group EXTERNAL-PEERS { peer-as 65001; neighbor 10.81.254.1; neighbor 10.81.254.2 { peer-as 65002; } } }
router bgp 65000 no synchronization neighbor 10.81.254.1 remote-as 65001 neighbor 10.81.254.2 remote-as 65002 no auto-summary
BGP Configurations
type command informs the router figure how to work
bgp { group EXTERNAL-PEERS { type external; peer-as 65001; neighbor 10.81.254.1; neighbor 10.81.254.2 { peer-as 65002; } } group INTERNAL-PEERS { type internal; neighbor 10.81.254.3; } }
router bgp 65000 no synchronization neighbor 10.81.254.1 remote-as 65001 neighbor 10.81.254.2 remote-as 65002 neighbor 10.81.254.3 remote-as 65000 no auto-summary
BGP Configurations
local-address command changes the source
user@host> show bgp summary Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State inet.0 12 12 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn 10.81.254.1 65001 423 430 0 0 3:33:00 10.81.254.2 65002 428 430 0 0 3:32:56 IOS-RTR-1#sh ip bgp summary BGP router identifier 10.81.254.10, local AS number 65000 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent State/PfxRcd 10.81.254.1 4 65001 5 22 10.81.254.2 4 65002 9 22 TblVer 1 1 InQ OutQ Up/Down 0 0 0 00:01:09 0 00:03:02
4 4
Questions