RMU VLabNet
7.4.1-Fundamental
Virtual Laboratory Networking
Exercises
Accompanying BGP Routing Diagram 3.7 (with K4 Mesh and K5 Mesh Autonomous Systems)
vm-abcst0:/home/abcst0# vtysh -c "show ip
route"
Codes: K - kernel route, C -
connected, S - static, R - RIP, O - OSPF,
I - ISIS, B -
K>*
0.0.0.0/0 via x.y.z.97, eth0
O 10.10.10.96/27 [110/10] is directly
connected, eth1,
C>* 10.10.10.96/27 is
directly connected, eth1
O>* 10.10.101.0/29
[110/20] via 10.10.10.101, eth1,
B 10.10.101.0/29 [200/1] via
x.y.z.101, eth0, 02w3d02h
R
10.10.101.0/29 [120/2] via 10.10.10.101, eth1, 03w3d01h
B 10.10.102.0/29 [200/0] via
x.y.z.102, eth0, 00:36:11
O>* 10.10.102.0/29 [110/20] via 10.10.10.102, eth1, 00:36:21
R 10.10.102.0/29 [120/2] via
10.10.10.102, eth1, 00:36:33
C>* 10.10.103.0/29 is
directly connected, eth1
O>* 10.10.104.0/29
[110/20] via 10.10.10.104, eth1,
B 10.10.104.0/29 [200/0] via
x.y.z.104, eth0, 02w3d02h
R 10.10.104.0/29 [120/2] via
10.10.10.104, eth1, 03w3d04h
O>* 10.10.105.0/29 [110/20] via 10.10.10.105, eth1, 00:37:10
B 10.10.105.0/29 [200/0] via
x.y.z.105, eth0, 02w4d00h
R 10.10.105.0/29 [120/2] via
10.10.10.105, eth1, 03w3d01h
O>* 10.10.106.0/29 [110/20] via 10.10.10.106, eth1, 00:37:10
B 10.10.106.0/29 [200/0] via
x.y.z.106, eth0, 02w4d17h
R 10.10.106.0/29 [120/2] via
10.10.10.106, eth1, 03w3d04h
O>* 10.10.107.0/29 [110/20] via 10.10.10.107, eth1, 00:37:10
B 10.10.107.0/29 [200/0] via
x.y.z.107, eth0, 02w3d05h
R 10.10.107.0/29 [120/2] via
10.10.10.107, eth1, 03w3d00h
B 10.10.108.0/29 [200/0] via x.y.z.108, eth0,
00:36:06
O>* 10.10.108.0/29 [110/20] via 10.10.10.108, eth1, 00:37:10
R 10.10.108.0/29 [120/2] via
10.10.10.108, eth1, 03w3d04h
O>* 10.10.109.0/29 [110/20] via 10.10.10.109, eth1, 00:37:10
B 10.10.109.0/29 [200/0] via
x.y.z.109, eth0, 02w4d17h
R 10.10.109.0/29 [120/2] via
10.10.10.109, eth1, 03w3d04h
O>* 10.10.110.0/29 [110/20] via 10.10.10.110, eth1, 00:37:10
B 10.10.110.0/29 [200/0] via x.y.z.110, eth0, 02w3d01h
R 10.10.110.0/29 [120/2] via
10.10.10.110, eth1, 03w3d01h
O 10.10.111.0/29 [110/20] via
10.10.10.111, eth1, 00:37:10
B>* 10.10.111.0/29 [20/0] via x.y.z.111, eth0, 02w3d01h
R 10.10.111.0/29 [120/2] via
10.10.10.111, eth1, 03w3d04h
O 10.10.112.0/29 [110/20] via
10.10.10.112, eth1, 00:37:10
B>* 10.10.112.0/29 [20/0] via x.y.z.112, eth0, 02w3d01h
R 10.10.112.0/29 [120/2] via
10.10.10.112, eth1, 03w3d04h
B>* 10.10.114.0/29 [20/0] via x.y.z.114, eth0, 02w3d01h
C>* 127.0.0.0/8 is
directly connected, lo
O>* 172.12.107.2/32 [110/20]
via 10.10.10.107, eth1,
B 172.12.107.2/32 [200/0] via
x.y.z.107, eth0, 02w3d02h
R 172.12.107.2/32 [120/2] via
10.10.10.107, eth1, 03w3d00h
O>* 172.16.107.2/32 [110/20] via 10.10.10.107, eth1, 00:37:10
B 172.16.107.2/32 [200/0] via
x.y.z.107, eth0, 02w3d02h
R 172.16.107.2/32 [120/2] via
10.10.10.107, eth1, 03w3d00h
O x.y.z.96/27 [110/20] via
10.10.10.101, eth1, 00:36:21
via
10.10.10.105, eth1, 00:36:21
via 10.10.10.106, eth1, 00:36:21
via
10.10.10.107, eth1, 00:36:21
via
10.10.10.108, eth1, 00:36:21
via
10.10.10.109, eth1, 00:36:21
via 10.10.10.110, eth1, 00:36:21
via
10.10.10.112, eth1, 00:36:21
via
10.10.10.102, eth1, 00:36:21
via
10.10.10.104, eth1, 00:36:21
via 10.10.10.111, eth1,
C>* x.y.z.96/27 is
directly connected, eth0
!
ip prefix-list avoid-stub seq
5 deny 10.10.____.0/29
ip prefix-list avoid-stub seq
10 permit any
!
!
neighbor <iR0> prepend 64706 64706 64706
!
See : van Beijnum, Iljitsch, “Building Reliable Networks with the Border
Gateway Protocol,” Chapter 6: “Traffic Engineering,”(2002): http://oreilly.com/catalog/bgp/chapter/ch06.html
See Cisco document(s) on “How BGP Routers Use the Multi-Exit Discriminator for Best Path Selection”: http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094934.shtml. Please note download on this page.
BGP router commands relateted to MED:
always-compare-med Allow comparing MED from different
neighbors
deterministic-med Pick the best-MED path among paths
advertised from
the
neighboring AS
Exercises:
A. (1-2) Refer to the results of vtysh -c "show ip route" above:
Administrative Distances Table for items
3-6:
|
vtysh
code |
Protocol Type |
Protocol |
Admin. Distance |
|
C |
~ |
Directly Connected |
0 |
|
S |
Static |
Interface |
1 |
|
|
Dynamic |
EIGRP |
5 |
|
B |
Dynamic |
eBGP |
20 |
|
|
Dynamic |
IGRP |
100 |
|
O |
Dynamic |
OSPF |
110 |
|
I |
Dynamic |
IS-IS |
115 |
|
R |
Dynamic |
RIP |
120 |
|
|
Dynamic |
|
140 |
|
B |
Dynamic |
iBGP |
200 |
|
|
|
Unknown |
255 |
B. (3-6) Regarding the Administrative Distances table above:

