Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Network scheme with one OSPF area

To In order to demonstrate how to configure the OSPF protocol and analyze the output of the diagnostic commands output, let's take a look at the example of the scheme with one OSPF area in (Figure 2):

  • The network consists of three wireless devices BS1, CPE2 , and CPE3 configured as routers.
  • Wireless devices build The wireless devices are part of the OSPF backbone area 0 (only one OSPF area is present in this setup).
  • BS1 has an external link for connecting to the LAN-1 network.
  • The CPE3 router is connected to the outside external router R1.To make the R1's router networks available, static routes to the networks 192.168.5.0/28 and 192.168.6.0/28 have been added to CPE3.
  • Routers BS1, CPE2 and CPE3 use as identifiers the addresses assigned to the loopback interface: 192.168.0.1/32, 192.168.0.2/32 and 192.168.0.3/32.

...

Pre-configuration

Description

Perform a devices preliminary configuration of the wireless devices, consisting of the following steps:

  • Configure device ID.
  • Remove the svi1 interface.
  • Assign IP addresses to network interfaces, according to the scheme.
  • Add static entries to the routing table.
  • Disable switching.
  • Set Establish the wireless links.
BS1
Code Block
languagetext
themeEmacs
Set the device ID
system prompt BS_1

Remove the svi1 interface
ifc svi1 destroy

Assign IP addresses
ifc eth0 10.10.10.1/24
ifc rf5.0 172.16.0.1/29
ifc lo0 192.168.0.1/32

Disable switching
switch stop

SetEstablish wireless links
rf rf5.0 band 20
rf rf5.0 freq 5000

mint rf5.0 -name "BS_1"
mint rf5.0 -type master
CPE2
Code Block
languagetext
themeEmacs
Set the device ID
system prompt CPE_2

Remove the svi1 interface
ifc svi1 destroy

Assign IP addresses
ifc eth0 10.10.20.2/24
ifc rf5.0 172.16.0.2/29
ifc lo0 192.168.0.2/32

Disable switching
switch stop

SetEstablish athe wireless link
mint rf5.0 -name "CPE_2"
mint rf5.0 -type slave
mint rf5.0 prof 1 -band 20 -freq 5000 -type slave
CPE3
Code Block
languagetext
themeEmacs
Set the device ID
system prompt CPE_3

Remove the svi1 interface
ifc svi1 destroy

Assign IP addresses
ifc eth0 10.10.30.3/24
ifc rf5.0 172.16.0.3/29
ifc lo0 192.168.0.3/32

Add static routes
route add 192.168.5.0/28 10.10.30.1
route add 192.168.6.0/28 10.10.30.1

Disable switching
switch stop

SetEstablish athe wireless link
mint rf5.0 -name "CPE_3"
mint rf5.0 -type slave
mint rf5.0 prof 1 -band 20 -freq 5000 -type slave

OSPF configuration

Description

Configure the OSPF protocol in accordance with according to the scheme.

Step 1: start OSPF.

Step 2: set routers the router IDs. The identifiers will be equal to the IP addresses assigned to the loopback interface.

Step 3: define the interfaces where OSPF should be started. All the interfaces are connected to the backbone area according to the scheme. On the BS1 and CPE3 routers, set the networks assigned to one of the device's interfaces that should take part in OSPF.

On the CPE2 router, set all the networks using only one entry 0.0.0.0/0. This entry includes all networks and enables the OSPF support on all router's interfaces; when some a device interfaces 's interface is connected to a new network, this network will be immediately announced via OSPF. This approach doesn't require additional OSPF configuration, but decreases the control over the announcements. In addition, this command announces advertises the address 127.0.0.1/32 assigned to the loopback interface and does not announce the address 192.168.0.2/32, therefore, this network must be additionally specified.

Step 4: make perform the redistribution of the directly connected networks on to the BS1 router and of the static routes on the CPE3 router.

Step 5: configure passive interfaces. The CPE3 eth0 interface of CPE3 is connected to the outside router R1, so no neighbor relationship neighboring relation should be established on this interface. Network 10.10.30.0/24 associated with the eth0 interface must be announced via OSPF, so the eth0 interface must be set as passive.

BS1
Code Block
languagetext
themeEmacs
Start OSPF
ospf start

Set the router-id
ospf
config
router
router-id 192.168.0.1

Start OSPF on the interfaces
ospf
config
router
network 172.16.0.0/29 area 0.0.0.0
network 192.168.0.1/32 area 0.0.0.0

Connected routes redistribution
ospf
config
router
redistribute connected
CPE2
Code Block
languagetext
themeEmacs
Start OSPF
ospf start

Set the router-id
ospf
config
router
router-id 192.168.0.2

Start OSPF on the interfaces
ospf
config
router
network 0.0.0.0/0 area 0.0.0.0
network 192.168.0.2/32 area 0.0.0.0
CPE3
Code Block
languagetext
themeEmacs
Start OSPF
ospf start

Set the router-id
ospf
config
router
router-id 192.168.0.3

Start OSPF on the interfaces
ospf
config
router
network 10.10.30.0/24 area 0.0.0.0
 network 172.16.0.0/29 area 0.0.0.0
 network 192.168.0.3/32 area 0.0.0.0

Static routes redistribution
ospf
config
router
redistribute kernel

Passive interfacesinterface configuration
passive-interface eth0

...