[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-laptop
Subject:    Re: [linux-laptop] ifconfig eth0 up cannot bring the ethernet
From:       Jeremy Turner <jeremy.turner () oc ! edu>
Date:       2002-04-25 1:49:04
[Download RAW message or body]

Hi again Ed,

What you might try doing is:

ifconfig eth0 down
dhcpcd eth0

The dhcpcd will automatically make your eth0 back on ifconfig.  I hope
this makes sense.

Jeremy

On Wed, 2002-04-24 at 11:35, Edward Hua wrote:
> Hi,
> 
>     In my Linux laptop, I have the Ethernet connection. Normally, it works
> fine, and I have no problem using that connection (eth0) to get
> connected to the Internet. Then I wanted to test the "ifconfig" command,
> so I did the following:
> 
>     ifconfig eth0 down
> 
> This brings down the eth0 interface. My next command was:
>    
>     ifconfig eth0 up
> 
> and I was hoping that it would bring back the eth0 interface and resume
> the network connection. Unfortunately, that's not the case. After that
> command was executed, I could never execute a command say:
> 
>      ping www.latimes.com
> 
> I'm puzzled by this, since by commonsense, you'd think that ifconfig
> up/down can be applied real-time, on-the-fly, to tear down or re-establish
> network connection. Did I do something wrong here?
> 
>      An explanation I could think of is perhaps because of the DHCP. After
> the eth0 is taken down, the DHCP lease expires. When I up'ed eth0, the
> DHCP was not renewed. Is this the correct reason?
> 
>      Also, I tried using:
> 
>      ifdown eth0 and ifup eth0
> 
> and the samething happened.
> 
>      I appreciate if anybody can tell me what might be the cause of this
> problem (or is this pretty normal). I use RedHat7.2 with kernel version
> 2.4.7-10.
> 
>      Thanks in advance. Bye.
> 
> -Ed
> 
> 
> /*  -----------------------------------------------------
>  http://Xtops.DE/ Laptops and PDAs with Linux (Germany)
>  -------------------------------------------- adv. ---- */
> 
> You may manage this list at http://mobilix.org/mobilix_ml.html



/*  -----------------------------------------------------
 http://Xtops.DE/ Laptops and PDAs with Linux (Germany)
 -------------------------------------------- adv. ---- */

You may manage this list at http://mobilix.org/mobilix_ml.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic