View previous topic :: View next topic |
Author |
Message |
calande n00b
Joined: 08 Dec 2003 Posts: 54 Location: Old Europe
|
Posted: Tue Jul 13, 2004 9:52 pm Post subject: Can't use DHCP server |
|
|
This is my config.
- 2 computers: one connected to the Internet through dynamic IP; the other one requesting shared Internet access from the former
- IP address of computer #1(with access to the Internet): 192.168.0.2
- IP address of computer #2 (slave): 192.168.0.1
I emerged and congured dhcp on the computer that has the DSL connection to the Internet. I can't ping neither computer now.
Here's my dhcpd.conf file:
subnet 192.168.0.3 netmask 255.255.255.0
{
range 192.168.0.10 192.168.0.50;
default-lease-time 21600;
max-lease-time 43200;
# DSL Gateway
# option routers 192.168.0.1;
# option broadcast-address 192.168.0.255;
# option subnet-mask 255.255.255.0;
# Domain settings
option domain-name "gentoo.network";
option domain-name-servers 192.168.0.3;
# NTP servers
# option ntp-servers ntp1.belbone.be ntp2.belbone.be
}
Here's my /etc/hosts file:
127.0.0.1 localhost
192.168.0.1 einstein.network einstein
192.168.0.2 sony.network sony
192.168.0.3 gentoo.network gentoo
255.255.255.255 dhcp
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
ifconfig reports:
eth0 Encapsulamento do Link: Ethernet Endere�o de HW 00:0C:6E:74:33:71
UP BROADCASTRUNNING MULTICAST MTU:1500 M�trica:1
RX packets:34839 errors:0 dropped:0 overruns:0 frame:0
TX packets:1648 errors:0 dropped:0 overruns:0 carrier:0
colis�es:0 txqueuelen:1000
RX bytes:29027329 (27.6 Mb) TX bytes:151418 (147.8 Kb)
IRQ:10 Mem�ria:feaf8000-0
lo Encapsulamento do Link: Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
UP LOOPBACKRUNNING MTU:16436 M�trica:1
RX packets:5388 errors:0 dropped:0 overruns:0 frame:0
TX packets:5388 errors:0 dropped:0 overruns:0 carrier:0
colis�es:0 txqueuelen:0
RX bytes:269400 (263.0 Kb) TX bytes:269400 (263.0 Kb)
ppp0 Encapsulamento do Link: Protocolo Ponto-a-Ponto
inet end.: 200.140.204.16 P-a-P:200.103.132.254 Masc:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 M�trica:1
RX packets:1358 errors:0 dropped:0 overruns:0 frame:0
TX packets:1515 errors:0 dropped:0 overruns:0 carrier:0
colis�es:0 txqueuelen:3
RX bytes:624737 (610.0 Kb) TX bytes:103986 (101.5 Kb)
And when I type "/etc/init.d/dhcp start", I get this message:
* Setting ownership on dhcpd.leases... [ ok ]
* Starting dhcpd... [ !! ]
Pinging Google works, but pinging local IP addresses doesn't do anything.
Do you have an idea what's wrong? Thanks,
Charles. |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Tue Jul 13, 2004 10:52 pm Post subject: |
|
|
If you only have 3 computers the best thing to do would be to assign a static IP to them and forget about DHCP. Your DSL modem does not require DHCP. the dsl package will take care of talking to the ISP's server not DHCP.
But if you are just trying to learn then give me a network diagram. Make a list and include
comp name: (example - einstein, sony, gentoo)
role:(example - connected to dsl modem or DNS server or DHCP server or client only, etc..)
IP address: (if dynamic then say Assigned by DHCP)
Which comp is connected to the internet. Which one is the DHCP server. Which one is the DNS server. Which ones have static addresses and which ones have dynamic. This info is required for me to help you in the best way.
Code: | subnet 192.168.0.3 netmask 255.255.255.0
{
range 192.168.0.10 192.168.0.50; |
192.168.0.3 is not a subnet it is a client addess. The subnet should be 192.168.0.0
the range 192.168.0.10 192.168.0.50 will only assign that range of addresses so 192.168.0.3 should be statically assigned. Is that what you are trying to do?
Code: | option domain-name-servers 192.168.0.3 |
Is that really your DNS server? I seems like .3 is a client. Are you using DNS? If not then remove that line. Which machine is the DNS server, it seems like einstein is the one not gentoo, if so, then put .1 as the DNS server address.
Finally here is a link to DHCPD info that you should read it will help to clarify things for you. Start with the first one, it is a how to on setting up a home network. If you have more questions then please post back here and we will figure it out together. Hope this helps.
http://help-site.com/LDP/HOWTO/mini/Netscape+Proxy.html
http://www.zevils.com/cgi-bin/man/man2html?5+dhcpd.conf
http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&safe=off&oi=defmore&q=define:DHCP
http://help-site.com/LDP/HOWTO/mini/DHCP/index.html
http://help-site.com/LDP/HOWTO/DSL-HOWTO/index.html _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
calande n00b
Joined: 08 Dec 2003 Posts: 54 Location: Old Europe
|
Posted: Wed Jul 14, 2004 12:23 pm Post subject: |
|
|
Well thanks a bunch, I'll read these links, and hopefully I'll fix this.
Charles. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|