Networking Forums

Networking Forums > Computer Networking > Linux Networking > Loose connection when i get a new IP from DHCP

Reply
Thread Tools Display Modes

Loose connection when i get a new IP from DHCP

 
 
Paeng
Guest
Posts: n/a

 
      01-17-2004, 11:04 AM
Hi NG,

i'm client of Cablecom (a internet Provider in Switzerland). The Modem
through which I connect to the Internet implements a DHCP Server, from
which i also get the default gateway.
When I get a new IP on my linux box the network connection
disconnects. When I do a "rcnetwork restart" i get the new IP adress
and new gateway, but my connection to the Internet still doesn't work.
When i reboot my machine it reworks.
Does anyone have a idee which service has to be restartet, to get the
internet work?

Kind regards

Päng
 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      01-17-2004, 03:42 PM
On 17 Jan 2004 04:04:06 -0800, Paeng wrote:
> Hi NG,
>
> i'm client of Cablecom (a internet Provider in Switzerland). The Modem
> through which I connect to the Internet implements a DHCP Server, from
> which i also get the default gateway.
> When I get a new IP on my linux box the network connection
> disconnects. When I do a "rcnetwork restart" i get the new IP adress
> and new gateway, but my connection to the Internet still doesn't work.
> When i reboot my machine it reworks.
> Does anyone have a idee which service has to be restartet, to get the
> internet work?


Please read
http://www.catb.org/~esr/faqs/smart-questions.html

It always helps if you provide some basic system information.

That info helps us to provide better examples/responses.

There are several "linuxes", about 190+ according to
http://www.distrowatch.com/stats.php

Always provide what distro and release level you are using
when you post questions (Pink Tie 10, Suse 9.0, Mandrake 9.2,...).

Different distros have different commands, files, and links to files,
pacakges and package/software managers.
Even happens between release levels of the same distribution.

If dhcp, which client (pump, dhcpcd, dhclient,...)
 
Reply With Quote
 
Paeng
Guest
Posts: n/a

 
      01-18-2004, 11:16 AM
Oh sorry, I really forgotten to say which distribution i use:
I'm using SuSE Linux 8.1!

My dhcp client uses the following parameters (ps -ef):
/sbin/dhcpcd -D -N -Y -t 999999 -h <hostname> eth0

Hope this information helps!

regards
Paeng

Bit Twister <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> On 17 Jan 2004 04:04:06 -0800, Paeng wrote:
> > Hi NG,
> >
> > i'm client of Cablecom (a internet Provider in Switzerland). The Modem
> > through which I connect to the Internet implements a DHCP Server, from
> > which i also get the default gateway.
> > When I get a new IP on my linux box the network connection
> > disconnects. When I do a "rcnetwork restart" i get the new IP adress
> > and new gateway, but my connection to the Internet still doesn't work.
> > When i reboot my machine it reworks.
> > Does anyone have a idee which service has to be restartet, to get the
> > internet work?

>
> Please read
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> It always helps if you provide some basic system information.
>
> That info helps us to provide better examples/responses.
>
> There are several "linuxes", about 190+ according to
> http://www.distrowatch.com/stats.php
>
> Always provide what distro and release level you are using
> when you post questions (Pink Tie 10, Suse 9.0, Mandrake 9.2,...).
>
> Different distros have different commands, files, and links to files,
> pacakges and package/software managers.
> Even happens between release levels of the same distribution.
>
> If dhcp, which client (pump, dhcpcd, dhclient,...)

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      01-18-2004, 01:37 PM
On 18 Jan 2004 04:16:50 -0800, Paeng wrote:
> Oh sorry, I really forgotten to say which distribution i use:
> I'm using SuSE Linux 8.1!
>
> My dhcp client uses the following parameters (ps -ef):
> /sbin/dhcpcd -D -N -Y -t 999999 -h <hostname> eth0



If you do a man dhcpcd it will indicate that you can create an
exe script which executes when the ip address changes.
That file goes in /etc/dhcpc and has the name of the the nic. Example
/etc/dhcpc/dhcpcd-eth0.exe

Sorry, I have not used Suse, so I have no idea of what all to change where.

The script would get the new hostinfo with
. /etc/dhcpc/dhcpcd-eth0.info
then modify /etc/hosts, firewall rules, /etc/resolv.conf,
/etc/named.conf depending on if you use them or not.

 
Reply With Quote
 
Paeng
Guest
Posts: n/a

 
      01-20-2004, 07:59 AM
I read in the man and i know that there is a possibility to attach a
script to dhcpc. My problem is, that I don't know what to do in this
script.
With my knowledge (that's not a lot), i think that if I got a new
gateway ip, this one should be used. But i seems not to work in the
way i'm thinking of :-(

What exactly do I have to do in this script?


Bit Twister <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> On 18 Jan 2004 04:16:50 -0800, Paeng wrote:
> > Oh sorry, I really forgotten to say which distribution i use:
> > I'm using SuSE Linux 8.1!
> >
> > My dhcp client uses the following parameters (ps -ef):
> > /sbin/dhcpcd -D -N -Y -t 999999 -h <hostname> eth0

>
>
> If you do a man dhcpcd it will indicate that you can create an
> exe script which executes when the ip address changes.
> That file goes in /etc/dhcpc and has the name of the the nic. Example
> /etc/dhcpc/dhcpcd-eth0.exe
>
> Sorry, I have not used Suse, so I have no idea of what all to change where.
>
> The script would get the new hostinfo with
> . /etc/dhcpc/dhcpcd-eth0.info
> then modify /etc/hosts, firewall rules, /etc/resolv.conf,
> /etc/named.conf depending on if you use them or not.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Zero Config causes my adapter to loose it's DHCP address. jdh201 Wireless Networks 1 11-24-2008 03:03 PM
Loose of wirelss Paddyray Wireless Networks 3 04-15-2008 08:10 PM
PCs loose Connection. PVR Wireless Networks 2 03-09-2008 02:46 PM
Loose Internet with WEP or WPA Navile Wireless Networks 3 06-15-2005 11:26 AM
Loose PCI slot? Not Sure. Venessa Broadband Hardware 1 05-17-2005 01:13 AM



1 2 3 4 5 6 7 8 9 10 11