Find the answer to your Linux question:
Results 1 to 2 of 2
OK, I need to know how to turn off DHCP for a particular network interface... I found a config file in /etc/dhcpc directory and changed the value for the interface ...
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    1

    Turning off DHCP for an Network Interface

    OK,

    I need to know how to turn off DHCP for a particular network interface...

    I found a config file in /etc/dhcpc directory and changed the value for the interface from eth0 to none per the instructions in the comments, but it didnt work....

    I installed off of the knoppix installer for the Buildix stack.....

    everything went fine, and now this is last step...

    anyone got any guidance?

    thanks in advance...

  2. #2
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    hi

    edit the /etc/network/interfaces file. delete the line "auto ethX" this will cause the intertface will not set automatically.
    if you want staic ip address edit the interface's configuration.

    you will find a line

    iface eth0 inet dhcp
    bla bla bla
    bla bla bla..

    change to this

    iface eth0 inet static
    address your ip address
    netmask your netmask
    gateway ip addres of the default gateway

    auto eth0

    save
    ifdown -a
    ifup -a

    or use the gui application
    applications-> system -> network

    i hope i could help

    and please forgive me , my english is very wrong!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •