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 accses 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
Here is the route table for R2 table before configuring the offset list.
R2(config-router)#do show ip route rip 1.0.0.0/32 is subnetted, 3 subnets R 1.1.1.1 [120/1] via 10.1.1.1, 00:00:19, FastEthernet0/0 R 1.3.3.3 [120/1] via 10.1.1.1, 00:00:19, FastEthernet0/0 R 1.2.2.2 [120/1] via 10.1.1.1, 00:00:19, FastEthernet0/0 R 3.0.0.0/8 [120/1] via 10.2.2.3, 00:00:25, FastEthernet1/0
Here is the route table for R2 after setting the offset list for fa0/0 to 5.
R2(config-router)#offset-list 0 in 5 fa0/0 R2(config-router)#do show ip route rip 1.0.0.0/32 is subnetted, 3 subnets R 1.1.1.1 [120/6] via 10.1.1.1, 00:00:09, FastEthernet0/0 R 1.3.3.3 [120/6] via 10.1.1.1, 00:00:09, FastEthernet0/0 R 1.2.2.2 [120/6] via 10.1.1.1, 00:00:09, FastEthernet0/0 R 3.0.0.0/8 [120/1] via 10.2.2.3, 00:00:12, FastEthernet1/0
Finally, here is the route table for R2 after setting the offset list to 7 for 1.3.3.3.
R2(config)#access-list 25 permit 1.3.3.3 R2(config)#router rip R2(config-router)#offset-list 25 in 7 R2(config-router)#do show ip route rip 1.0.0.0/32 is subnetted, 3 subnets R 1.1.1.1 [120/1] via 10.1.1.1, 00:00:09, FastEthernet0/0 R 1.3.3.3 [120/8] via 10.1.1.1, 00:00:09, FastEthernet0/0 R 1.2.2.2 [120/1] via 10.1.1.1, 00:00:09, FastEthernet0/0 R 3.0.0.0/8 [120/1] via 10.2.2.3, 00:00:12, FastEthernet1/0