[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: eth0 does not remain



On Fri, 2004-07-09 at 23:00, disciple wrote:
> When I do lsmod, the nic driver shows up (3c59x).  eth0 section missing 
> when I do ifconfig.
> When I do ....  # ifconfig eth0 up 192.168.0.4 netmask 255.255.255.0 ... 
> the NIC works and eth0 section also shows when I do .... # ifconfig.  
> When I reboot, the settings for eth0 disappear.  How do I make the 
> settings permanent?

Since the NIC modules is being loaded at boot, try this:

in the file "/etc/network/interfaces" put in:

        auto lo eth0
        
        iface lo inet loopback
        
        iface eth0 inet static
                address 192.168.0.4
                netmask 255.255.255.0
                broadcast 192.168.0.255
                gateway 192.168.0.1

Now, I supposed that your default gateway was what I wrote, but change
it as needed. This config will auto config your NIC and loopback
everytime.

If your eth0 is DHCP try this for eth0 instead:

        
        iface eth0 inet dhcp

Good luck.
-- 
greg, greg@gregfolkert.net

The technology that is
Stronger, better, faster:  Linux

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: