Difference between revisions of "OSPF"

From StarOS Community Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
OSPF stands for Open Shortest Path First.    On StarOS, this is implemented through the use of the Quagga routing daemon.  Essentially, the daemon runs on two routers and they use the broacast addresses to announce routes between routers.  This is an excellent way to dynamically distribute routes across a complex routed network.
OSPF stands for Open Shortest Path First.    On StarOS, this is implemented through the use of the Quagga routing daemon.  Essentially, the daemon runs on two routers and they use the broacast addresses to announce routes between routers.  This is an excellent way to dynamically distribute routes across a complex routed network.
OSPF configuration uses a configuration prompt that works in a very similar manner to a Cisco router configuration.  Once logged in, you have to use the "enable" command to get into a privileged mode which will allow for modification of the configuration.  Each line in the configuration file is enabled by simply typing the command.  Disabling interfaces or commands is accomplished by putting the word "no" in front of the command.  When the configuration is comppleted, use the "write memory" command to copy the configuration to memory.  If you do not write the config to memory, OSPF will not retain the configuration.
Here is an example of a simple OSPF configuration:
Current configuration:
!
hostname ospftest-ap
password yourpasswordhere
!
!
!
interface eth0
!
interface wpci0
!
interface wpcm0
!
router ospf
ospf router-id 10.1.1.1
redistribute connected
redistribute static
network 10.0.0.0/8 area 0.0.0.0
!
access-list vtylist permit 127.0.0.1/32
access-list vtylist permit 10.0.0.0/8
access-list vtylist deny any
!
line vty
access-class vtylist
!
end
Here are the commands that would be run to set this up:
hostname>en
hostname#conf t
hostname(config)#hostname ospftest-ap
ospftest-ap(config)#router ospf
ospftest-ap(config-router)#ospf router-id 10.1.1.1
ospftest-ap(config-router)#redistribute connected
ospftest-ap(config-router)#redistribute static
ospftest-ap(config-router)#network 10.0.0.0/8 area 0
ospftest-ap(config-router)#exit
ospftest-ap(config)#no access-list vtylist deny any
ospftest-ap(config)#access-list vtylist permit 10.0.0.0/8
ospftest-ap(config)#access-list vtylist deny any
ospftest-ap(config)#exit
ospftest-ap#write memory
ospftest-ap#show run

Revision as of 11:18, 24 January 2008

OSPF stands for Open Shortest Path First. On StarOS, this is implemented through the use of the Quagga routing daemon. Essentially, the daemon runs on two routers and they use the broacast addresses to announce routes between routers. This is an excellent way to dynamically distribute routes across a complex routed network.

OSPF configuration uses a configuration prompt that works in a very similar manner to a Cisco router configuration. Once logged in, you have to use the "enable" command to get into a privileged mode which will allow for modification of the configuration. Each line in the configuration file is enabled by simply typing the command. Disabling interfaces or commands is accomplished by putting the word "no" in front of the command. When the configuration is comppleted, use the "write memory" command to copy the configuration to memory. If you do not write the config to memory, OSPF will not retain the configuration.

Here is an example of a simple OSPF configuration:


Current configuration: ! hostname ospftest-ap password yourpasswordhere ! ! ! interface eth0 ! interface wpci0 ! interface wpcm0 ! router ospf

ospf router-id 10.1.1.1
redistribute connected
redistribute static
network 10.0.0.0/8 area 0.0.0.0

! access-list vtylist permit 127.0.0.1/32 access-list vtylist permit 10.0.0.0/8 access-list vtylist deny any ! line vty

access-class vtylist

! end

Here are the commands that would be run to set this up:

hostname>en hostname#conf t hostname(config)#hostname ospftest-ap ospftest-ap(config)#router ospf ospftest-ap(config-router)#ospf router-id 10.1.1.1 ospftest-ap(config-router)#redistribute connected ospftest-ap(config-router)#redistribute static ospftest-ap(config-router)#network 10.0.0.0/8 area 0 ospftest-ap(config-router)#exit ospftest-ap(config)#no access-list vtylist deny any ospftest-ap(config)#access-list vtylist permit 10.0.0.0/8 ospftest-ap(config)#access-list vtylist deny any ospftest-ap(config)#exit ospftest-ap#write memory ospftest-ap#show run