Friday, 13 November 2015

EIGRP offset-list in name mode

Same topology like before in EIGRP-offset-list classic mode , we are increasing the metric to reach
lo0 in R2


R1#
R1#sh ip access-list
Standard IP access list 2
    10 permit 2.2.2.2
R1#
R1#sh run | s router
router eigrp cisco6
router eigrp cisco
 !
 address-family ipv4 unicast autonomous-system 100
  !
  topology base _+++++++++++++++note we have to conig everything in topology base
   redistribute connected metric 10000 1 255 1 1500 route-map CONN
   offset-list 2 in 300 Serial2/0
   offset-list 2 in 300 Serial2/2
  exit-af-topology
  network 192.168.12.0
  network 192.168.21.0
 exit-address-family


This is before we applied the offset-list

R1(config-router-af)#do sh ip eigrp topo
EIGRP-IPv4 VR(cisco) Topology Table for AS(100)/ID(10.10.60.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status

P 192.168.23.0/24, 2 successors, FD is 3045896258
        via 192.168.12.2 (3045896258/1735176258), Serial2/0
        via 192.168.21.1 (3045896258/1735176258), Serial2/2
P 192.168.21.0/24, 1 successors, FD is 1735175958
        via Connected, Serial2/2
P 10.10.110.0/24, 2 successors, FD is 3374344258
        via 192.168.12.2 (3374344258/2063624258), Serial2/0
        via 192.168.21.1 (3374344258/2063624258), Serial2/2
P 192.168.12.0/24, 1 successors, FD is 1735175958
        via Connected, Serial2/0
P 10.10.30.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.140.0/24, 2 successors, FD is 3374344258
        via 192.168.12.2 (3374344258/2063624258), Serial2/0
        via 192.168.21.1 (3374344258/2063624258), Serial2/2
P 10.10.150.0/24, 2 successors, FD is 3374344258
        via 192.168.12.2 (3374344258/2063624258), Serial2/0
        via 192.168.21.1 (3374344258/2063624258), Serial2/2
P 2.2.2.0/24, 2 successors, FD is 2062856258 <+++++++before after  2062855958
        via 192.168.12.2 (2062856258/327762220), Serial2/0
        via 192.168.21.1 (2062856258/327762220), Serial2/2
P 10.10.60.0/24, 1 successors, FD is 66191360, tag is 60
        via Rconnected (66191360/0)
P 192.168.32.0/24, 2 successors, FD is 3901440300
        via 192.168.12.2 (3901440300/2590720300), Serial2/0
        via 192.168.21.1 (3901440300/2590720300), Serial2/2
P 10.10.20.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.40.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.130.0/24, 2 successors, FD is 3374344258
        via 192.168.12.2 (3374344258/2063624258), Serial2/0
        via 192.168.21.1 (3374344258/2063624258), Serial2/2
P 3.3.3.3/32, 2 successors, FD is 3374344258
        via 192.168.12.2 (3374344258/2063624258), Serial2/0
        via 192.168.21.1 (3374344258/2063624258), Serial2/2
P 10.1.1.0/30, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.10.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 1.1.1.1/32, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.50.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.120.0/24, 2 successors, FD is 3374344258
        via 192.168.12.2 (3374344258/2063624258), Serial2/0
        via 192.168.21.1 (3374344258/2063624258), Serial2/2

R1(config-std-nacl)#permit host 2.2.2.2R1(config-std-nacl)#exit
R1(config)#d sh ip eigrp topo
*Nov 13 17:38:54.956: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 192.168.12.2 (Serial2/0) is resync: intf route configuration changed
*Nov 13 17:38:54.956: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 192.168.21.1 (Serial2/2) is resync: intf route configuration changed

R1(config)#do sh ip eigrp topo | b 2.2.2.0
P 2.2.2.0/24, 2 successors, FD is 2062855958 +++++++++++++300 ADDED
        via 192.168.12.2 (2062855958/327761920), Serial2/0
        via 192.168.21.1 (2062855958/327761920), Serial2/2
P 10.10.60.0/24, 1 successors, FD is 66191360, tag is 60
        via Rconnected (66191360/0)
P 192.168.32.0/24, 2 successors, FD is 3901440000
        via 192.168.12.2 (3901440000/2590720000), Serial2/0
        via 192.168.21.1 (3901440000/2590720000), Serial2/2
P 10.10.20.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.40.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.130.0/24, 2 successors, FD is 3374343958
        via 192.168.12.2 (3374343958/2063623958), Serial2/0
        via 192.168.21.1 (3374343958/2063623958), Serial2/2
P 3.3.3.3/32, 2 successors, FD is 3374343958
        via 192.168.12.2 (3374343958/2063623958), Serial2/0
        via 192.168.21.1 (3374343958/2063623958), Serial2/2
P 10.1.1.0/30, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 10.10.10.0/24, 1 successors, FD is 66191360
        via Rconnected (66191360/0)
P 1.1.1.1/32, 1 successors, FD is 66191360

R1(config)#sh run

EIGRP offset-list


This another method to influence the metric in a routing protocol. The offset-list lets you increase the metric when you send a routing update to your neighbor or when you receive it.
You can use this for RIP or EIGRP, it is not supported for OSPF.

In this example wewill show how we can increase the metric







 lo01.1.1.1      lo02.2.2.2
R1 ========R2===========R3 (loopback 3.3.3.3)


R2#sh ip eigrp topo
P 10.10.130.0/24, 1 successors, FD is 2297856
        via 192.168.23.3 (2297856/128256), Serial2/1
        via 192.168.32.3 (5639936/128256), Ethernet0/1
P 3.3.3.3/32, 1 successors, FD is 2297856 ++++++++++++++
        via 192.168.23.3 (2297856/128256), Serial2/1
        via 192.168.32.3 (5639936/128256), Ethernet0/1
P 10.1.1.0/30, 2 successors, FD is 2195456
        via 192.168.12.1 (2195456/281600), Serial2/0
        via 192.168.21.2 (2195456/281600), Serial2/2
P 10.10.10.0/24, 2 successors, FD is 2297856
        via 192.168.12.1 (2297856/128256), Serial2/0
        via 192.168.21.2 (2297856/128256), Serial2/2


We introduce in router R2 a offset-list to reach 3.3.3.3


R2(config)#ip access-list standard 2
R2(config-std-nacl)#permit host 3.3.3.3

R2(config-std-nacl)#
R2(config-std-nacl)#end
R2#

R2(config)#router eigrp 100
R2(config-router)#off
R2(config-router)#offset-list 1 ?
  in   Perform offset on incoming updates
  out  Perform offset on outgoing updates

R2(config-router)#offset-list 1 in 300 se2/1
R2(config-router)#offset-list 1 out 300 se2/1

after
R2(config-router)#do sh ip eigrp topology | b 3.3.3.3
P 3.3.3.3/32, 1 successors, FD is 2298156 _++++++++++++++++++++
        via 192.168.23.3 (2298156/128512), Serial2/1
        via 192.168.32.3 (5639936/128256), Ethernet0/1
P 10.1.1.0/30, 2 successors, FD is 2195456
        via 192.168.12.1 (2195456/281600), Serial2/0
        via 192.168.21.2 (2195456/281600), Serial2/2
P 10.10.10.0/24, 2 successors, FD is 2297856
        via 192.168.12.1 (2297856/128256), Serial2/0
        via 192.168.21.2 (2297856/128256), Serial2/2
P 1.1.1.1/32, 2 successors, FD is 2170112
        via 192.168.12.1 (2170112/256256), Serial2/0
        via 192.168.21.2 (2170112/256256), Serial2/2
P 10.10.50.0/24, 2 successors, FD is 2297856
        via 192.168.12.1 (2297856/128256), Serial2/0
        via 192.168.21.2 (2297856/128256), Serial2/2
P 10.10.120.0/24, 1 successors, FD is 2298156
        via 192.168.23.3 (2298156/128512), Serial2/1
        via 192.168.32.3 (5639936/128256), Ethernet0/1

R2(config-router)#