LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ADSL and router (https://www.linuxquestions.org/questions/linux-networking-3/adsl-and-router-266322/)

stefane321 12-14-2004 10:57 AM

ADSL and router
 
I everybody,

Im on a Redhat 8.0.

Im already connected to Internet with a adsl modem.

But now I have 2 comptuter and I want to share the Internet connection with a router d-link di-604.

I know that on the startup linux boot pppo and adsl connexion.

I soppose that I have to change that and modify the dhcp configuration file.

Here is the content of my dhcp configuration file:

lease{
interface "eth0";
fixed address 192.168.0.138;
server-name "";
option subnet-mask 255.255.255.0;
option dhcp-lease-time 3600000;
option routers 192.168.0.1;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.0.1;
option domain-name-servers 24.200.243.242,24.200.243.250;
option dhcp-renewal-time 3599400;
option dhcp-rebinding-time 3599900;
option domain-name "medialookstfe02";
renew 4 2003/1/16 18:00:09;
rebind 5 2003/1/24 13:55:53;
expire 5 2003/1/24 13::57:53;
}

Can you help me please?

Thanks!

nutthick 12-14-2004 12:02 PM

Are you using your linux box as the DHCP server? Usually for that sort of setup I would let the D-Link box act as the DHCP server and then have everything else grab their address from that. It makes life alot easier. Then all you have to do is configure eth0 to pickup it's settings automatically.

stefane321 12-14-2004 12:04 PM

How do I set up eth0 automatically?
 
How do I set up eth0 automatically?

nutthick 12-14-2004 12:11 PM

OK, I'm not a redhat wiz, so someone step in here and correct me when I go wrong. The file you are looking for is called ifcfg-eth0, that I think is in /etc/sysconfig/networking-scripts.

You need to adjust it so it looks something like this

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

When you have made the changes you need to reboot or restart the network service 'service network restart'.

Also make sure if you don't have the linux box and the D-Link acting as DHCP servers at the same time, or all hell will brake loose.


All times are GMT -5. The time now is 04:43 AM.