> 
> I used to use Xwindows to change the IP number on Linux, 
> but I now need to do this from the command line.
> 
> Is there a single command to change the IP number ??
> 

  My approach is to remake the /etc/HOSTNAME by copying replacements
  overwriting it with files containing the different name/address
  configurations I would need.  Also I have one liner files contain an
  IP address to complete the variable substitutions as indicated below:
  
DEVICE=eth0
HOSTN=`cat /etc/HOSTNAME | cut -d"." -f1`
IPADDR=`cat /etc/myaddr.${HOSTN}`
NETWORK=`cat /etc/mynet.${HOSTN}`
NETMASK=255.255.255.0
BROADCAST=192.168.2.255
ONBOOT=yes

  For this to work the HOSTNAME replacement must be done before the
  next reboot that would need the new setup.  This is perfect for my
  use of my laptop in different locations across the country that I
  may be required to which I must travel.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-  Alan E. Derhaag   Remote programmer for Danka Corporate  -=
=-    Business phone: (425) 643-7126  FAX: (425) 644-2369    -=
=-       [EMAIL PROTECTED]  [EMAIL PROTECTED]       -=
=-            http://www.wolfenet.com/~aderhaag/             -=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to