Network Command on CISCO Router/Switch

Other Cisco Other Cisco Material Original source

Command

Network

Use

Specifies which interfaces RIP will run on.

Syntax

Router(config-router)#network

Example

In this example, RIP is enabled for all interfaces on R2.

Copy

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.

Copy

R2(config)#do show run | sec router

router rip

version 2

network 2.0.0.0

network 10.0.0.0

no auto-summary
← All Other Cisco articles Home