HP 4800G Series Configuration Manual page 425

24/48 port
Table of Contents

Advertisement

[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
# Display the RIP routing table of Switch A.
[SwitchA] display rip 1 route
Route Flags: R - RIP, T - TRIP
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
--------------------------------------------------------------------------
Peer 192.168.1.2
on Vlan-interface100
Destination/Mask
10.0.0.0/8
From the routing table, you can find that RIPv1 uses a natural mask.
3)
On Switch A and Switch B, specify the RIP version as RIPv2, and disable RIPv2 route automatic
summarization to advertise all subnet routes.
# Configure RIPv2 on Switch A.
[SwitchA] rip
[SwitchA-rip-1] version 2
[SwitchA-rip-1] undo summary
# Configure RIPv2 on Switch B.
[SwitchB] rip
[SwitchB-rip-1] version 2
[SwitchB-rip-1] undo summary
# Display the RIP routing table on Switch A.
[SwitchA] display rip 1 route
Route Flags: R - RIP, T - TRIP
Nexthop
Cost
192.168.1.2
1
1-17
Tag
Flags
Sec
0
RA
11

Advertisement

Chapters

Table of Contents
loading

Table of Contents