You can configure IP addresses for your network interface during system setup. To configure the IP addresses later, you should use the ifconfig command. You can configure both IPv4 and IPv6 addresses for a network interface.
About this task
- Network configuration changes made by using the ifconfig command are not automatically included in the /etc/rc file. To make the configuration changes persistent after reboots, include the ifconfig command in the /etc/rc file.
- When you configure an IP address, your storage system creates a network mask based on the class of the address (Class A, B, C, or D) by default.
- To configure an IP address for a network interface, enter the following command: ifconfig interface_name IP_address
interface_name is the name of the network interface.
IP_address is the IP address that you want to assign to the network interface.
To configure a quad-port Ethernet interface e3a to use the IPv4 address 192.0.2.10, enter the following command: ifconfig e3a 192.0.2.10
To configure a quad-port Ethernet interface e3a to use the IPv6 address 2001:0db8:35ab:0:8a2e:0:0370:85, enter the following command: ifconfig e3a 2001:0db8:35ab:0:8a2e:0:0370:85