1-16
RIP Configuration Examples
Configuring RIP Version
Network requirements
As shown in
Figure 1-4
, enable RIPv2 on all interfaces on Switch A and Switch B.
Figure 1-4
Network diagram for RIP version configuration
Configuration procedure
1) Configure an IP address for each interface (only the IP address configuration for the VLAN
interfaces is given in the following examples)
# Configure Switch A.
<SwitchA> system-view
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 192.168.1.3 24
[SwitchA-Vlan-interface100] quit
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ip address 172.17.1.1 24
[SwitchA-Vlan-interface101] quit
[SwitchA] interface vlan-interface 102
[SwitchA-Vlan-interface102] ip address 172.16.1.1 24
# Configure Switch B.
<SwitchB> system-view
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 192.168.1.2 24
[SwitchB-Vlan-interface100] quit
[SwitchB] interface vlan-interface 101
[SwitchB-Vlan-interface101] ip address 10.2.1.1 24
[SwitchB-Vlan-interface101] quit
2) Configure basic RIP functions
# Configure Switch A.
[SwitchA] rip
[SwitchA-rip-1] network 192.168.1.0
[SwitchA-rip-1] network 172.16.0.0
[SwitchA-rip-1] network 172.17.0.0
# Configure Switch B.
[SwitchB] rip
[SwitchB-rip-1] network 192.168.1.0
[SwitchB-rip-1] network 10.0.0.0