Solved

DHCP in GENTOO

Posted on 2006-07-14
5
1,099 Views
Last Modified: 2008-02-01
after i asigned a public IP to my gentoo box and restart my net.eth0 . i found i cannot visit google until i restart my DHCP daemon. why do i need restart my DHCP? since i manully set my public ip . i own IPs such as 44.55.66.1~255
0
Comment
Question by:llvllar1on
  • 2
  • 2
5 Comments
 
LVL 39

Assisted Solution

by:noci
noci earned 150 total points
ID: 17106639
Which dhcp daemon are taking about:

dhcpcd  - client daemon indeed doesn't make sense.....

dhcpd   - dhcp server well..., if you interface changes state the dhcp daemon cannot work because is is bound to interfaces
              Are you using your dhcp server? if not don't start it. If you are using it, your DHCP box should be stable
              (ip wise) ==> this is a onetime event... the problem being that your dhcp server was started before you finished your IP setup.
              The interface binding might also prevent changes from happening to the interface.


0
 
LVL 24

Assisted Solution

by:slyong
slyong earned 150 total points
ID: 17106910
After you assigned static IP can you try to ping google's ip like 66.249.89.104??  If you can ping but cannot browse, check your /etc/resolv.conf, it should contain your DNSes.. like:

nameserver 111.222.333.441
nameserver 111.222.333.442
0
 

Author Comment

by:llvllar1on
ID: 17109810
the command i used for DHCP  is------------ etc/init.d/DHCPD restart---------------
I have no ideal this command is for client or sever.

how is /etc/resolv.conf work?   when i open this file in my SUSE box (no the one i mentioned Gentoo), I found it is blank.

0
 
LVL 39

Assisted Solution

by:noci
noci earned 150 total points
ID: 17110594
Ok this is the dhcp server, it opens a private port on an interface and thus lock a route to the local network...

After reloading the dhcp server it reopens the network port .... that might release some other locks...

man 5 resolv.conf gives you the whole story.

In short:

domain example.com    
nameserver i.p.a.dr

the domain line tell what YOUR domain is i.e. xyz realy means lookup xyz.example.com
the nameserver line tells the resolver (name => address translator of glibc)
which DNS server knows how to translate names.  i.e .fill in your own DNS server's address
or fill in the ones from your provider.

you can use multiple nameserver lines...
0
 
LVL 24

Accepted Solution

by:
slyong earned 150 total points
ID: 17111862
Some of the setting of DHCP is that when it gets the IP, it also setup the DNS server.  If you have IP but not DNS setup, you cannot use name like www.google.com but you can still ping the IP address like 66.249.89.104.

That's the reason I asked you to do:

$ ping 66.249.89.104
and see if it works.  If it does, then most probably is your DNS not setup properly.  You need to put the DNS server into /etc/resolv.conf
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now