Page tree

Versions Compared

Key

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

...

Description

Configure the RIP protocol according to the scheme.

Step 1: start the RIP daemon.

Step 2: define the interfaces where RIP should be started:

  • BS1: the lo0 and rf5.0 interfaces;
  • CPE2: all interfaces;
  • CPE3: all interfaces.

In CPE2's configuration, the range of networks used in RIP will be set as a single entry: 0.0.0.0/0.  This entry includes all networks and enables the RIP support on all router's interfaces; when one of the CPE2's interfaces is connected to a new network, this network will be immediately announced via RIP. This approach doesn't require any additional RIP configuration, but decreases the control over the announcements.

On the BS1 and CPE3 routers, we will set only those networks that are associated with the interfaces participating in the RIP's operation.

Step 3: redistribute the directly connected networks on BS1 and the static routes on the CPE3 router.

Step 4: configure passive interfaces. The eth0 interface of CPE3 is connected to the external router R1, therefore it is necessary to block the transmission of the routing information between them. To ensure this, the eth0 interface of CPE3 must be configured as passive.

Step 5: announce the default route, specifying BS1 as the gateway.

BS1
Code Block
languagetext
themeEmacs
Start the RIP daemon
arip start

Start RIP on the interfaces
arip
config
router
network 172.16.0.0/29

Connected routes redistribution
arip
config
router
redistribute connected

Default route announcement
arip
config
router
default-information originate
CPE2
Code Block
languagetext
themeEmacs
Start the RIP daemon
arip start

Start RIP on the interfaces
arip
config
router
network 0.0.0.0/0
CPE3
Code Block
languagetext
themeEmacs
Start the RIP daemon
arip start

Start RIP on the interfaces
arip
config
router
network 10.10.30.0/24
network 172.16.0.0/29
network 192.168.0.3/32

Static routes redistribution
arip
config
router
redistribute kernel

Configuration of the passive interfaces
passive-interface eth0

Command output

...

analysis

Routing table
Description

The routing tables of the wireless devices, contains contain entries that each device has information about each subnet shown in the scheme. This means that the devices have successfully exchanged routing information and added it to the FIB.

Note the devices routing table contains a route to the addresses assigned to the loopback interfaces of other wireless devices. These interfaces have been added to RIP in various ways:

  • BS1:redistribution of a directly connected network;
  • CPE2: the device announces all networks to which it is connected;
  • CPE3: network assigned to the loopback interface is explicitly announced.

Also pay attention to the default route on CPE2 and CPE3 devices. in accordance with the configuration, BS1 announces the default route to all devices that support RIP, indicating itself as a gateway. At the same time, the default route is absent in the BS1 routing table.

The CPE3 router redistributes static routes, therefore, the BC1 and CPE2 routing tables contain paths to the networks 192.168.6.0/24, 192.168.7.0/24 and 192.168.8.0/24.

BS1
Code Block
languagetext
themeEmacs
BS_1#1> netstat -r
Routing tables
Destination        Gateway            Flags     Refs     Use  Interface
10.10.10.0/24      link#2             UC          0        0  eth0
10.10.20.0/24      172.16.0.2         UG3         0        0  rf5.0
10.10.30.0/24      172.16.0.3         UG3         0        0  rf5.0
127.0.0.1          127.0.0.1          UH          3      106  lo0
172.16.0.0/29      link#3             UC          0        0  rf5.0
192.168.0.1        192.168.0.1        UH          0        0  lo0
192.168.0.2        172.16.0.2         UGH3        0        0  rf5.0
192.168.0.3        172.16.0.3         UGH3        0        0  rf5.0
192.168.6.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.7.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.8.0/28     172.16.0.3         UG3         0        0  rf5.0
224.0.0.0/8        127.0.0.1          UGS         0      346  lo0
CPE2
Code Block
languagetext
themeEmacs
AS_2#1> netstat -r
Routing tables
Destination        Gateway            Flags     Refs     Use  Interface
default            172.16.0.1         UG3         0        0  rf5.0
10.10.10.0/24      172.16.0.1         UG3         0        0  rf5.0
10.10.20.0/24      link#2             UC          0        0  eth0
10.10.30.0/24      172.16.0.3         UG3         0        0  rf5.0
127.0.0.1          127.0.0.1          UH          3      100  lo0
172.16.0.0/29      link#3             UC          0        0  rf5.0
192.168.0.1        172.16.0.1         UGH3        0        0  rf5.0
192.168.0.2        192.168.0.2        UH          0        0  lo0
192.168.0.3        172.16.0.3         UGH3        0        0  rf5.0
192.168.6.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.7.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.8.0/28     172.16.0.3         UG3         0        0  rf5.0
224.0.0.0/8        127.0.0.1          UGS         0      703  lo0
CPE3
Code Block
languagetext
themeEmacs
AS_3#1> netstat -r
Routing tables
Destination        Gateway            Flags     Refs     Use  Interface
default            172.16.0.1         UG3         0        0  rf5.0
10.10.10.0/24      172.16.0.1         UG3         0        0  rf5.0
10.10.20.0/24      172.16.0.2         UG3         0        0  rf5.0
10.10.30.0/24      link#2             UC          0        0  eth0
127.0.0.1          127.0.0.1          UH          3       84  lo0
172.16.0.0/29      link#3             UC          0        0  rf5.0
192.168.0.1        172.16.0.1         UGH3        0        0  rf5.0
192.168.0.2        172.16.0.2         UGH3        0        0  rf5.0
192.168.0.3        192.168.0.3        UH          0        0  lo0
192.168.6.0/28     10.10.30.1         UGS         0        0  eth0
192.168.7.0/28     10.10.30.1         UGS         0        0  eth0
192.168.8.0/28     10.10.30.1         UGS         0        0  eth0
224.0.0.0/8        127.0.0.1          UGS         0      349  lo0

...