Solved

DHCP in GENTOO

Posted on 2006-07-14
5
1,103 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 40

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 40

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Multicast - Linux 4 30
Squid Connection Pools 3 68
Replication of files from Primary and the Secondary Linux servers 14 122
Linux Network manager connection based on location 3 40
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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