Offset-List Command on CISCO Router/Switch

Command

Offset-List

Use

This command allows you to modify the metric of a route on the routing table.

Syntax

Router(config-router)#offset-list <list> <in or out> <offset> <interface>

Options

<list> – 0 All networks
<list> – 1-99,1300-1999 Standard access list
<list> – Name Named access list
<in> Affects inbound updates
<out> Affects outbound updates
<offset> -1-16 Amount to modify metric
<interface> Only affects updates comming through this interface

Example

In this example we will change the metric on the 1.0.0.0 routes to 200000. Currently the metric is 156160

R2(config-router)#do show ip route eigrp
1.0.0.0/32 is subnetted, 3 subnets
D 1.1.1.1 [90/156160] via 10.1.1.1, 00:00:07, FastEthernet0/0
D 1.3.3.3 [90/156160] via 10.1.1.1, 00:00:07, FastEthernet0/0
D 1.2.2.2 [90/156160] via 10.1.1.1, 00:00:07, FastEthernet0/0
192.168.13.0/30 is subnetted, 1 subnets
D 192.168.13.0 [90/2172416] via 10.1.1.1, 00:00:07, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156160] via 10.2.2.3, 00:00:04, FastEthernet1/0
111.0.0.0/32 is subnetted, 1 subnets
D 111.111.111.111 [90/156160] via 10.1.1.1, 00:00:07, FastEthernet0/0
10.0.0.0/24 is subnetted, 3 subnets
D 10.4.4.0 [90/2172416] via 10.2.2.3, 00:00:04, FastEthernet1/0
[90/2172416] via 10.1.1.1, 00:00:04, FastEthernet0/0
11.0.0.0/32 is subnetted, 1 subnets
D 11.11.11.11 [90/156160] via 10.1.1.1, 00:00:07, FastEthernet0/0

Now we will set the offset on R2

R2(config)#access-list 25 permit 1.0.0.0 0.255.255.255
R2(config)#router eigrp 100
R2(config-router)#offset-list 25 in 43840

Checking the routing table, we see the 1.0.0.0 network metric is 200000.

2(config-router)#do show ip route eigrp
1.0.0.0/32 is subnetted, 3 subnets
D 1.1.1.1 [90/200000] via 10.1.1.1, 00:00:01, FastEthernet0/0
D 1.3.3.3 [90/200000] via 10.1.1.1, 00:00:01, FastEthernet0/0
D 1.2.2.2 [90/200000] via 10.1.1.1, 00:00:01, FastEthernet0/0
192.168.13.0/30 is subnetted, 1 subnets
D 192.168.13.0 [90/2172416] via 10.1.1.1, 00:01:20, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156160] via 10.2.2.3, 00:01:17, FastEthernet1/0
111.0.0.0/32 is subnetted, 1 subnets
D 111.111.111.111 [90/156160] via 10.1.1.1, 00:01:20, FastEthernet0/0
10.0.0.0/24 is subnetted, 3 subnets
D 10.4.4.0 [90/2172416] via 10.2.2.3, 00:01:17, FastEthernet1/0
[90/2172416] via 10.1.1.1, 00:01:17, FastEthernet0/0
11.0.0.0/32 is subnetted, 1 subnets
D 11.11.11.11 [90/156160] via 10.1.1.1, 00:01:20, FastEthernet0/0

Related Articles

Leave a Reply

avatar