Discussion Locked

Solaris 2.5.1 never picks up netmask

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have 4 Solaris 2.5.1 systems and whenever they are rebooted they never pick up the correct netmask.

I have /etc/inet/netmasks configured but everytime they boot they always come up with a default class B netmask. I can correct this by running ifconfig but it is bugging me nevertheless.

I know about /etc/rc.local and will try this method during the next scheduled downtime (so no points there fellas!)

Cheers for your help

James

9 replies

by joematus

Are you running NIS? If so, then sometimes Sun gets the netmask from /etc/nsswitch.conf.
Check there and set it to files. It sometimes also picks it up in /etc/rc2.d/S72inetsvc if it lives in an NIS map. Another place to check is the
/etc/init.d/rootusr script. Has that been altered?

by joematus

Are you running NIS? If so, then sometimes Sun gets the netmask from /etc/nsswitch.conf.
Check there and set it to files. It sometimes also picks it up in /etc/rc2.d/S72inetsvc if it lives in an NIS map. Another place to check is the
/etc/init.d/rootusr script. Has that been altered?

by ghislain.levesque

Hi,
Verify your file /etc/netmasks and if that's not your problem, it might be because you are using nis. Verify your NIS Server config to reflect reality or change /etc/nsswitch.conf file to pick-up netmask localy...

by kshum

you should check to see if the ifconfig has the option "netmask +". the plus sign is to lookup the mask from it's database. The main script to up the interface is in /etc/init.d/inetsvc.

This discussion is closed to new replies.