JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Connecting Systems Using Fixed Network Configuration in Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Overview of Fixed Network Configuration

2.  Configuring a System for the Network

3.  Working With Datalinks

4.  Working With IP Interfaces

Basic ipadm Commands

Removing an IP Interface Configuration (ipadm delete-ip)

Disabling an IP Interface Configuration (ipadm disable-ip)

Removing an Interface's Address (ipadm delete-addr)

Setting IP Interface Properties

Enabling Packet Forwarding

Setting IP Address Properties

Setting TCP/IP Protocol Properties

Enabling Packet Forwarding Globally

Setting Up a Privileged Port

Implementing Symmetric Routing on Multihomed Hosts

Implementing Traffic Congestion Control

Changing the TCP Receive Buffer Size

Monitoring IP Interfaces and Addresses

Obtaining General Information About IP Interfaces

Obtaining Information About IP Interfaces

Obtaining Information About IP Interface Properties

Obtaining Information About IP Addresses

Obtaining Information About IP Address Properties

5.  Configuring Wireless Networking on Laptops Running Oracle Solaris

A.  Comparison Map: ifconfig and ipadm Commands

B.  Comparison Map: ndd and ipadm Commands

Index

Basic ipadm Commands

In How to Configure an IP Interface, the three principal ipadm subcommands were introduced:

This section describes other selected uses of the ipadm command on IP interfaces. The list is not exhaustive. For a complete description of the ipadm command and all possible subcommands and options, see the ipadm(1M) man page.

Removing an IP Interface Configuration (ipadm delete-ip)

Use this command to remove a configured IP interface over a datalink. This command is particularly important when you are preforming certain datalink configurations. For example, renaming a datalink fails if IP interfaces are configured over that datalink. You must issue the ipadm delete-ip first before you rename the datalink.

Typically, this command is used together with other ipadm and dladm subcommands, such as changing the system's primary interface. This task would require you to delete the interface, rename the link, and then reconfigure the interface over the renamed datalink. The sequence is as follows:

# ipadm delete-ip interface
# dladm rename-link old-name new-name
# ipadm create-ip interface
# ipadm create-address parameters

See the example for changing the primary interface on Renaming a Datalink (dladm rename-link). To reconfigure an IP interface after the datalink has been renamed, see How to Configure an IP Interface.

Disabling an IP Interface Configuration (ipadm disable-ip)

By default, an IP interface is flagged as UP and becomes part of the active configuration when you create the interface with ipadm create-ip. You can remove the interface from active configuration without destroying its configuration by using the ipadm disable-ip subcommand. This command flags the specific interface as DOWN.

# ipadm disable-ip interface

To make the IP interface operational and its flag to be UP, you would type:

# ipadm enable-ip interface

Tip - To display the status of interfaces, use ipadm. See Obtaining Information About IP Interfaces


Removing an Interface's Address (ipadm delete-addr)

This command deletes a specific address configuration of an IP interface. This command is useful when you want to change the IP address of a specific interface. You must remove the original address configuration before assigning a new address configuration. You would perform the following general steps:

# ipadm delete-addr addrobj
# ipadm create-addr parameters

For an example of creating an IP address for an interface, see How to Configure an IP Interface.


Note - An interface can have multiple addresses. Each address is identified by an address object. To ensure that you are removing the correct address, you must know the address object. Use the ipadm show-addr subcommand to display the interface addresses on the system. For an explanation of the address object, see How to Configure an IP Interface. For more information about displaying addresses, see Obtaining Information About IP Addresses