O Plameras wrote:

> 'ifcfg-eth0'   and so you must ensure the contents are in order.
> 
> For example,
> 
> DEVICE=eth0
> BOOTPROTO=static
> BROADCAST=192.168.1.255
> IPADDR=192.168.1.254
> NETMASK=255.255.255.0
> NETWORK=192.168.1.0
> ONBOOT=yes
> TYPE=Ethernet

I think that is the redhat format.

In Debian (and I presume Ubuntu) you need to look at the file
/etc/network/interfaces which should have something like this:

    auto eth0
    iface eth0 inet static
        address 192.168.X.Y
        netmask 255.255.0.0
        network 192.168.0.0
        broadcast 192.168.255.255
        gateway 192.168.X.Z

for a static ip address and this for a dhcp:

    auto eth0
    iface etho inet dhcp

The "auto" keyword means that the interface will be automatically
configured when the networking subsystem is started.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"The one thing that reading these five books has hammered home is 
how much C++ has turned into 3 languages stuck in a bag fighting 
to get out. Low C++, High C++, and Generic C++."
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to