Graphically in KDE
- > System Settings > Network.
-
- This will bring up a window called Network Configuration. The first Ethernet device should be highlighted - eth0. Click the Edit button.
- The Ethernet Device window will be open. There is a choice of either obtaining the IP address automatically using DHCP or to set it up statically.
- Once the options have been set, exit out of the windows. A message will popup saying the Ethernet card should be restarted.
- Bring up a terminal window: > System Tools > Terminal.
- Become root in the Terminal window with /bin/su
- Once root use the commands:
-
The network card should now be configured
Manually
Network information is kept in:
/etc/sysconfig/network-scripts/ifcfg-eth0
A file set up to obtain the network information from DHCP has the following look:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
The ifcfg-eth0 file configured to obtain the network information statically is as follows:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=<number>
NETMASK=<number>
GATEWAY=<number>
TYPE=Ethernet
NETWORK=<number>
BROADCAST=<number>
Once ifcfg-eth0 has been configured the following commands should be run as root: