| Author |
Message |
Gary *nix forums addict
Joined: 17 May 2005
Posts: 58
|
Posted: Thu Jul 20, 2006 10:27 pm Post subject:
Simple ?? NIS problem
|
|
|
I'm *trying* to set up a /var/yp/securenets file on Solaris 10
when I do set one up NIS won't start /var/adm/messages gives the error
/usr/lib/netsvc/yp/ypserv: /var/yp/securenets line 1: netmask does not
match network
/var/yp/securenets
255.255.255.0 192.168.8.0
/etc/netmasks
192.168.8.0 255.255.255.0
ifconfig hme0
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.8.2 netmask ffffff00 broadcast 192.168.8.255
ether 8:0:20: ....
Google doesn't come up with anything relevant, I know this one has to be
simple, so any pointers anyone ??
Thanks as always
Jim |
|
| Back to top |
|
 |
Andrew Gabriel *nix forums Guru
Joined: 19 Feb 2005
Posts: 454
|
Posted: Thu Jul 20, 2006 10:56 pm Post subject:
Re: Simple ?? NIS problem
|
|
|
In article <ErTvg.16336$v02.9924@newsfe3-gui.ntli.net>,
Jim <me@here.com> writes:
| Quote: | I'm *trying* to set up a /var/yp/securenets file on Solaris 10
when I do set one up NIS won't start /var/adm/messages gives the error
/usr/lib/netsvc/yp/ypserv: /var/yp/securenets line 1: netmask does not
match network
/var/yp/securenets
255.255.255.0 192.168.8.0
/etc/netmasks
192.168.8.0 255.255.255.0
|
Try using the command: getent netmasks 192.168.8.0
to see if this is the netmask entry the system is now
using. There might be a naming service overriding this
entry once it gets started.
--
Andrew Gabriel |
|
| Back to top |
|
 |
Gary *nix forums addict
Joined: 17 May 2005
Posts: 58
|
Posted: Fri Jul 21, 2006 10:05 am Post subject:
Re: Simple ?? NIS problem
|
|
|
Andrew Gabriel wrote:
| Quote: | In article <ErTvg.16336$v02.9924@newsfe3-gui.ntli.net>,
Jim <me@here.com> writes:
I'm *trying* to set up a /var/yp/securenets file on Solaris 10
when I do set one up NIS won't start /var/adm/messages gives the error
/usr/lib/netsvc/yp/ypserv: /var/yp/securenets line 1: netmask does not
match network
/var/yp/securenets
255.255.255.0 192.168.8.0
/etc/netmasks
192.168.8.0 255.255.255.0
Try using the command: getent netmasks 192.168.8.0
to see if this is the netmask entry the system is now
using. There might be a naming service overriding this
entry once it gets started.
Thanks for the quick reply Andrew |
# getent netmasks 192.168.8.0
192.168.8.0 255.255.255.0
hmmm I'm glad this isn't production :-)
Thanks
Jim |
|
| Back to top |
|
 |
Casper H.S. Dik *nix forums Guru
Joined: 20 Feb 2005
Posts: 1634
|
Posted: Fri Jul 21, 2006 12:20 pm Post subject:
Re: Simple ?? NIS problem
|
|
|
Jim <me@here.com> writes:
| Quote: | I'm *trying* to set up a /var/yp/securenets file on Solaris 10
when I do set one up NIS won't start /var/adm/messages gives the error
/usr/lib/netsvc/yp/ypserv: /var/yp/securenets line 1: netmask does not
match network
/var/yp/securenets
255.255.255.0 192.168.8.0
|
Is there an empty line in this file?
The error message is the result of a failed compare of:
mask & addr == addr
It has nothing to do with /etc/netmasks as that is not used.
Casper |
|
| Back to top |
|
 |
Gary *nix forums addict
Joined: 17 May 2005
Posts: 58
|
Posted: Fri Jul 21, 2006 12:52 pm Post subject:
Re: Simple ?? NIS problem
|
|
|
Casper H.S. Dik wrote:
| Quote: | Jim <me@here.com> writes:
I'm *trying* to set up a /var/yp/securenets file on Solaris 10
when I do set one up NIS won't start /var/adm/messages gives the error
/usr/lib/netsvc/yp/ypserv: /var/yp/securenets line 1: netmask does not
match network
/var/yp/securenets
255.255.255.0 192.168.8.0
Is there an empty line in this file?
The error message is the result of a failed compare of:
mask & addr == addr
It has nothing to do with /etc/netmasks as that is not used.
Casper
|
Thanks yet again Casper !
cd /var/yp
vi securenets
dd
:wq
and all is fine with the world !
At least I was right in one respect, it was stupidly simple.
Thanks again
Jim |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|