ольга крыжановская wrote:
> 2010/4/7 ольга крыжановская <[email protected]>:
>> I've configured Opensolaris b134 on i636 with manual network
>> configuration, i.e. created /etc/hostname.e1000g, added
> 
> Should be: /etc/hostname.e1000g0 This was a spelling error in my mail.
> 
>> /etc/defaultrouter, added SXCE like entries in /etc/hosts.
>> But if the system boots e1000g stays down and always needs a manual
>> ifconfig e1000g0 up.
>> What am I missing?

Do you have multiple lines in your /etc/hostname.e1000g0 file?

An ancient "feature" of /etc/hostname.* files is that if the file
contains a single line (or no text at all), then the system
automatically adds "netmask + broadcast + up" to the end of the line
when it feeds it to ifconfig.  But if the file has multiple lines, those
lines are fed to ifconfig as command-line options without modification.

Thus, if you have multiple lines in /etc/hostname.* on purpose, you need
to have "up" at the end of each line ... for those lines where you do
intend to have the interface up after configuration is complete.  (There
are cases where it's helpful to have a configured down interface ...)

-- 
James Carlson         42.703N 71.076W         <[email protected]>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to