PDA

View Full Version : i can not change IP on centos 5.3


zodehala
23rd September 2009, 21:10
my current network conf is


interface et0
IP 192.168.2.50
netmask 255.255.255.0
gw 192.168.2.1
bcast 192.168.1.255
mtu 1492
to change ip command is

ifconfig eth0 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255 mtu 1500after above command i restarted network but no any changes

Leszek
24th September 2009, 01:16
Either I'm having a dejavu or You're doubleposting.

Can't seem to find the other post now so here's the answer.
Try:
ifup eth0
All that will change the network settings only temporary.
To make a permanent change enter:
setup
and change the network settings.

athmane
24th September 2009, 02:31
Run
system-config-network

zodehala
25th September 2009, 16:49
why can i not do it using command?

edenCC
29th September 2009, 06:35
Or you can modify the configuration file directly at /etc/sysconfig/network-script/ifcfg-eth0

matey
29th September 2009, 14:18
is that really should be et0
or eth0
?