Skip Navigation Links | |
Exit Print View | |
Connecting Systems Using Fixed Network Configuration in Oracle Solaris 11.1 Oracle Solaris 11.1 Information Library |
1. Overview of Fixed Network Configuration
2. Configuring a System for the Network
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
Setting TCP/IP Protocol Properties
Enabling Packet Forwarding Globally
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
The ipadm command enables you to set IP address-specific properties after these addresses are assigned to interfaces. By setting these properties, you can determine the following:
The netmask length
Whether an IP address can be used as a source address for outbound packets
Whether the address belongs to a global or non–global zone
Whether the address is a private address
You use the following ipadm subcommands when working with IP address properties:
The ipadm show-addrprop [-p property] [addrobj] subcommand displays address properties depending on the options that you use.
To list the properties of all IP addresses, do not specify a property or an address object. To list the values of a single property for all IP addresses, specify only that property. To list all the properties of a specific address object, specify only the address object.
The ipadm set-addrprop -p property=value addrobj subcommand assigns values to address properties. Note that you can only set one address property at a time.
The ipadm reset-addrprop -p property addrobj subcommand restores any default values to the address property.
Note - If you want to change the IP address of a specific interface, do not use the set-addressprop subcommand. Instead, delete the address object and create a new one with the new IP address. See Removing an Interface's Address (ipadm delete-addr).
As an example, suppose you want to change the netmask of an IP address. The IP address is configured on the IP interface net3and is identified by the address object name net3/v4. The following commands show how to revise the netmask:
# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/? static ok 127.0.0.1/8 net3/v4 static ok 192.168.84.3/24 # ipadm show-addrprop -p prefixlen net3/v4 ADDROBJ PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE net3/v4 prefixlen rw 24 24 24 1-30,32 # ipadm set-addrprop -p prefixlen=8 net3/v4 # ipadm show-addrprop -p prefixlen net3/v4 ADDROBJ PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE net3/v4 prefixlen rw 8 24 24 1-30,32