Go to main content
マニュアルページ セクション 5: 標準、環境、マクロ

印刷ビューの終了

更新: 2016年12月6日
 
 

ifconfig (5)

名前

ifconfig, ipadm, dladm - mapping of ifconfig commands to ipadm and dladm utilities

説明

The ifconfig(1M) command has largely been replaced by ipadm(1M). There are also several features that are replaced by dladm(1M), and a few replaced by other commands.

Modern network environments have become more complex, and configuration takes place on many different layers. The ipadm and dladm commands map directly to these layers, and have been designed to be extensible as new features are added. In addition, they have been designed such that the various components are managed in a uniform way; learning to configure a new type of network component should not require learning new command syntax. Finally, these commands also provide configuration persistence across a system reboot.

While the ipadm and dladm commands directly manage network configuration of the zone in which they are run, the global zone administrator can also manage or restrict network configuration within non-global zones using the zonecfg command. Please refer to zonecfg(1M) for more details about this command.

To aid in the transition from ifconfig to the new commands, the following table provides translations from ifconfig options to the appropriate ipadm and dladm subcommands.


注 -  The syntax given in the table is not complete. Full syntax for each ipadm or dladm sub-command can be found by typing ipadm help sub-command or dladm help sub-command on the command-line. For example,
$ ipadm help create-ip

usage:

create-ip [-t] <IP-interface>

ifconfig
Description
ipadm (other) command
ifconfig –a
List all interfaces and their addresses.
ipadm
  • plumb

  • unplumb

Create or delete an IP interface.
  • ipadm create-ip

  • ipadm delete-ip

  • [address]

  • addif

  • removeif

  • netmask

  • destination

Create or delete a static IP address on an interface, with or without an explicit netmask or prefix length.
  • ipadm create-addr –a addr

  • ipadm delete-addr

dhcp[1]
  • wait seconds

  • start

  • drop

  • release

Create or delete DHCP address on an interface, with optional wait time specified.
  • ipadm create-addr –T dhcp [–wseconds]

  • ipadm delete-addr

  • ipadm delete-addr –r

dhcp[1] extend
Extend a DHCP lease.
ipadm refresh-addr
dhcp[1] inform
Obtain configuration parameters from DHCP without obtaining a lease.
ipadm refresh-addr –i
dhcp[1] ping
Check if DHCP is in use on an interface.
ipadm show-addr interface
dhcp[1] status
Display DHCP status.
netstat –D
  • inet6 plumb up

  • token

  • unplumb

Create or delete an auto-configured IPv6 address on an existing interface.
  • ipadm create-addr –T addconf [–i interface-id]

  • ipadm delete-addr

  • [-] deprecated

  • [-] preferred

  • [-] private

  • [-] xmit

zone
–zones
–all-zones
View or set address properties.
  • ipadm show-addrprop

  • ipadm set-addrprop

up
Bring an address up.
ipadm up-addr [implicit in the create-addr command; only needed after an explicit down-addr]
down
Take an address down.
ipadm down-addr
metric
mtu
[-] nud
[-] arp
userrc
[-] router
View or set interface properties.
ipadm show-ifprop
ipadm set-ifprop
ipmp group name
unplumb
Create or delete an IPMP group.
ipadm create-ipmp
ipadm delete-ipmp
group name
Add an interface to an IPMP group.
ipmp add-ipmp –i ifname
[-] standby
Turn on/off standby flag.
ipadm set-ifprop –p standby=on
ipadm set-ifprop –p standby=off
tdst
tsrc
[-]encaplimit
thoplimit
Configure a tunnel link
dladm *–iptun subcommands
ether addr
View or set the hardware address of a link.
dladm show-linkprop –p mac-address
dladm set-linkprop –p mac-address=addr
modlist
modinsert
modremove
View or set modules to be autopushed on a link.
dladm show-linkprop –p autopush
dladm set-linkprop –p autopush=modlist
subnet
broadcast
Set subnet/netmask/broadcast domain.
ipadm set-addrprop –p prefixlen=len
auth_algs
encr_algs
encr_auth_algs
Set IPsec policy for a tunnel link.
ipsecconf
auto-revarp
index
These features are no longer supported.

関連項目

dladm(1M), ifconfig(1M), ipadm(1M), ipsecconf(1M), netstat(1M), zonecfg(1M)