Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Network Interfaces and Network Virtualization Oracle Solaris 11 Information Library |
1. Overview of the Networking Stack
Network Configuration in This Oracle Solaris Release
The Network Stack in Oracle Solaris
Network Devices and Datalink Names
Administration of Other Link Types
3. NWAM Configuration and Administration (Overview)
4. NWAM Profile Configuration (Tasks)
5. NWAM Profile Administration (Tasks)
6. About the NWAM Graphical User Interface
Part II Datalink and Interface Configuration
7. Using Datalink and Interface Configuration Commands on Profiles
8. Datalink Configuration and Administration
9. Configuring an IP Interface
About IP Interface Configuration
IP Interface Configuration (Tasks)
SPARC: How to Ensure That the MAC Address of an Interface Is Unique
How to Configure an IP Interface
How to Set the Property of an IP Address
Setting IP Interface Properties
Administering Protocol Properties
How to Restrict a Port's Access to root User Only
How to Implement Symmetric Routing on Multihomed Hosts
Monitoring IP Interfaces and Addresses
How to Obtain Information About Network Interfaces
Troubleshooting Interface Configuration
The ipadm command does not work.
IP address cannot be assigned with the ipadm create-addr command.
Comparison Tables: ipadm Command and Other Networking Commands
ifconfig Command Options and ipadm Command Options
ndd Command Options and ipadm Command Options
10. Configuring Wireless Interface Communications on Oracle Solaris
12. Administering Link Aggregations
16. Exchanging Network Connectivity Information With LLDP
Part III Network Virtualization and Resource Management
17. Introducing Network Virtualization and Resource Control (Overview)
18. Planning for Network Virtualization and Resource Control
19. Configuring Virtual Networks (Tasks)
20. Using Link Protection in Virtualized Environments
21. Managing Network Resources
This section discusses common problems that you might encounter while using the ipadm command to configure IP interfaces.
Manual IP interface configuration with the dladm and ipadm commands work only on fixed-type network configuration profiles (NCP), such as DefaultFixed. If the active NCP in the system is an automatic-type profile, switch to a fixed-type profile before using the dladm and ipadm commands.
# netadm list TYPE PROFILE STATE ncp DefaultFixed disabled ncp Automatic online loc Automatic offline loc NoNet offline ... # netadm enable -p ncp defaultfixed
With the traditional ifconfig command, you can plumb and assign an IP address with a single command syntax. When using the ipadm create-addr command to configure an IP address, you must first create the IP interface with a separate command.
# ipadm create-ip interface # ipadm create-addr -T addr-type -a address addrobj
The address object identifies a specific IP address bound to an IP interface. The address object is a unique identifier for each IP address on the IP interface. You must specify a different address object to identify a second IP address that you want to assign to the same IP interface. If you want to use the same address object name, then you must delete the first instance of the address object before assigning it to identify a different IP address.
# ipadm show-addr ADDROBJ TYPE STATE ADR lo0 static ok 127.0.0.1/10 net0/v4 static ok 192.168.10.1 # ipadm create-addr -T static -a 192.168.10.5 net0/v4b
or
# ipadm show-addr ADDROBJ TYPE STATE ADR lo0 static ok 127.0.0.1/10 net0/v4 static ok 192.168.10.1 # ipadm delete-addr net0/v4 # ipadm create-addr -T static -a 192.168.10.5 net0/v4
The ipadm command creates persistent configuration. If the IP interface that you are configuring was created as a temporary interface, then you cannot use the ipadm command to configure persistent settings on the interface. After you verify that an interface that you are configuring is temporary, delete that interface, re-create it as a persistent object, then resume configuring.
# ipadm show-if -o all IFNAME CLASS STATE ACTIVE CURRENT PERSISTENT OVER lo0 loopback ok yes -m46-v------ 46-- -- net0 ip ok yes bm4--------- ---- --
The absence of the 4 flag for IPv4 configuration or 6 flag for IPv6 configuration on the PERSISTENT field indicates that net0 was created as a temporary interface.
# ipadm delete-ip net0 # ipadm create-ip net0 # # ipadm create-addr -T static -a 192.168.1.10 net0/v4