7-8
Configuring IP Addressing
IP Configuration
Figure 5-3. Example of Show IP Listing with Non-Default IP Addressing Configured
Configure an IP Address and Subnet Mask.
The following command
includes both the IP address and the subnet mask. You must either include the
ID of the VLAN for which you are configuring IP addressing or go to the
context configuration level for that VLAN. (If you are not using VLANs on the
switch—that is, if the only VLAN is the default VLAN—then the VLAN ID is
always “1”.)
N o t e
The default IP address setting for the DEFAULT_VLAN is
DHCP/Bootp
. On
additional VLANs you create, the default IP address setting is
Disabled
.
Syntax:
vlan
<vlan-id>
ip address
<ip-address/mask-length>
or
vlan
<vlan-id>
ip address
<ip-address> <mask-bits>
or
vlan
<vlan-id>
ip address
dhcp-bootp
This example configures IP addressing on the default VLAN with the subnet
mask specified in mask bits.
HPswitch
(config)# vlan 1 ip address 10.28.227.103/
255.255.255.0
This example configures the same IP addressing as the preceding example,
but specifies the subnet mask by mask length.
HPswitch(config)# vlan 1 ip address 10.28.227.103/24
Configure the Optional Default Gateway.
Using the Global configura-
tion level, you can assign one default gateway to the switch.
Syntax:
ip default-gateway
<ip-address>
For example:
HPswitch(config)# ip default-gateway 10.28.227.115
A Switch 4108GL with
IP Addressing and
VLANs Configured
Summary of Contents for ProCurve 4104GL
Page 2: ......
Page 26: ...xxiv Getting Started Need Only a Quick Start ...
Page 34: ...1 8 Selecting a Management Interface Advantages of Using HP TopTools for Hubs Switches ...
Page 50: ...2 16 Using the Menu Interface Where To Go From Here ...
Page 172: ...8 24 Time Protocols SNTP Messages in the Event Log ...
Page 240: ...10 30 Configuring for Network Management Applications CDP ...
Page 288: ...11 48 Port Based Virtual LANs VLANs and GVRP GVRP ...
Page 480: ...C 38 Troubleshooting Restoring a Flash Image ...
Page 486: ...D 6 MAC Address Management Determining MAC Addresses ...
Page 490: ......
Page 502: ...12 Index ...
Page 503: ......