HP 445946-001 User Manual

Page 111

Advertising
background image

Basic IP routing

111

4.

The VLANs shown in the table above are configured as follows:

>> # /cfg/l2/vlan 1(Select VLAN 1)

>> VLAN 1# add port 20 (Add port for 1st floor to VLAN 1)

>> VLAN 1# add port 21 (Add port for 2nd floor to VLAN 1)

>> VLAN 1# ena (Enable VLAN 1)

>> VLAN 1# ../VLAN 2 (Select VLAN 2)

>> VLAN 2# add port 18 (Add port for default router 1)

>> VLAN 2# add port 19 (Add port for default router 2)

>> VLAN 2# ena (Enable VLAN 2)

>> VLAN 2# ../VLAN 3 (Add port for default router 3)

>> VLAN 3# add port 1 (Select VLAN 3)

>> VLAN 3# add port 2 (Select port for common server 1)

>> VLAN 3# ena (Enable VLAN 3)

5.

Each time you add a port to a VLAN, you may get the following prompt:

Port 4 is an untagged port and its current PVID is 1.

Confirm changing PVID from 1 to 2 [y/n]?

6.

Enter

y

to set the default Port VLAN ID (PVID) for the port.

7.

Add each IP interface to the appropriate VLAN.

8.

Now that the ports are separated into three VLANs, the IP interface for each subnet must be placed

in the appropriate VLAN. The settings are made as follows:

>> VLAN 3# /cfg/l3/if 1 (Select IP interface 1 for def. routers)

>> IP Interface 1# vlan 2 (Set to VLAN 2)

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

>> IP Interface 2# vlan 1 (Set to VLAN 1)

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

>> IP Interface 3# vlan 1 (Set to VLAN 1)

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

>> IP Interface 4# vlan 3 (Set to VLAN 3)

9.

Apply and verify the configuration.

>> IP Interface 4# apply (Make your changes active)

>> IP Interface 4# /info/l2/vlan (View current VLAN information)

>> Information# port (View current port information)

10.

Examine the resulting information. If any settings are incorrect, make the appropriate changes.

11.

Save your new configuration changes.

>> Information# save (Save for restore after reboot)

Advertising