108

AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers

 

RouterOS v3 Configuration and User Guide

 

 

Routing tables with Revised Link Cost

This example shows how to set up link cost. Let us assume, that the link between the routers OSPF_peer_1 and OSPF_peer_2 has a higher cost (might be slower, we have to pay more for the traffic through it, etc.).

 

 

 

Internet

main_gw 192.168.0.11

 

[OSPF_MAIN]

 

to_peer2 10.2.0.2

 

 

 

to_peer1 10.1.0.2

 

 

to_main 10.2.0.1

 

 

 

 

 

 

Cost=1

 

 

Cost=1

[OSPF_peer_2]

 

 

 

Cost=1

to_main 10.1.0.1

 

 

to_peer1 10.3.0.2

 

 

 

[OSPF_peer_1]

 

backup 10.3.0.1

 

 

 

 

Figure 14: OSPF Routing tables

We should change cost value in both routers: OSPF_peer_1 and OSPF_peer_2 to 50. To do this, we need to add a following interface:

[admin@OSPF_peer_1] routing ospf interface> add interface=backup cost=50

[admin@OSPF_peer_1] routing ospf interface> print

0 interface=backup cost=50 priority=1 authentication-key="" retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s

[admin@OSPF_peer_2] routing ospf interface> add interface=to_peer_1 cost=50

[admin@OSPF_peer_2] routing ospf interface> print

0 interface=to_peer_1 cost=50 priority=1 authentication-key="" retransmit-interval=5s transmit-delay=1s hello-interval=10s

dead-interval=40s

After changing the cost settings, we have only one equal cost multipath route left - to the network 10.3.0.0/24 from OSPF_MAIN router.

Routes on OSPF_MAIN router:

[admin@OSPF_MAIN] ip route> print

 

 

Flags: X - disabled, I - invalid, D - dynamic, J - rejected,

 

C - connect, S - static, r - rip, o - ospf, b - bgp

 

#

DST-ADDRESS

G GATEWAY

DISTANCE INTERFACE

0

Io 192.168.0.0/24

 

110

 

1

DC 192.168.0.0/24

r 0.0.0.0

0

main_gw

2

Do 10.3.0.0/24

r 10.2.0.1

110

to_peer_2

 

 

r 10.1.0.1

 

to_peer_1

3

Io 10.2.0.0/24

 

110

 

4

DC 10.2.0.0/24

r 0.0.0.0

0

to_peer_2

5

Io 10.1.0.0/24

 

110

 

6

DC 10.1.0.0/24

r 0.0.0.0

0

to_peer_1

 

 

 

 

 

Page 108
Image 108
Allied Telesis AT-WR4500 manual Routing tables with Revised Link Cost, Dead-interval=40s