Ospf Cost - Allied Telesis SwitchBlade x908 Series Software Reference Manual

Switchblade x908/x900 series alliedware plus operating system software reference for version 5.3.1
Hide thumbs Also See for SwitchBlade x908 Series:
Table of Contents

Advertisement

OSPF Configuration

OSPF Cost

You can make a route the preferred route by changing its cost. In this example, the OSPF
routers are Allied Telesis managed Layer 3 switches. The cost has been configured to make
Switch 2 the next hop for Switch 1.
The default cost on each interface is 10. Interface vlan2 on Switch 2 has a cost of 100 and
interface vlan3 on Switch 3 has a cost of 150. The total cost for Switch 1 to reach 10.10.14.0/
24 (Switch 4) Switch 2 or via Switch 3 is:
Switch 2: 10+100 = 110
Switch 3: 10+150 = 160
Therefore, Switch 1 chooses Switch 2 as its next hop for destination 10.10.14.0/24, as
that path has the lower cost.
Switch 1
awplus#configure terminal
awplus(config)#router ospf 100
awplus(config-router)#network 10.10.9.0/
24 area 0
awplus(config-router)#network 10.10.10.0/
24 area 0
awplus(config-router)#network 10.10.12.0/
24 area 0
Switch 2
awplus(config)#interface vlan2
awplus(config-if)#ip ospf cost 100
awplus(config-if)#exit
awplus(config)#router ospf 100
awplus(config-router)#network 10.10.10.0/
24 area 0
awplus(config-router)#network 10.10.11.0/
24 area 0
35.8
Software Reference for SwitchBlade® x908, x900 and x600 Series Switches
TM
AlliedWare Plus
Operating System - Software Version 5.3.1
Enter the Configure mode.
Configure the Routing process and specify the Process ID
(100). The Process ID should be a unique positive integer
identifying the routing process.
Define interfaces on which OSPF runs and associate the
area ID (0) with the interface (area ID 0 specifies the
backbone area).
Specify the interface (vlan2)to be configured.
Set the OSPF cost of this link to 100.
Exit the Interface mode and return to Configure
mode.
Configure the Routing process and specify the Process ID
(100). The Process ID should be a unique positive integer
identifying the routing process.
Define interfaces on which OSPF runs and associate the
area ID (0) with the interface.
C613-50007-01 REV B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents