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
Options
|
All networks |
|
Standard accses list |
|
Named access list |
| Affects inbound updates | |
| Affects outbound updates | |
| Amount to modify metric | |
| Only affects updates comming through this interface |
Example
Here is the route table for R2 table before configuring the offset list.
Copy
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.
Copy
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.
Copy
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