Routing Flashcards

1
Q

is ECMP enabled by default?

A

NO!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the primary v4 and v6 routing tables?

A

inet.0 – v4 unicast
inet.1 – multicast forward cache
inet.2 – Multicast BGP (MBGP) for RPF checks
inet.3 – for MPLS path info
inet.4 – for Multicast source discovery routes
inet6.0 – v6 unicast
mpls.0 – mpls nexthops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats AD in Junos?

A

Route preference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the preferences for:

BGP, RIP, OSPF Internal, Direct, Static, Local, OSPF External?

A

Direct = 0
Local = 0
Static = 5
OSPF internal = 10
RIP = 100
OSPF AS External = 150
BGP = 170

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Route preference… High or low preferred?

What’s the range?

A

low is best. 4.2 billion is highest (32bit int)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do you see all routes for a given prefix in the RIB?

A

show route <prefix> exact</prefix>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can you change route preference?

A

yes, but local and direct dont actually have any impact if you change em.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Default behaviour - how does ECMP work?

A

if there are two Equal cost routes to the same prefix, one path is picked at random.

This means where lots of prefixes are going across an equal cost link there is load distribution.

You can turn on per-flow ECMP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how do you see route tables?

A

show route.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how do you see forwarding table?

A

show route forwarding-table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what happens if there is no match in the forwarding table?

A

packet hits the default FIB entry.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what are the two types in the FIB?

A

1st = Route type… dest (Destinations reachable), intf (local interfaces), perm (kernel installed things like multicast addresses, broadcast addresses), User (routes installed by a routing protocol or static config)

2nd = next hop type - broadcast, discard (silent), hold (pending resolution), local, multicast, multicast discard, recieve, reject, unicist, and load ballanced unicast.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In FIB, whats difference between DISCARD and REJECT?

A

DISCARD = drop quiet
REJECT = ICMP unreachable is sent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Whats a routing instance?

A

its basically VRF lite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Whats the default routing instance?

A

Master.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you set configure a routing instance type on a custom routing instance?

A

edit routing-instances <instance>
set instance-type</instance>

17
Q

what are the routing instance types?

A

forwarding - for FBF for normal access layer applications

l2vpn - for l2vpn…
no-forwarding - used to split up huge networks
virtual-router - for non-VPN related application like virtualization
vpls - for point to multipoint VPN
vrf - for layer3 VPN

18
Q

How do you create a routing instance?

A

edit routing-instance <name>
set instance-type <type>
set interface <interface>
set interface <interface>
set interface <interface>
set routing-options static route 0.0.0.0/0 next-hop x.x.x.x
set protocols ospf area 0.0.0.0 interface ge0/x/x
set protocols ospf area 0.0.0.0 interface ge0/y/y</interface></interface></interface></type></name>

19
Q

where do you configure interfaces and routing protocols for routing instances?

A

inside the routing instance itself

20
Q

how do you view routing instance tables?

A

show route table <routing>.routingtable</routing>

eg;

show route table vrf1.inet.0

21
Q

how do you see interfaces in a given routing instance?

A

show interfaces terse routing-instance <name></name>

22
Q

where do you configure a static route?

A

from edit routing-options!

23
Q

what’s the equlivent of null0 for Junos?

A

bitbucket

24
Q

whats the deal with static route next hops on junos?

A

static route next hops must by default be a connected interface.

No recursive lookups unless you enable it.

25
Q

how long are static routes in the rib?

A

until they are removed or go inactive (ie, next-hop is unreachable, interface down or w/e)

26
Q

what are default static routes for v4 and v6?

A

edit routing-options rib inet6.0
set static route 0::/0 next-hop 3001::1
edit routing-options
set static route 0.0.0.0/0 next-hop x.x.x.x.x
set static route x.x.x.x/24 next-hop y.y.y.y.y no-readvertise

27
Q

when should no-readvertise be used?

A

management static routes. blocks redistribution.

28
Q

how do you see static routes in the rib?

A

show route protocol static

29
Q

how do you add recursive lookups on static routes?

A

add the resolve keyword on the static route.

If the resolved next-hop drops the route goes down.

30
Q

whats a qualified next hop?

A

its a backup next-hop. You can even set a floating preference.

31
Q

What do you need to do to turn on ipv6?

A

its on platform wide by default, but you have to add the inet6 address family to the interface

this configures a link local

32
Q

how do you configure an ipv6?

A

same as v4, just inet6 not inet…

edit interface <int> unit 0
set family inet6 address <address></int>

33
Q

how do you enable EUI-64?

A

on the interface unit;

set family inet6 address <subnet>/64 eui-64</subnet>

and it’ll hash you an IP from the MAC

34
Q

whats the OSPF for IPv6?

A

RFC5340.

Basically the same; just use ospf3 instead of ospf on the interface to add it to the v6 compatible OSPF process.

35
Q
A