• No results found

IP Routing in a RIP Network

N/A
N/A
Protected

Academic year: 2021

Share "IP Routing in a RIP Network"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

IP Routing in a RIP Network

The example configurations below provide IP routing between two HP ProCurve 5300XL Switches (Switch A

and Switch B) using RIP as the routing protocol.

Switch A and B configured to provide IP routing between VLANs using only RIP as the routing protocol. All

protocols are switched within each VLAN.

Switch B is configured to restrict advertisement of VLAN 40 by RIP.

This configuration example applies to the following products:

� J4819A HP ProCurve Switch 5308XL

� J4850A HP ProCurve Switch 5304XL

Switch A

link untagged for VLAN 10

hp procurve swi tch 5304XL

J4850A Use xl m od ul es only

hp p ro c urv e 10 / 100- T xl m o d ule J4820A hp p ro c urve M i ni- GBIC x l m o d ul e J4878A m o d ul e xl hp procurve swi tch 5308XL

J4819A Use xl m od ul es only

hp p ro c urve 10/ 100- T xl m o d ul e J48 20A hp p ro c urve M ini - GBIC xl m o d ule J4 878A m o d ule xl

Switch B

IP address 10.10.10.2 VLAN 40 198.168.40.0 VLAN 20 20.20.20.0 IP address 10.10.10.3 VLAN 30 30.30.30.0 VLAN 10 10.10.10.0

©Copyright Hewlett-Packard Company, 2000.

(2)

WARNING:

The example configuration below was created from a factory default configuration on the HP ProCurve

5300XL Switch. The first 3 commands in the sequence of CLI commands given below will first reset the switch

back to factory default settings. We recommend saving your current configuration if necessary. Otherwise, skip

the first 3 commands.

NOTES:

1. The interface port numbers (e.g. interface a1) and the IP address (e.g. 10.10.10.2) may differ in your

network, so adjust these values accordingly.

2. The HP ProCurve Switch 5300XL Series (e.g. HP 5304XL), type of module(s), and software version

number below may not accurately reflect the device(s) you are configuring.

3. The factory default version for RIP is V2-only.

4. In the example below, directly connected routes are advertised by default for RIP. For Switch B, the

restrict 198.168.40.0/24 command is used in order to keep this directly connected network (e.g. VLAN 40)

from being advertised by RIP to Switch A.

(3)

CONFIGURATION COMMANDS: (created on software version E.06.01)

Switch A

HP ProCurve Switch 5304XL# con

HP ProCurve Switch 5304XL(config)# hostname Switch_A Switch_A(config)# vlan 10

Switch_A(vlan-10)# untag a1

Switch_A(vlan-10)# ip address 10.10.10.2/24 Switch_A(vlan-10)# exit

Switch_A(config)# ip routing Switch_A(config)# router rip Switch_A(rip)# vlan 10 Switch_A(vlan-10)# ip rip Switch_A(vlan-10)# vlan 20 Switch_A(vlan-20)# untag b1 Switch_A(vlan-20)# ip address 20.20.20.2/24

Switch B

HP ProCurve Switch 5308XL# con

HP ProCurve Switch 5308XL(config)# hostname Switch_B Switch_B(config)# vlan 10

Switch_B(vlan-10)# untag a1

Switch_B(vlan-10)# ip address 10.10.10.3/24 Switch_B(vlan-10)# exit

Switch_B(config)# ip routing Switch_B(config)# router rip

Switch_B(rip)# restrict 198.168.40.0/24 Switch_B(rip)# vlan 10 Switch_B(vlan-10)# ip rip Switch_B(vlan-10)# vlan 30 Switch_B(vlan-30)# untag b1 Switch_B(vlan-30)# ip address 30.30.30.2/24 Switch_B(vlan-30)# vlan 40 Switch_B(vlan-40)# untag b4 Switch_B(vlan-40)# ip address 198.168.40.1/24

©Copyright Hewlett-Packard Company, 2000.

(4)

RESULTING CONFIGURATION:

Switch A

Startup configuration:

; J4850A Configuration Editor; Created on release #E.06.01 hostname "Switch_A"

time daylight-time-rule None cdp run

module 2 type J4821A module 1 type J4820A ip routing

snmp-server community "public" Unrestricted vlan 1 name "DEFAULT_VLAN" untagged A2-A24,B2-B4 ip address dhcp-bootp no untagged A1,B1 exit vlan 10 name "VLAN10" untagged A1 ip address 10.10.10.2 255.255.255.0 exit vlan 20 name "VLAN20" untagged B1 ip address 20.20.20.2 255.255.255.0 exit

