- at the command line type linuxconf
- select networking
- select basic host configuration
- select adapter1 (assuming you only have one ethernet card)
- click the manual button and enter the following information:
- IP address you want to use
- netmask required for the subnet
- use eth0 (if you only have one ethernet card) as the net device
- the kernel module . This depends on the lan card your using.
You should be able to find this information on their web site for the distribution
you're using.
- once you completed the above, click accept
- click quit
- click activate changes
You should now be on the lan. You can check this with the command
ifconfig -a . This should display eth0
with the IP address you assigned. You can also check connectivity with the
ping command (man ping for details)
Configuring a LAN Card manually
To add a card manually, you will need to set the following variables by editing the
following files, setting them to appropriate values:
- /etc/sysconfig/network - HOSTNAME GATEWAY
- /etc/sysconfig/network-scripts/ifcfg-ethx -
IPADDR NETMASK ONBOOT
(set ONBOOT to yes)
- /etc/sysconfig/static-routes - if extra static routes are required. The
entries in this file should be in the following format:
ethx net ip-address netmask 255.netmask gw gateway-ipaddr
At this point you can perform a reboot to restart the OS with the new network settings.
Alternatively, if you don't want to perform a restart, you can dynamically update
the network settings in addition to editing the files:
- To update the card, ifconfig ethx ipaddress
netmask netmask up
- To add the default gateway, route add default gw
gateway-ipaddr
- To add additional routes, route add -net
network-ipaddr ethx