Example of subnet routing – HP 445946-001 User Manual

Page 109

Advertising
background image

Basic IP routing

109

Example of subnet routing

Prior to configuring, you must be connected to the switch Command Line Interface (CLI) as the

administrator.

NOTE:

For details about accessing and using any of the menu commands described in this

example, see the HP 10Gb Ethernet BL-c Switch Command Reference.

1.

Assign an IP address (or document the existing one) for each router and client workstation.

2.

In the example topology, the following IP addresses are used:

Table 20

Subnet routing example: IP address assignments

Subnet Devices

IP

Addresses

1

Primary and Secondary Default Routers

205.21.17.1 and 205.21.17.2

2

First Floor Client Workstations

100.20.10.2-254

3

Second Floor Client Workstations

131.15.15.2-254

4 Common

Servers

206.30.15.2-254

3.

Assign an IP interface for each subnet attached to the switch.

4.

Since there are four IP subnets connected to the switch, four IP interfaces are needed:

Table 21

Subnet routing example: IP interface assignments

Interface

Devices

IP Interface Address

IF 1

Primary and Secondary Default Routers

205.21.17.3

IF 2

First Floor Client Workstations

100.20.10.1

IF 3

Second Floor Client Workstations

131.15.15.1

IF 4

Common Servers

206.30.15.1

5.

IP interfaces are configured using the following commands at the CLI:

>> # /cfg/l3/if 1 (Select IP interface 1)

>> IP Interface 1# addr 205.21.17.3 (Assign IP address)

>> IP Interface 1# ena (Enable IP interface 1)

>> IP Interface 1# ../if 2 (Select IP interface 2)

>> IP Interface 2# addr 100.20.10.1 (Assign IP address)

>> IP Interface 2# ena (Enable IP interface 2)

>> IP Interface 2# ../if 3 (Select IP interface 3)

>> IP Interface 3# addr 131.15.15.1 (Assign IP address)

>> IP Interface 3# ena (Enable IP interface 3)

>> IP Interface 3# ../if 4 (Select IP interface 4)

>> IP Interface 4# addr 206.30.15.1 (Assign IP address)

>> IP Interface 4# ena (Enable IP interface 5)

6.

Set each server and workstation’s default gateway to the appropriate switch IP interface (the one in

the same subnet as the server or workstation).

7.

Configure the default gateways to the routers’ addresses.

Advertising