Table of ContentsView in Frames

Configuring an IP address for a network interface

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

Step

  1. 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.
    Example

    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