Re: Changing IP's


Subject: Re: Changing IP's
From: cdowns (cdowns@skillsoft.com)
Date: Wed Dec 27 2000 - 14:26:24 MST


Block Iron & Supply Co - CIS wrote:

> > Don't use linuxconf. Try /usr/sbin/netconfig.
> >
> > -Hollis
> >
> Why not? I have tried to use netconfig but it gaves me some error messages
> ( I do not remember the messages).

If you want to change ip address's i would do it the old fashion way and do:

[root@dwarf_1 scripts]# cd /etc/sysconfig/network-scripts/
[root@dwarf_1 network-scripts]# less ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
DOMAIN=
BROADCAST=
NETWORK=
NETMASK=
IPADDR=
USERCTL=no
ONBOOT=no

and set it up this way then just add your routing like :

[root@dwarf_1 network-scripts]# route add default gw 192.168.0.1

or cd to :
[root@dwarf_1 sysconfig]# pwd
/etc/sysconfig
[root@dwarf_1 sysconfig]# less network
NETWORKING=yes
HOSTNAME=dwarf_1
FORWARD_IPV4=no
GATEWAYDEV=
GATEWAY=192.168.0.1

if you want it to start automatically as this can be done in
/etc/rc.d/rc.local then just restart your network like so :

[root@dwarf_1 sysconfig]# /etc/rc.d/init.d/./network restart

check to see if routing and everything is correct like so :

[root@dwarf_1 sysconfig]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface

127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
172.16.54.0 0.0.0.0 255.255.255.0 U 0 0 0
vmnet1
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0
eth0
[root@dwarf_1 sysconfig]#

and you should be golden ~! :)

later and good luck.

Christopher M Downs
------------------
Network Administrator
http://www.skillsoft.com
cdowns@skillsoft.com
------------------



This archive was generated by hypermail 2a24 : Wed Dec 27 2000 - 14:22:22 MST