server ip

Discussion in 'Programming' started by farjam, Sep 27, 2007.

  1. #1
    I have centOs 4 server and my server has two IP addresses.

    How can I change the main ip address?

    for example:

    my server has (192.168.0.1) and (192.168.0.2) IP addresses

    and (192.168.0.1) is main IP address.

    How can I set (192.168.0.2) as main IP address?
    :confused:
     
    farjam, Sep 27, 2007 IP
  2. Grue

    Grue Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Edit /etc/sysconfig/network-scripts/ifcfg-eth0. (eth0 being your primary network interface).
    Then restart your network service (service network restart).
     
    Grue, Sep 28, 2007 IP