DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th November 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Thanked 2 Times in 2 Posts
Default Static IP address problem

At work when ever I assign static IP to my system "/etc/rc.d/sendmail" script takes very long (up to 30 to 50 seconds) to execute but it hardly takes a second when system gets its IP from DHCP server.

Any input on what could be going wrong. Im able to access the network just fine in either case.
Reply With Quote
  #2   (View Single Post)  
Old 25th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

My guess is sendmail wants the forward and reverse lookups to work properly. Are there DNS records for your static IP? If so, are you assigning both the static IP and the FQ hostname to your system?
__________________
Kill your t.v.
Reply With Quote
  #3   (View Single Post)  
Old 25th November 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

When you use DHCP, more than just the IP address is assigned. The default route is also assigned, as well as at least the primary DNS server.

If you do it manually, you have to be sure to do those things as well. Set the default route using # route add default 1.2.3.4 and add nameserver 2.3.4.5 to /etc/resolv.conf.

You'll also want to make sure you have an entry in /etc/hosts that gives your IP a hostname; the same one that sendmail will be using. Unless there's already forward and reverse mappings done on the network's DNS servers, for the IP/hostname you are using.

(Where 1.2.3.4 is the local IP of your router, and 2.3.4.5 is the IP of your network's primary DNS server.)
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Tags
sendmail script, static ip

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
snd_emu10k1 and static kly FreeBSD General 3 17th September 2009 01:28 PM
MAC address to IP rex FreeBSD General 9 11th November 2008 07:06 PM
Asking about IPv6 address berlowin Off-Topic 2 9th July 2008 02:39 AM
Cannot assign static IP. bsdnewbie999 OpenBSD General 5 21st June 2008 09:50 AM
dhcpd problems... dynamic and static leases present edhunter FreeBSD General 7 16th May 2008 02:34 PM


All times are GMT. The time now is 04:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick