JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Administration: Network Interfaces and Network Virtualization     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

Part I Network Auto-Magic

1.  Introduction to NWAM

2.  NWAM Configuration and Administration (Overview)

3.  NWAM Profile Configuration (Tasks)

4.  NWAM Profile Administration (Tasks)

5.  About the NWAM Graphical User Interface

Part II Administering Single Interfaces

6.  Overview of the Networking Stack

7.  Datalink Configuration and Administration

8.  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

The ipadm Command

Configuring IP Interfaces

How to Configure an IP Interface

Setting IP Address Properties

How to Set the Property of an IP Address

Setting IP Interface Properties

Enabling Packet Forwarding

Administering Protocol Properties

Setting TCP/IP 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

Comparison Tables: ipadm Command and Other Networking Commands

ifconfig Command Options and ipadm Command Options

ndd Command Options and ipadm Command Options

9.  Configuring Wireless Interface Communications on Oracle Solaris

Part III Administering Interface Groups

10.  Administering Bridges

11.  Administering Link Aggregations

12.  Administering VLANs

13.  Introducing IPMP

14.  Administering IPMP

Part IV  Network Virtualization and Resource Management

15.  Introducing Network Virtualization and Resource Control (Overview)

16.  Planning for Network Virtualization and Resource Control

17.  Configuring Virtual Networks (Tasks)

18.  Using Link Protection in Virtualized Environments

19.  Managing Network Resources

20.  Monitoring Network Traffic and Resource Usage

Glossary

Index

Comparison Tables: ipadm Command and Other Networking Commands

The ipadm command is the preferred tool to use for all configuration tasks on IP interfaces. This command replaces the commands in previous releases that were used for network configuration, such as the ifconfig and ndd commands. The following tables list selected command options of these previous tools and their equivalents in the ipadm command.


Note - These tables do not provide a comprehensive list of ipadm options. For a full list, see ipadm(1M) man page.


ifconfig Command Options and ipadm Command Options

The following table shows the ifconfig command options and the approximate corresponding ipadm subcommands.

Table 8-3 Syntax Mapping Between the ifconfig and ipadm Commands

ifconfig Command
ipadm Command
plumb/unplumb
ipadm create-if

ipadm delete-if

[address[/prefix-length] [dest-address]] [addif address[prefix-length]] [removeif address[prefix-length]][netmask mask][destination dest-address]{auto-dhcp|dhcp}[primary][wait seconds]extend | release | start
ipadm create-addr -T static

ipadm create-addr -T dhcp

ipadm create-addr -T addrconf

ipadm show-addr

ipadm delete-addr

ipadm refresh-addr

[deprecated | -deprecated] [preferred | -preferred] [private | -private] [zone zonename | -zones | -all-zones][xmit | -xmit]
ipadm set-addprop

ipadm show-addprop

up
ipadm up-addr
down
ipadm down-addr
[metric n] [mtu n] [nud | -nud] [arp | -arp] [usesrc [name | none] [router | -router]
ipadm set-ifprop

ipadm show-ifprop

ipadm reset-ifprop

[ipmp] [group [name | ""]] standby | -standby] [failover | -failover]
Equivalent subcommands currently unavailable.
[tdst tunnel-dest-addr] [tsrc tunnel-srcs-addr] [encaplimit n| -encaplimit] [thoplimit n]
[auth_algs authentication algorithm] [encr_algs encryption algorithm] [encr_auth_algs encryption authentication algorithm]
[auth_revarp] [ether [address]] [index if-index] [subnet subnet-address] [broadcast broadcast-address] [token address/prefix-length]

dhcp options – inform, ping, release, status, drop

Equivalent subcommands currently unavailable.
modlist] [modinsert mod_name@pos] [modremove mod_name@pos]
Equivalent subcommands currently unavailable.

ndd Command Options and ipadm Command Options

The following table shows the ndd command options and the approximate corresponding ipadm subcommands.

Table 8-4 Syntax Mapping Between the ndd and ipadm Commands

ndd Command
ipadm Command
Retrieving Properties
bash-3.2# ndd -get /dev/ip ?
ip_def_ttl         (read and write)
ip6_def_hops       (read and write)
ip_forward_directed_broadcasts
                   (read and write)
ip_forwarding      (read and write)
...
...

bash-3.2# ndd -get /dev/ip \
ip_def_ttl
100
bash-3.2# ndd -get /dev/ip \
ip6_def_hops
255
bash-3.2# ndd -get /dev/tcp ?
tcp_cwnd_max       (read and write)
tcp_strong_iss     (read and write)
tcp_time_wait_interval
                   (read and write)
tcp_tstamp_always  (read and write)
tcp_tstamp_if_wscale
                   (read and write)
...
...

bash-3.2# ndd -get /dev/tcp ecn
1

bash-3.2# ndd -get /dev/tcp sack
2
bash-3.2# ipadm show-prop ip
PROTO PROPERTY     PERM   CURRENT  PERSISTENT   DEFAULT   POSSIBLE
ipv4  forwarding   rw     off      --           off       on,off
ipv4  ttl          rw     255      --           255       1-255
ipv6  forwarding   rw     off      --           off       on,off
ipv6  hoplimit     rw     255      --           255       1-255
...


bash-3.2# ipadm show-prop -p ttl,hoplimit ip
PROTO PROPERTY   PERM   CURRENT   PERSISTENT   DEFAULT   POSSIBLE
ipv4  ttl        rw     255       --           255       1-255
ipv6  hoplimit   rw     255       --           255       1-255

bash-3.2# ipadm show-prop tcp
PROTO PROPERTY        PERM CURRENT PERSISTENT DEFAULT    POSSIBLE
tcp   ecn             rw   passive --         passive    never,passive,
                                                         active
tcp   extra_          rw   2049    2049,4045  2049,4045  1-65535
      priv_ports
tcp   largest_        rw   65535   --         65535      1024-65535
      anon_port
tcp   recv_           rw   128000  --         128000     2048-1073741824
      maxbuf
tcp   sack            rw   active  --         active     never,passive,
                                                         active
tcp   send_           rw   49152   --         49152      4096-1073741824
      maxbuf
tcp   smallest_       rw   32768   --         32768      1024-65535
      anon_port
tcp   smallest_       rw   1024    --         1024       1024-32768
      nonpriv_port
...
...
...
bash-3.2# ipadm show-prop -p ecn,sack tcp
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT  POSSIBLE
tcp   ecn      rw   passive --         passive  never,passive,active
tcp   sack     rw   active  --         active   never,passive,active
Setting Properties
bash-3.2# ndd -set /dev/ip \
ip_def_ttl
64
bash-3.2# ndd -get /dev/ip \
ip_def_ttl
64
bash-3.2# ipadm set-prop -p ttl=64 ipv4
bash-3.2# ipadm show-prop -p ttl ip
PROTO PROPERTY FAMILY PERM VALUE DEFAULT POSSIBLE
ip    ttl      inet   rw   64    255     1-255
PROTO   PROPERTY   PERM   CURRENT   PERSISTENT   DEFAULT   POSSIBLE
ipv4    ttl        rw     64        64           255       1-255
bash-3.2# ipadm reset-prop -p ttl ip
bash-3.2# ipadm show-prop -p ttl ip
PROTO   PROPERTY   PERM   CURRENT   PERSISTENT   DEFAULT   POSSIBLE
ipv4    ttl        rw     255       255          255       1-255