LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2005, 07:24 AM   #1
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
Dhcp and Firestarter


I don't know why but the network won't work with me in linux

I shared my internet connection with Firestarted and i chose to enable the DHCP for my LAN.
So, other computers obtain their IP Addresses but not the DNS

Why?

This is my dhcpd.conf modified by firestarter:
Code:
# DHCP configuration generated by Firestarter
ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {
	option routers 192.168.0.1;
	option subnet-mask 255.255.255.0;
	option domain-name-servers 62.211.69.150, 212.48.4.15;
	option ip-forwarding off;
	range dynamic-bootp 192.168.0.10 192.168.0.100;
	default-lease-time 21600;
	max-lease-time 43200;
}
PS: Other computers can surf the net only with the IP Address .. i must set the DNS rightely in order to share the connection!

Answer me, please!!! (

Last edited by Elbryan; 09-26-2005 at 07:26 AM.
 
Old 09-26-2005, 12:14 PM   #2
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Please answer me
 
Old 09-26-2005, 01:50 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I set that up on a test box to see if there was anything special required. That box was a client FC4 system, so I installed dhcpd also...
yum install dhcpd firestarter
Then I setup firestarter to use eth1 as the Internet nic and eth0 as the local network nic. I also told it to use dhcp and it made entries in the /etc/dhcpd.conf almost exactly like yours.
Next, I booted another computer which was connected to the same network as the firestarter machine. This machine is set to use dhcp to optain addresses and it did with no problem.
Here is the setup I used...

Box1 has two nics and installed dhcpd, firestarter
Box2 has one nic and connects to hub/switch

Internet --> Cable Modem ---> eth1 [ box1 ] eth0 --> hub/switch --> eth0 [ box2 ]

I checked /etc/resolv.conf on box2 and it indeed has the name servers which are listed in box1 /etc/dhcpd.
There was no need to install dns server on either machine.
 
Old 09-26-2005, 01:53 PM   #4
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
I have a crossed cable, so a p2p network between 2 computers.
The DNS server (the IP Address) isn't a mine computer, is IP provided by my ISP.

I've already downloaded the dhcpd and firestarter..
On the windows machine the dns address remains 192.168.0.1 instead of the IP Address specified into the configuration's file!
 
Old 09-26-2005, 01:55 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
What version of Windows?
 
Old 09-26-2005, 01:56 PM   #6
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Windows XP
 
Old 09-26-2005, 01:57 PM   #7
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
But previously the shared connection worked perfectly with about the same configuration.
Now i've installed feodora 4 core because i'm fed up with Debian .. it's a living bug..

I want to know if mine dhcpd.conf is right or not
 
Old 09-26-2005, 02:06 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Right click on My Network Places / Properties
Right click on Local Area Connection ( which should be the one connected to your other machine ) / Properties
Go to Internet Protocol [ TCP/IP ] / Properties
In the General tab, set it to
( . ) Obtain an IP address automatically
( . ) Obtain DNS server address automatically

Also, since you will already be behind a firewall ( firestarter ) , you should turn off the firewall in XP.
That's in in the Advanced tab.

Now go to Start / Run / cmd and type these commands:
ipconfig /release
ipconfig /renew
Quote:
I want to know if mine dhcpd.conf is right or not
Yes, that is fine and mine came out just like that.

Last edited by homey; 09-26-2005 at 02:08 PM.
 
Old 09-26-2005, 02:09 PM   #9
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
I didn't touched the Windows XP on the other computer .. the problem, i think, is with linux because i've only disinstalled Debian and installed Fedora ..
The DHCP assigns the IP Address correctely but not the DNS address ..
 
Old 09-26-2005, 02:15 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You can run through the firestarter setup again and check everything.
Also, at the FC4 box, try this command: service dhcpd restart
Go ahead at do those things I said on the Windows box.
 
Old 09-26-2005, 02:17 PM   #11
Elbryan
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
now it works ... =P .. i don't know why but now it works.. ahaha .. i didn't touch anything ._. linux .. i hate you ..
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 05:43 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
Firestarter "No DHCP client configuration found" Locura Linux - General 1 12-10-2003 10:05 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration