i can not change IP on centos 5.3

Discussion in 'HOWTO-Related Questions' started by zodehala, Sep 23, 2009.

  1. zodehala

    zodehala New Member

    my current network conf is

    Code:
    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

    Code:
    ifconfig eth0 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255  mtu 1500
    after above command i restarted network but no any changes
     
  2. Leszek

    Leszek New Member

    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:
    Code:
    ifup eth0
    All that will change the network settings only temporary.
    To make a permanent change enter:
    Code:
    setup
    and change the network settings.
     
  3. athmane

    athmane New Member

    Run
    Code:
    system-config-network
     
  4. zodehala

    zodehala New Member

    why can i not do it using command?
     
  5. edenCC

    edenCC New Member

    Or you can modify the configuration file directly at /etc/sysconfig/network-script/ifcfg-eth0
     
  6. matey

    matey New Member

    is that really should be et0
    or eth0
    ?
     

Share This Page