Besides making it easier to set up and manage interfaces by using ipadm instead of ifconfig and/or editing various files in /etc it will also make it much easier to get a overview of all addresses and interfaces on a host. A think that directly strikes me is that it will now be possible (without complicated regular expressions) to easy parse parse addresses and other information from active IP interfaces. Ifconfig does not provide the best output for parsing. All this will soon be available for testing in a development build (b137).
Example:
Set up an persistent new persistent address on e1000g0 and viewing it:
# ipadm create-addr -i e1000g0 192.168.0.242/24PSARC 2009/306 Brussels II - ipadm and libipadm
# ipadm show-addr
INTF ORIGIN STATE ZONES FLAGS ADDR/MASK
e1000g0 static ok global U-p 192.168.0.242/24
PSARC 2010/080 Brussels II addendum
6827318 Brussels Phase II aka ipadm(1m)
No comments:
Post a Comment