no aaa port-access authenticator active router rip

exit vlan 10

ip rip exit

(5)

RESULTING CONFIGURATION:

Switch B

Startup configuration:

; J4819A Configuration Editor; Created on release #E.06.01 hostname "Switch_B"

time daylight-time-rule None cdp run

module 2 type J4821A module 1 type J4820A ip routing

snmp-server community "public" Unrestricted vlan 1 name "DEFAULT_VLAN" untagged A2-A24,B2-B3 ip address dhcp-bootp no untagged A1,B1,B4 exit vlan 10 name "VLAN10" untagged A1 ip address 10.10.10.3 255.255.255.0 exit vlan 30 name "VLAN30" untagged B1 ip address 30.30.30.2 255.255.255.0 exit vlan 40 name "VLAN40" untagged B4 ip address 198.168.40.1 255.255.255.0 exit

no aaa port-access authenticator active router rip restrict 198.168.40.0 255.255.255.0 exit vlan 10 ip rip exit

©Copyright Hewlett-Packard Company, 2000.

(6)

VERIFICATION COMMANDS:

1. The following CLI commands can be used to display RIP information:

� show ip rip general

� show ip rip interface

� show ip route rip

� show ip route

� sh ip rip peer

� show ip rip restrict

Outputs from these show commands for this example follow below. Refer to Chapter 16 of the

HP

Procurve Series 5300XL Switches Management and Configuration Guide

for detailed descriptions of each

command's output.

Switch_A# sh ip rip general

RIP global parameters RIP protocol : enabled Auto-summary : enabled Default Metric : 1

Route changes : 7 Queries : 0

RIP interface information

IP Address Status Send mode Recv mode Metric Auth --- --- -- --- ----10.10.10.2 enabled V2-only V2-only 1 none

RIP peer information

IP Address Bad routes Last update timeticks --- --- ---10.10.10.3 0 27

Switch_B# sh ip rip general

RIP global parameters

RIP protocol : enabled Auto-summary : enabled Default Metric : 1

(7)

RIP peer information

IP Address Bad routes Last update timeticks --- --- ---10.10.10.2 0 16

Switch_A# sh ip rip interface

RIP interface information

IP Address Status Send mode Recv mode Metric Auth --- --- -- --- ----10.10.10.2 enabled V2-only V2-only 1 none

Switch_B# sh ip rip interface

RIP interface information

IP Address Status Send mode Recv mode Metric Auth --- --- -- --- ----10.10.10.3 enabled V2-only V2-only 1 none

Switch_A# sh ip route rip

IP Route Entries

Destination Network Mask | Gateway Type Sub-Type Metric --- --- + --- --- ---- ---30.0.0.0 255.0.0.0 | 10.10.10.3 rip 2

Switch_B# sh ip route rip

IP Route Entries

Destination Network Mask | Gateway Type Sub-Type Metric --- --- + --- --- ---- ---20.0.0.0 255.0.0.0 | 10.10.10.2 rip 2

Switch_A# sh ip route

©Copyright Hewlett-Packard Company, 2000. Page 7

(8)

IP Route Entries

Destination Network Mask | Gateway Type Sub-Type Metric --- --- + --- --- ---- ---10.10.10.0 255.255.255.0 | VLAN10 connected 0 20.20.20.0 255.255.255.0 | VLAN20 connected 0 30.0.0.0 255.0.0.0 | 10.10.10.3 rip 2 127.0.0.0 255.0.0.0 | reject static 0 127.0.0.1 255.255.255.255 | lo0 connected 0 Switch_B# sh ip route IP Route Entries

Destination Network Mask | Gateway Type Sub-Type Metric --- --- + --- --- ---- ---10.10.10.0 255.255.255.0 | VLAN10 connected 0 20.0.0.0 255.0.0.0 | 10.10.10.2 rip 2 30.30.30.0 255.255.255.0 | VLAN30 connected 0 127.0.0.0 255.0.0.0 | reject static 0 127.0.0.1 255.255.255.255 | lo0 connected 0 198.168.40.0 255.255.255.0 | VLAN40 connected 0

Switch_A# sh ip rip peer

RIP peer information

IP Address Bad routes Last update timeticks --- --- ---10.10.10.3 0 6

Switch_B# sh ip rip peer

(9)

IP Address Mask

---Switch_B# sh ip rip restrict

OSPF restrict list IP Address Mask

---198.168.40.0 255.255.255.0

©Copyright Hewlett-Packard Company, 2000. Page 9

References

Related documents