Announcement

Collapse
No announcement yet.

How to add IP Permanently on dedicated server?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add IP Permanently on dedicated server?

    I have a dedicated centOS server and I need to add IP permanently on it.
    So, how to add IP Permanently on dedicated server?
    Can I utilize system-config-network?

  • #2
    You can find out the network files in :

    /etc/sysconfig/network-scripts/ifcfg-eth0 , /etc/sysconfig/network-scripts/ifcfg-eth0:1 ifcfg-eth0:2 etc
    Once you able to find out the network files, just up to them with:

    # ifup eth0:1
    Create a new file for each virtual interface or add a range to 1.

    Comment


    • #3
      Thank you Kelvin.
      I don't know how to add a range. Can you please explain?

      Comment


      • #4
        Follow the steps given below to add a range:

        File: /etc/sysconfig/network-scripts/ifcfg-eth0-range

        IPADDR_START= 000.000.000.000
        IPADDR_END= 000.000.000.000
        CLONENUM_START=0

        # ifup ifcfg-eth0-range
        (Replace 000.000.000.000 with your IP's as required)

        Comment

        Working...
        X