VPS with debian 11, with several additional public ips

Discussion in 'Linux Beginners' started by dgrande, Nov 20, 2022.

Tags:
  1. dgrande

    dgrande New Member

    Hello,
    I have contracted a VPS with debian 11, with several additional public ips.
    I have followed different tutorials to configure the additional ips, but I can't see them through the internet.

    ###############################################
    source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth9999
    iface eth9999 inet static
    address 100.100.100.100/24
    gateway 100.100.100.1
    dns-nameservers 8.8.8.8 8.8.4.4
    dns-search dnssearch.com

    ###############################################

    I have added the following lines:

    ###############################################
    auto eth9999:0
    iface eth9999:0 inet static
    address 200.200.200.200
    ###############################################

    I have tried other configurations from different internet tutorials and I can't see the ips through the internet. the provider has told me that he has linked them to my vps.

    Something I'm leaving out... I would appreciate your help
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Check with the provider for what the correct config would be.
     
  3. dgrande

    dgrande New Member

    the provider does not give me support with the configuration, the truth is that I have done different tests and I can not see the additional ips... if the primary one
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    This should look something like this:

    Code:
    auto eth0
    auto eth0:0
    auto eth0:1
    
    iface eth0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    gateway 192.168.1.254
    
    iface eth0:0 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    gateway 192.168.1.254
    
    iface eth0:1 inet static
    address 192.168.1.3
    netmask 255.255.255.0
    gateway 192.168.1.254
    Make sure to restart networking afterwards.
     
    ahrasis likes this.

Share This Page