Next node paths are expressed in terms of ASs traversed. i means “internal”
Example: 64709 i (meaning path through AS 64709, then internal)
Example of
This example corresponds to BGP Routing Diagram 3.7 using bgpd router command show ip bgp ipv4 unicast (same configuration as shown by vtysh example above.)
bgpd# show ip bgp ipv4 unicast
Status codes: s suppressed,
d damped, h history, * valid, > best, i -
internal,
r
RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e -
Network Next Hop Metric LocPrf
Weight Path
*
i10.10.10.96/27 x.y.z.101 1
100 0 ?
*> 0.0.0.0 1
32768 ?
*>i10.10.101.0/29 x.y.z.101 1
100 0 i
*>i10.10.102.0/29 x.y.z.102 0
100 0 i
*>
10.10.103.0/29 0.0.0.0 1 32768
?
*>i10.10.104.0/29 x.y.z.104 0
100 0 i
*
i10.10.105.0/29 x.y.z.105 100 0 64704 i
* x.y.z.105 0 64705 64704 i
*>i x.y.z.105 100 0 64704 i
*
i10.10.106.0/29 x.y.z.106 100 0 64704 i
* x.y.z.106 0 64705 64704 i
*>i x.y.z.106 100 0 64704 i
*
i10.10.107.0/29 x.y.z.107 100 0 64704 i
* x.y.z.107 0 64705 64704 i
*>i x.y.z.107 100 0 64704 i
*>i10.10.108.0/29 x.y.z.108 100 0 64704 i
* x.y.z.108 0 64705 64704 i
* 10.10.109.0/29 x.y.z.109
0 64705
64704 i
*>i x.y.z.109 100 0 64704 i
*>i10.10.110.0/29 x.y.z.110 100 0 64705 i
*>
10.10.111.0/29 x.y.z.111 0 64705 i
*>
10.10.112.0/29 x.y.z.112 0 64705 i
*
i x.y.z.112 100 0 64705 i
*>
10.10.114.0/29 x.y.z.114 0 64705 i
*
i172.12.107.2/32 x.y.z.107 100 0 64704 ?
* x.y.z.107 0 64705 64704 ?
*>i x.y.z.107 100 0 64704 ?
*
i172.16.107.2/32 x.y.z.107 100 0 64704 ?
* x.y.z.107 0 64705 64704 ?
*>i x.y.z.107 100 0 64704 ?
*
ix.y.z.96/27 x.y.z.101 1 100
0 ?
*> 0.0.0.0 1 32768 ?
Total number of prefixes 17
Terminology:
Figure 3.8 (K4)
Figure 3.8b (K5)
Tools:
Resources (vtysh, Administrative Distance, metric):
m, n = student domain number {nΣ|
((n ≥ 101) Ù (n ≤ 114))}
x.y.z.
= first three octets of assigned routable network addresses for
Valerie J. H. Powell, RMU C&IS; Randall S. Johnson, RMU IT Technical Services
© 2009 by
Update: 2011-11-24