HP B-series 16Gb FC Switches Hardware Reference Guide

Using DHCP to set the IP address
When using DHCP, the switch obtains its IP address, subnet mask, and default gateway address
from the DHCP server. The DHCP client can connect only to a DHCP server that is on the same
subnet as the switch. If your DHCP server is not on the same subnet as the switch, use a static IP
address.
Setting a static IP address
1. Use the ipaddrset command to set the Ethernet IP address.
For an IPv4 address, use dotted-decimal notation:
switch :admin> ipaddrset 192.168.74.102
For an IPv6 address, use colon-separated notation:
switch:admin> ipaddrset -ipv6 --add 1080::8:800:200C:417A/64
The following message confirms the change:
IP address is being changed...Done.
2. Provide the following network information:
Ethernet IP address: 192.168.74.102
Ethernet subnet mask: 255.255.255.0
Gateway IP address: 192.168.74.1
3. Verify the IP address by entering the ipaddrshow command at the prompt.
4. Record the IP address on the pull-out tab on the port side of the switch.
5. When prompted, enter off to disable DHCP:
DHCP [OFF]: off
6. If the serial port is no longer required, use the logout command to log out of the serial
console. Remove the serial cable and replace the plug in the serial port.
7. Connect the Ethernet port on the switch to the Ethernet network where the IP address was
assigned.
Setting the date and time
The date and time are maintained by the switch's battery-backed RTC circuit. Incorrect date and
time will not affect switch operation. However, setting the date and time accurately is important
because these values are used for logging, error detection, and troubleshooting.
Setting the date
1. Log in to the switch using the default password, password.
38 Installing and configuring HP 16Gb FC switches