UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 10th, 2005, 11:08 AM
eia_hunter eia_hunter is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Arky-Saw, USA
Posts: 27 eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 41 m 41 sec
Reputation Power: 0
Send a message via MSN to eia_hunter
Incorrect Netmask

I have a Sun Ultra-250 machine running Solaris 10 that uses DHCP to receive a 'sticky', public IP address. The problem I'm facing is that every time I reboot the box, it sets an incorrect netmask. This problem started occuring since my department changed their netmask; the box would keep setting to the old netmask, as if it's cached somewhere.

I've checked the box's reservation on the DHCP server (a Windows Server 2003 box), but it shows the correct netmask. I doubt it's a problem on the DHCP server because every other reserved box (some are Solaris 9) sets the correct IP parameters.

I have tried adding the following entry in /etc/netmasks:
x.x.x.0 255.255.254.0
But the box sets 255.255.240.0 instead.

I've also tried explicitly defining the broadcast address on the DHCP server for the box, but the box continues setting the broadcast address based on the old netmask.

Reply With Quote
  #2  
Old November 10th, 2005, 02:04 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,730 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 23 h 22 m 53 sec
Reputation Power: 375
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
First, what is the PARAM_REQUEST_LIST in /etc/default/dhcpagent? It should contain at least a "1". The default is "1,3,6,12,15,28,43".

Next, what is the output of "dhcpinfo -c 1"? This is your netmask in hex. Mine prints:

0xFF
0xFF
0xFF
0x00

I'd presume that the third line of yours should be 0xFE. If it isn't then perhaps the server is sending the wrong netmask for just this Ethernet address?

Lastly, is this machine also configured to be a DHCP server? I've enabled that by mistake and things have been really weird in my network.
Comments on this post
eia_hunter agrees: This led me in the right direction. Too bad I have no points to give.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

Reply With Quote
  #3  
Old November 11th, 2005, 09:00 AM
eia_hunter eia_hunter is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Arky-Saw, USA
Posts: 27 eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level)eia_hunter User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 41 m 41 sec
Reputation Power: 0
Send a message via MSN to eia_hunter
Well, I feel like a newbie. The box wasn't even using DHCP; dhcpagent wasn't running.

So, I touched /etc/dhcp.interface, causing dhcpagent to startup and set the box to the correct IP parameters.

FYI, PARAM_REQUEST_LIST is set to the default and "dhcpinfo -c 1" now returns
0xFF
0xFF
0xFE
0x00
instead of 'Connection refused'. Also, the DHCP server on the Solaris 10 box was never running.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Incorrect Netmask


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT