Lab 7: Static Route


! Static Route
             12.1.1.0/24

 ----------  .1       f0/1 ----------
| Router 1 |───────────── | Router 2 |
 ----------   f0/0     .2  ----------
 f0/1 │  .254              .254 │ f0/0
      │                         │
      │    1.1.1.0/24           │   2.2.2.0/24
   .1 │                      .2 │
     __  _                     __  _
    [__]|=|                   [__]|=|
    /++/|_|                   /++/|_|
     PC A                      PC B


R1(config)#ip route 2.2.2.0 255.255.255.0 12.1.1.2 (ip next hop)
					  f0/0 (outbound interface)

R2(config)#ip route 1.1.1.0 255.255.255.0 12.1.1.1
				          f0/1
! Interface loopback

R1(config)#interface lo1
R1(config-if)#ip add 11.1.1.1 255.255.255.0

! Ping with Source
R1#ping 12.1.1.2 source 1.1.1.1

 ! AD (Administrative Distance)

┌──────────────┬────┐
│ Connected    │ 0  │
│ Static Route │ 1  │
│ RIP          │ 120│
│ OSPF         │ 110│
│ EIGRP        │ 90 │
│              │    │

! Load balancing


              12.1.1.0/24
          .1               .2
 ---------- f0/1      f0/0 ---------    │
| Router 1 |─────────────| Router 2 |───│ lo1: 2.2.2.2/24
 ---------- ───────────── ----------    │
         .1 f0/0      f0/1 .2

              21.1.1.0/24


ip route 2.2.2.0 255.255.255.0 12.1.1.2
ip route 2.2.2.0 255.255.255.0 21.1.1.2

! Primary and Secondary


              12.1.1.0/24
          .1               .2
 ---------- f0/1      f0/0 ---------    │
| Router 1 |─────────────| Router 2 |───│ lo1: 2.2.2.2/24
 ---------- ───────────── ----------    │
         .1 f0/0      f0/1 .2

              21.1.1.0/24

ip route 2.2.2.0 255.255.255.0 12.1.1.2 2
ip route 2.2.2.0 255.255.255.0 21.1.1.2 3


! Default Route
R1#ip route 0.0.0.0 0.0.0.0 12.1.1.2