Https 2nd IP?

Discussion in 'General' started by ikrudolf, Jun 1, 2010.

  1. ikrudolf

    ikrudolf Member

    Hi there,
    I have got a second IP address that I can use. I want to use it for https. How to setup a second ip address in Linux/ISPconfig?

    Rudolf.
     
  2. Hans

    Hans Moderator Moderator

    To add extra virtual IP's to for example ETH0 i have an example for you.

    Within your file /etc/network/interfaces add additional lines as shown in Bold here:

    # The primary network interface:
    auto eth0
    iface eth0 inet static
    address xx.xx.xx.xxx
    netmask xxx.xxx.xxx.xxx
    network xx.xx.xx.xxx
    gateway xx.xx.xx.xxx
    broadcast xx.xx.xx.xxx

    # 1st additional IP-address:
    auto eth0:0
    iface eth0:0 inet static
    address xx.xx.xx.xxx
    netmask xxx.xxx.xxx.xxx
    network xx.xx.xx.xxx
    gateway xx.xx.xx.xxx
    broadcast xx.xx.xx.xxx

    # 2nd additional IP-address:
    auto eth0:1
    iface eth0:1 inet static
    address xx.xx.xx.xxx
    netmask xxx.xxx.xxx.xxx
    network xx.xx.xx.xxx
    gateway xx.xx.xx.xxx
    broadcast xx.xx.xx.xxx



    Afterwards restart your network: /etc/init.d/networking restart

    Add the additional IP-address to your IP-list in ISPConfig.

    And you're done! :)
     
  3. ikrudolf

    ikrudolf Member

    Tnx a lot Hans, it worked! :)
     

Share This Page