The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help - IP Address Assigned Twice To etho:0

Discussion in 'General Discussion' started by EastcoastUK, Nov 18, 2009.

  1. EastcoastUK

    EastcoastUK Member

    Joined:
    Oct 17, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hiya all,

    I'm stumped here as it seems like after an update etho:0 has assigned itself 2 x IP Addresses. I don't understand how this happened or how to fix it so some help would be great as I cannot access cPanel while it's like this or my sub directories.

    Here is a print of ifconfig

    -bash-3.2# ifconfig
    eth0 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.38 Bcast:95.154.254.38 Mask:255.255.255.255
    inet6 addr: fe80::a801:5fff:fe9a:fe26/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:366 errors:0 dropped:0 overruns:0 frame:0
    TX packets:377 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:30854 (30.1 KiB) TX bytes:49131 (47.9 KiB)

    eth0:0 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.39 Bcast:95.154.254.39 Mask:255.255.255.255
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    eth0:1 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.39 Bcast:95.154.254.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    eth0:2 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.40 Bcast:95.154.254.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    eth0:3 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.41 Bcast:95.154.254.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    eth0:4 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.42 Bcast:95.154.254.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    eth0:5 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.43 Bcast:95.154.254.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:10 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1162 (1.1 KiB) TX bytes:1162 (1.1 KiB)

    Many thanks in advance

    Jay
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The IP address entry that is duplicated appears to use two different broadcast addresses as seen below:
    Code:
    eth0:0 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.39 Bcast:95.154.254.39 Mask:255.255.255.255
    
    eth0:1 Link encap:Ethernet HWaddr AA:01:5F:9A:FE:26
    inet addr:95.154.254.39 Bcast:95.154.254.255 Mask:255.255.255.0
    To correct this it will be necessary to check with the data center staff or network engineering personnel to confirm the correct IP address setup information, including the network mask, network gateway, and broadcast address. Once this information is known then it would be possible to proceed forward with corrections.

    The configuration information for (1) the Ethernet interface involved "eth0" and for (2) IP aliases (as setup using the IP Functions in WHM) may be found at the following file system paths:
    Code:
    /etc/sysconfig/network-scripts/ifcfg-eth0
    /etc/ips
    The two files listed may be viewed via root SSH access; here are two example commands using "cat" to display the file contents:
    Code:
    # cat /etc/sysconfig/network-scripts/ifcfg-eth0
    # cat /etc/ips
    The IP address aliases as defined in the aforementioned "ips" file may be configured via WHM at the following menu paths:
    WHM: Main >> IP Functions >> Add a New IP Address
    WHM: Main >> IP Functions >> Show or Delete Current IP Addresses

    Related Documentation:
    IPFunctions < AllDocumentation/WHMDocs < TWiki
    AddNewIP < AllDocumentation/WHMDocs < TWiki
    ShowDeleteIP < AllDocumentation/WHMDocs < TWiki
     
  3. EastcoastUK

    EastcoastUK Member

    Joined:
    Oct 17, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Many thanks for that I knew it would be simple to resolve but just couldn't get my head round where.

    I'd parked a domain on top of another and this had messed up my IP address pool. I then moved all sites to the sites main IP and then deleted the duplicate entry. Rebuilt the IP address pool and voila resolved.

    Thanks for your help. I was resolving itself temporarily when cPanel updated via cron every night but would go down during the day so it's good to fix proper.
     
Loading...

Share This Page