Command
Network
Use
Specifies which interfaces RIP will run on.
Syntax
Router(config-router)#network <ip address>
Example
In this example, RIP is enabled for all interfaces on R2.
R2#conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router rip R2(config-router)#network 10.1.1.2 R2(config-router)#network 10.2.2.2 R2(config-router)#network 2.2.2.2
Here, the running config is shown for R2. Note that the router strips the IP to the classful boundary.
R2(config)#do show run | sec router router rip version 2 network 2.0.0.0 network 10.0.0.0 no auto-summary