Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    688

    ip adjustment via command line

    Got a centos / cpanel box. Had to change the block of IP's with an entirely new block of 8. Problem is I cannot access cpanel/whm due to this, but only via ssh. If I run the below, it shows the old IP's

    /etc/init.d/ipaliases start

    How do I replace the old block with the new? I've never done it via command line before.

  2. #2
    Join Date
    Jan 2007
    Posts
    688
    I'm getting this after editing /etc/ips and /etc/ipaddrpool and /etc/ips.dnsmaster


    Code:
    [email protected] [/etc]# /etc/init.d/ipaliases start
    Bringing up eth0:1 SIOCGIFADDR: Cannot assign requested address
    SIOCSIFBROADCAST: Cannot assign requested address
    SIOCSIFBRDADDR: Cannot assign requested address
    SIOCSIFFLAGS: Cannot assign requested address
                                                               [FAILED]
    Routing xxx.xxx.32.82 SIOCADDRT: No such device
                                                               [FAILED]
    Bringing up eth0:2                                         [  OK  ]
    Routing xxx.xxx.32.83                                      [  OK  ]
    Bringing up eth0:3                                         [  OK  ]
    Routing xxx.xxx.32.84                                      [  OK  ]
    Bringing up eth0:4                                         [  OK  ]
    Routing xxx.xxx.32.85                                      [  OK  ]
    Bringing up eth0:5                                         [  OK  ]
    Routing xxx.xxx.32.86 SIOCADDRT: Invalid argument
                                                               [FAILED]
                                                               
                                                               
    I have this below in the ips and ips.dnsmaster files
    
    
    xxx.xxx.32.82:255.255.255.248:xxx.xxx.32.86
    xxx.xxx.32.83:255.255.255.248:xxx.xxx.32.86
    xxx.xxx.32.84:255.255.255.248:xxx.xxx.32.86
    xxx.xxx.32.85:255.255.255.248:xxx.xxx.32.86
    xxx.xxx.32.86:255.255.255.248:xxx.xxx.32.86

    Note this is a block of 8 / 5 usable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •