network

Use this command to attach a network of directly connected networks to a RIP routing process, or to remove a network from a RIP routing process.

Syntax

network ip-address wild-card-bits
no network ip-address wild-card-bits

Parameters

ip-address Specifies the IP address of a directly connected network that RIP will advertise to its neighboring routers.
wild-card-bits Specifies a mask for the directly connected network.

Defaults

None.

Mode

Configuration command, RIP configuration command mode.

Usage

RIP network wildcard masks are reverse networks. This means that wherever there is a 1 in a regular netmask, use a 0 in a wildcard mask. For example, if the network mask is 255.255.255.0 (/24), specify a wildcard mask of 000.000.000.255.

The “no” form of this command removes the network from the RIP routing process.

Example

This example shows how to attach network 192.168.1.0 to the RIP routing process:

System(rw-config)->router rip
System(rw-config-rip)->network 192.168.1.0 0.0.0.255