niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Solaris
Simple ?? NIS problem
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Gary
*nix forums addict


Joined: 17 May 2005
Posts: 58

PostPosted: Thu Jul 20, 2006 10:27 pm    Post subject: Simple ?? NIS problem Reply with 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

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

PostPosted: Thu Jul 20, 2006 10:56 pm    Post subject: Re: Simple ?? NIS problem Reply with quote

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

PostPosted: Fri Jul 21, 2006 10:05 am    Post subject: Re: Simple ?? NIS problem Reply with quote

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

PostPosted: Fri Jul 21, 2006 12:20 pm    Post subject: Re: Simple ?? NIS problem Reply with quote

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

PostPosted: Fri Jul 21, 2006 12:52 pm    Post subject: Re: Simple ?? NIS problem Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:05 pm | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Computeach | Mortgages | Books | Debt Consolidation | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4620s ][ Queries: 16 (0.3739s) ][ GZIP on - Debug on ]