You might want to have a look at the documentation I wrote for my
ethernet drivers.  Its at

http://sol-enet.sourceforge.net/GUIDE.html

or if you prefer PDF:

http://sol-enet.sourceforge.net/GUIDE.pdf

You'll need to rip out the references to etherdiag (which was a utility
I shipped for my ethernet drivers, but which I'm no longer providing
since dladm and ndd provide most of the same functionality), but some of
the other bits may be useful.

        -- Garrett

On Fri, 2007-08-17 at 21:06 -0500, Mike Gerdts wrote:
> On 8/17/07, Brandorr <[EMAIL PROTECTED]> wrote:
> > Is there an OpenSolaris networking FAQ? Also, I am working on a FAQ
> > for new users, and would like to know if a) I am missing any common
> > networking questions, and b) my answers are correct.
> >
> > http://www.genunix.org/wiki/index.php/FAQ_Prototype#Networking
> 
> The "primary IP address" question doesn't really have the right
> answer.  hostname(1) does not return an IP address and as best as I
> can tell, there is no such notion of a primary IP address.
> 
> The best approximation for a good answer on a reasonably configured
> single-interface system would be:
> 
> getent hosts `hostname` | awk '{print $1}'
> 
> But that assumes that the system is reasonably configured and that
> people agree with me on what is reasonable and that you don't have
> multiple interfaces.
> 
> I *wish* I could tell Solaris what its primary interface is.  This is
> a common pain point when many physical and virtual interfaces exist
> and authorization (firewall, NFS, etc.) is performed
> by IP address.
> 
> Mike
> 

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to