netcfg
| In the netcfg window check that
eth0, is shown with dhcp enabled and
that any user is allowed to start/stop it. Select eth0 then click on the Edit button to bring up the Edit window. |
|
|
In the Edit window ensure that the
Allow any user to (de)activate interface box is
checked and the Interface configuration protocol is
set to dhcp. Hit the Done button and the Save button in the netcfg window (and finally the Quit button to exit).
|
|
Basically this creates/edits the file:
/etc/sysconfig/network-scripts/ifcfg-eth0
to contain something like:
DEVICE=eth0
USERCTL=yes
ONBOOT=no
BOOTPROTO=dhcp
BROADCAST=
NETWORK=
NETMASK=
IPADDR=
so you can just edit the files directly if you prefer. The important
lines here are BOOTPROTO=dhcp which tells the system to
use a DHCP client and USERCTL=yes which
says to allow any user (not just root) to start/stop the
interface.
The reason for having ONBOOT=no (or
Activate interface at boot time
unselected), is that one some systems an attempt to bring up a network
interface may cause booting to hang while it waits for a
dhcp reply. No reply will come if the machine isn't
plugged into a suitable network. This can cause confusion so is best
avoided.
| Selecting eth0 and clicking OK will cause it to open a status monitor window for eth0. | ![]()
|
| The eth0 monitor window has a button on
the right the center of which shows the current network status (green
means up red means down). There is also a little bar graph of recent
traffic load on the left. You can start or stop the interface by clicking on the right hand button which will bring up one of the confirmation windows below.
| ![]()
|
![]()
|
![]()
|
For those who prefer to stop/start networking from the command-line the commands:
ifup eth0
ifdown eth0
/sbin/ of course).
For details on how to configure other GNU/Linux distributions please refer to the documentation provided with the system or contact your local computer support staff.