JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Transitioning From Oracle Solaris 10 to Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Transitioning From Oracle Solaris 10 to an Oracle Solaris 11 Release (Overview)

2.  Transitioning to an Oracle Solaris 11 Installation Method

3.  Managing Devices

4.  Managing Storage Features

5.  Managing File Systems

6.  Managing Software and Boot Environments

7.  Managing Network Configuration

Network Configuration Feature Changes

How the Network Is Configured in Oracle Solaris

How the Network Is Configured During an Installation

Network Configuration Commands

Managing Network Configuration in Fixed Mode

Displaying and Configuring Datalinks in Fixed Mode

Configuring IP Interfaces and Addresses in Fixed Mode

Configuring Naming Services in Fixed Mode

resolv.conf Error-Checking Capabilities

Temporarily Resetting SMF Naming Services

Importing Naming Services Configuration

How to Use a Legacy nsswitch.conf File

Configuring LDAP in Fixed Mode

Managing Network Configuration in Reactive Mode

Configuring Naming Services in Reactive Mode

Configuring LDAP in Reactive Mode

Creating Persistent Routes (Fixed and Reactive)

Configuring IPMP in Oracle Solaris 11

Managing Network Configuration From the Desktop

Network Configuration and Administration Commands (Quick Reference)

8.  Managing System Configuration

9.  Managing Security

10.  Managing Oracle Solaris Releases in a Virtual Environment

11.  Managing User Accounts and User Environments

12.  Managing Desktop Features

A.  SPARC Automated Installation Scenario

Network Configuration and Administration Commands (Quick Reference)

The following table describes the commands that are used to manage network configuration in both fixed and reactive mode.


Note - Starting with Oracle Solaris 11.1, you can use fixed networking commands to manage reactive NCPs, provided that the NCP is currently active. The command usage in the following table reflects this change.


Table 7-2 Commands That Are Used to Configure and Administer the Network

Configuration/Administration Task
Commands to Use in Reactive Mode
Commands to Use in Fixed Mode
Switch network configuration modes (enable or disable an NCP or a Location profile).
Enable the Automatic NCP: netadm enable -p ncp Automatic

Enable any reactive NCP: netadm enable -p ncp ncp-name

Enable a Location: netadm enable -p loc loc-name

Enable the DefaultFixed NCP: netadm enable -p ncp DefaultFixed
List the status of all network profiles on a system.
netadm list
netadm list
Configure link properties.
netcfg "create ncp ncp-name; create ncu phys ncu-name; set property=value
dladm set-linkprop -p property= value link
Configure IP interfaces.
netcfg "create ncp ncp-name; create ncu ip ncu-name; set property=value
ipadm create-ip interface
Configure IP addresses.
Static IP: netcfg "select ncp ncp-name; select ncu ip ncu-name; set ipv4–addrsrc=static; set ipv4–addr=1.1.1.1/24"

DHCP: netcfg "create ncp ncp-name; create ncu ip ncu-name; set ipv4–addrsrc=dhcp"

IPv4 or IPv6 static address: ipadm create-addr -T static -a IP-address address-object

IPv4 DHCP address: ipadm create-addr -T dhcp address-object

Auto-generated IPv6 address based on a system's MAC address: ipadm create-addr -T addrconf address-object

Set the netmask property.
  • For the Automatic NCP: The DHCP server assigns the netmask property.
  • For other reactive NCPs: This property is set by using the netcfg command and is assigned as part of the static IP address. To assign the property, append the end of the IP address with address/prefixlen (192.168.1.1/24).

View the netmask property: ipadm show-addr

This property is set by using the ipadm command, as part of the static IP address assignment. To assign the property, append the end of the IP address with address/prefixlen (192.168.1.1/24).

See How to Configure an IP Interface in Oracle Solaris Administration: Network Interfaces and Network Virtualization.

View the netmask property: ipadm show-addr

Modify existing network configuration.
Configure link properties: netcfg "select ncp ncp-name; select ncu phys ncu-name; set property=value

Configure an IP interface: netcfg "select ncp ncp-name; select ncu ip ncu-name; set property=value

dladm set-linkprop -p property=value link

ipadm set-prop [-t] -p prop=value[,...] protocol

ipadm set-addrprop [-t] —p prop=value[,...] addrobj

ipadm set-ifprop -p property=value interface

ipadm set-prop -p property=value -m protocol interface

ipadm set-addrprop -p property=value addrobj

Configure or modify naming services (NIS and DNS).
Configure DNS from DHCP: netcfg "create loc loc-name ; set dns-nameservice-configsrc=dhcp"

Manually configure DNS: netcfg "create loc loc-name; set dns-nameservice-configsr=static; set dns-nameservice-servers=1.1.1.1; set dns-nameservice-search=foo.com"

For an existing Location: netcfg "select..."

Set parameters for naming services: svccfg and svcadm
Configure LDAP.
Only LDAP anonymous mode works when in reactive mode. To use an LDAP proxy or LDAP self-modes, enable the DefaultFixed NCP.
ldapclient or SMF commands to select LDAP.
Configure default route.
For any reactive NCP: netcfg "select ncp ncp-name; select ncu ip ncu-name; set ipv4–default-route=1.1.1.1"

Persistently set a default route: route -p add default routerIP-address

Persistently set a default route: route -p add default routerIP-address

Set any persistent route: route -p add -net nIP-address -gateway gIP-address

Display default route.
netstat -rn displays all of the active routes currently in use by the kernel, regardless of how the route was configured

For any reactive NCP configured with a single, per-interface default route: netcfg "select ncp ncp-name; select ncu ip ncu-name; get ipv4–default-route"

route -p show displays all of the static routes that are associated with the currently active NCP, if it was added with the route -p add command

netstat -rn displays all of the active routes currently in use by the kernel, regardless of how the route was configured

route -p show displays all of the static routes that are associated with the currently active NCP, if it was added with the route -p add command

Configure host name (nodename).
When the Automatic NCP is enabled, the SMF service property is only set if the DHCP server does not provide a value for the nodename/hostname option (DHCP standard option code 12). See nodename(4)
Oracle Solaris 11: svccfg -s sets the config/nodename property of the svc:system/identity:node SMF service to the desired name.

Oracle Solaris 11.1: Use the hostname command. See hostname(1).

Import naming service configuration.
Configured in the Locations profile.
/usr/sbin/nscfg import -f FMRI

nsccfg exports existing legacy files into the SMF repository.

Unconfigure and reconfigure a system (including all network configuration).
Unconfigure an Oracle Solaris instance: sysconfig unconfigure system

Reconfigure an Oracle Solaris instance: sysconfig configure system