
3.18 SETUPIPADDRESS
If you use the RedHat distribution Linux, you can edit the
/etc/sysconfig/network-scripts/ifcfg-ethX or edit the /etc/network/interfaces under Debian to set
up the IP address on booting process. Or one can use the netconfig
command for IP address setting.
We provide two types setting in the following examples. One is to assign a fix IP address,
netmask, and default gateway. Another is to get IP configuration from a DHCP server.
3.19 FIXEDSETTING
# This is an example of fixed IP setting
DEVICE=’eth0'
IPADDR=’192.168.2.98’
NETMASK='255.255.255.0’
NETWORK='192.168.2.0'
BROADCAST='192.168.2.255'
ONBOOT='yes'
GATEWAY='192.168.2.254'
3.20 GETIPSETTINGFROMDHCP
#This is an example of getting ip from DHCP server.
DEVICE=’eth0’
BOOTPROTO=’dhcp’
ONBOOT='yes'
3.21 SETTINGACCESSPOINT
The typical setting procedure is:
18
Comentarios a estos manuales