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.

Cpanel w/ eth0 and eth1

Discussion in 'General Discussion' started by spearheadltd, Oct 29, 2005.

  1. spearheadltd

    spearheadltd Member

    Joined:
    Oct 27, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Does anyone know if cPanel can use both eth0 and eth1. I have two bandwith providers and one is in eth0 and one is in eth1. I have many ips on eth0 already and when i add the ips from the provider on eth1, it binds them to eth0 , therfore they do not work. Is there a way to tell cPanel to listen on both eth's? Or how do I install a block of ips so that cPanel can use them. using Red Hat Enterprise.

    Thanks,
    spearhead
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Good question.

    cPanel will only configure the IPs through the use of /etc/init.d/ipaliases on a single NIC as specific in WHM > Basic cPanel/WHM Setup > Alternate Main Ethernet Device. This is clear from /etc/init.d/ipaliases.

    So, to achieve what you want, you'll need to bypass their method and write your own script by still listing the available IP as you would do normally in WHM and /etc/ips, but have your own version of /etc/init.d/ipaliases that allocates the IP's to the correct ethernet device.

    Once the IP's are bound correctly you shouldn't have any problems, it's just a matter of disabling the script above and writing your own method to individually create the devices as needed.
     
  3. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    Sorry, I know it's a very old thread. But I need to do exactly the same. Some IP's I need to bind to ETH1 and some to ETH0. Has someone modified this scirpt already or could help me with this?

    Michael
     
  4. redwood

    redwood Member

    Joined:
    Apr 4, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    sorry for kicking. But i need this to!
    Is it possible?
     
Loading...

Share This Page