Professional Documents
Culture Documents
4-1
Copyright 2005 Juniper Networks, Inc.
www.juniper.net
vlan {
unit 100 {
family inet {
address 172.19.253.1/24;
}
}
Logical Layer 3 VLAN
}
interface (RVI)
vlan.20010.10.2.1
ge-0/0/10
RVIs function as
gateway for VLANs
v100 and v200
ge-0/0/13
AS1 (Layer 2)
Host A
v100
Host B
10.10.1.10
v200
10.10.2.10
2008 Juniper Networks, Inc. All rights reserved.
AS2 (Layer 2)
Host C
Host D
v100
10.10.1.20 v200
10.10.2.20
3
vlan {
unit 100 {
family inet
address
}
}
unit 200 {
family inet
address
}
}
}
{
10.10.1.1/24;
{
10.10.2.1/24;
RVIs function as
Layer 3 gateway for
v100 and v200
Routing
Table
Forwardin
g
Table
Route Preference
Ranks routes received from different sources
Primary criterion for selecting the active
route
Ranges from 0 to 4,294,967,295, with lower
value preferred
Route Preference Values
Routing Information
Source
Default Preference
Direct
Local
Static
OSPF internal
10
RIP
100
OSPF AS external
150
170
172.18.25.0/30
172.18.25.1/32
172.29.30.0/24
172.29.30.1/32
224.0.0.5/32
*[Static/5] 00:10:24
Route source and
> to 172.29.30.253 via ge-0/0/10.0
preference
[OSPF/10] 00:03:38, metric 2
> to 172.18.25.2 via ge-0/0/13.0
*[Direct/0] 00:11:05
> via ge-0/0/13.0
*[Local/0] 00:11:05
Local via ge-0/0/13.0
*[Direct/0] 00:11:05
> via ge-0/0/10.0
*[Local/0] 00:11:05
Local via ge-0/0/10.0
*[OSPF/10] 00:06:55, metric 1
MultiRecv
Asterisk (*) indicates
that the route is
selected as active
9
Static Routes
Manually configured routes added to route table
Defined under [edit routing-options] hierarchy
Distribution Switch
Edge Router
ge-0/0/10
.1
192.168.0.0/30
.2
Service
Provider
A default route
2008 Juniper Networks, Inc. All rights reserved.
*[Static/5] 00:01:07
> to 192.168.0.2 via ge-0/0/10.0
S2
ge-0/0/10
.1
0/ 2
ge-0/
.1
lo0: 192.168.24.1
10.222.1.0/24
10.222.2.0/30
ge-0/0/10
.2
ge0/0
/2
.1
lo0: 192.168.36.1
10.222.3.0/24
11
S2
ge-0/0/10
.1
0/ 2
ge-0/
.1
lo0: 192.168.24.1
10.222.2.0/30
ge-0/0/10
.2
ge0/0
/2
.1
lo0: 192.168.36.1
10.222.1.0/24
10.222.3.0/24
12
S2
ge-0/0/10
.1
0/ 2
ge-0/
.1
lo0: 192.168.24.1
10.222.2.0/30
ge-0/0/10
.2
ge0/0
/2
.1
lo0: 192.168.36.1
10.222.1.0/24
10.222.3.0/24
[edit routing-options]
user@s2# show
static {
route 10.222.1.0/24 next-hop 10.222.2.1;
route 192.168.24.1/32 next-hop 10.222.2.1;
}
13
ge-0/0/10
.1
10.222.2.0/30
S2
ge-0/0/10
.2
lo0: 192.168.24.1
10.222.1.0/24
ge0/0
/2
.1
lo0: 192.168.36.1
10.222.3.0/24
*[Static/5] 00:11:33
> to 10.222.2.2 via ge-0/0/10.0
Default static
route is active
on S1
14
RIP
External Routes
BGP
Area 2
Intra-Area Routes
15
OSPF Routers
Area border router:
Any router that belongs to more than one area,
ABRs connect OSPF areas to the OSPF backbone
(Area 0)
Area 2
Area 1
RIP
External Routes
Intra-Area Routes
BGP
Autonomous
system
boundary
routers
16
OSPF Areas
Areas:
Single AS can be divided into smaller groups
called areas
Areas can limit the size of the link-state database
Routers maintain identical databases within the
same area
Interarea Routes
ABRs maintain a
Area 0 distributes
(Summary Routes) routing information between
database for each
configured area
other areas
Backbone
(Area 0)
Interarea
communications
typically traverse Area
the2
Area 1
backbone (Area 0)
RIP
External Routes
BGP
Intra-Area Routes
17
S2
ge-0/0/11
.1
0/ 0
ge-0/
.1
lo0: 192.168.24.1
10.222.1.0/24
10.222.2.0/30
ge-0/0/11
.2
ge0/0
/0
.1
lo0: 192.168.36.1
10.222.3.0/24
18
S2
ge-0/0/11
.1
0/ 0
ge-0/
.1
lo0: 192.168.24.1
10.222.1.0/24
10.222.2.0/30
ge-0/0/11
.2
ge0/0
/0
.1
lo0: 192.168.36.1
10.222.3.0/24
19
Monitoring OSPF (1 of 3)
Use the show ospf neighbor command to
display adjacencies
Use the detail or extensive keyword for added
information
user@s1> show ospf neighbor
Address
Interface
10.222.2.2
ge-0/0/11.0
State
Full
ID
192.168.36.1
Pri
128
Dead
36
20
Monitoring OSPF (2 of 3)
Use the show ospf route command to
display routes learned and advertised into
OSPF
Includes routes for interfaces running OSPF
Path
Type
Intra
Intra
Intra
Intra
Intra
Intra
Route
Type
Router
Network
Network
Network
Network
Network
NH
Metric
Type
IP
1
IP
1
IP
1
IP
2
IP
0
IP
1
NextHop
Interface
ge-0/0/11.0
ge-0/0/0.0
ge-0/0/11.0
ge-0/0/11.0
lo0.0
ge-0/0/11.0
Nexthop
addr/label
10.222.2.2
10.222.2.2
10.222.2.2
21
Monitoring OSPF (3 of 3)
Use the show ospf database command to
display link-state database entries
user@s1> show ospf database
OSPF link state database, Area 0.0.0.0
Type
ID
Adv Rtr
Seq
Router *192.168.24.1
192.168.24.1
0x8000000e
Router
192.168.36.1
192.168.36.1
0x8000000d
Network 10.222.2.2
192.168.36.1
0x8000000a
Age
1270
1271
1271
Opt
0x22
0x22
0x22
Cksum Len
0xedcc 60
0xd0c3 60
0xb0f3 32
22
What Is VRRP?
An election protocol used to designate one
of multiple VRRP routers as master
The master VRRP device assumes forwarding
responsibilities for the LAN
Means of incorporating redundancy in a LAN
Typically used in high-availability Ethernet
networks
Defined in RFC 2338
23
VRRP Terminology
Virtual routerVirtual entity that functions as the
default router on a LAN; consists of a VRID and an
IP address used as a gateway address known as
the VIP address
VRRP routerAny router participating in VRRP,
including the master and all backup routers
Master routerVRRP router performing packet
forwarding and responding to ARP requests
Backup routerVRRP router available to assume
the role of the master router upon failure
24
User Y
(.101/24)
13
/0 /
0
ge /24
.2
.3 /
24
ge
-0
/0
/16
ge-0
/0/5
.10
/2
GW=
.1
.1/24
.
.11
/ 24
/0/5
0
e
g
S2
Goals:
Provide a single gateway address on both S1 and S2 for the
10.10.1.0/24 subnet; this common gateway address should
be bound to a Layer 3 VLAN interface for both S1 and S2
Use VRRP to provide redundancy during failure scenarios;
S1 should function as the master during normal operations
2008 Juniper Networks, Inc. All rights reserved.
25
ge-0/0/13 {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members all;
}
}
}
}
vlan {
unit 100 {
family inet {
address 10.10.1.2/24 {
vrrp-group 100 {
virtual-address 10.10.1.1;
priority 110;
}
}
}
}
Priority
}
determines
master/backup
state
ge-0/0/16 {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members all;
}
}
}
}
vlan {
unit 100 {
family inet {
address 10.10.1.3/24 {
vrrp-group 100 {
virtual-address 10.10.1.1;
priority 90;
}
}
}
}
}
26
Group
100
VR state
master
Timer
Type
A 0.232 lcl
vip
Address
10.10.1.2
10.10.1.1
Group
100
VR state
backup
Timer
Type
D 3.324 lcl
vip
mas
Address
10.10.1.3
10.10.1.1
10.10.1.2
27