On 03/26/09 11:43, [email protected] wrote:
To summarize,
the model being proposed is
- ipadm create-interface will only create a "virtual object" with
no underlying plumbing done at the time..
- ipadm add-address will plumb as needed.
IPv6: turnin gon ADDRCONF (and/or dhcpv6)
Well with the above model bringing up an IPv6 interface (with neighbor
discovery and dhcpv6) would now need two commands. First use ipadm
create-interface and then ipadm add-address. This is highly undesirable
for an end user configuring a system for IPv6 (given that 'ifconfig' did
it one go).
The better thing to do is to always "plumb" both IPv4 and IPv6 with
'ipadm create-interface'. If there is someone who does not like this
then he could use an "optional [-f]" flag to specify what interface he
needs.
Jim Carlson, Ken Powell and
I were just having a hallway conversation about various solutions
possible for this.. one interesting point that Jim brought up is
that the target of "add-address" should be the "address" and not the
interface (just as the target of 'dladm create-secobj' is the secobj).
....
Some examples that Jim and I discussed are desdribed below. Here the
"address" is identified as <interface>:<numeric tag>, so the interface
is embedded in the address. Eventually each of these commands should
support an alpha-numeric tag, but a starting point would be numeric tags..
Though it's nice thing to provide address tagging (punchin address, SWAN
address, et al). It is definitely out of scope for the first minor
release of the product. However our current design provides a provision
to include address tags and can be implemented as a RFE in future.
# ipadm add-address [-t] [-f <inet|inet6>] [-l <address_tag>] [-o
options] -i <interface> <address>
For now the <address_tag> would be logical number, an integer. In future
when we plan for vanity naming addresses, we could extend the above
option to accommodate it.
To modify an address flag or address itself, we can use the following.
# ipadm modify-address -l <address_tag> -i <interface> new_address
the -l and -i pair would identify the address we need to modify and will
replace the old address with new_address.
thanks
~Girish
_______________________________________________
networking-discuss mailing list
[email protected]