how to install Debian 9 minimal server "network interface question"

Discussion in 'HOWTO-Related Questions' started by adamjedgar, Sep 24, 2018.

  1. adamjedgar

    adamjedgar Member

    i am going through tutorial on installing a debian 9 minimal server and have come to the network interface part of the tutorial.

    This is for an instance on Google Cloud Compute.

    nano /etc/network/interfaces returns...

    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:
    source-directory /etc/network/interfaces.d
    auto eth0
    iface eth0 inet dhcp
    the tutorial asks me to enter the following information (i believe i should be substituting ip address for my own)

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto ens33
    iface ens33 inet static


    1. Which ip address should i input, the external public static ip (, or internal static ip (
    2. a lot of the information in this file i am not sure about. On google cloud compute, what details should input for netmask, broadcast, and network?

    here is a bit of information i got off my console for VPC Network and gateway in my selected region.

    australia-southeast1 default (subnet) (ip address range), (gateway)
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think you only use public ip when using vps and you do not need to set anything for the interfaces as they are all meant mainly for local network.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I'm not using google cloud, but as far as I know, it is a routed network setup, so you probably use the internal IP in the network setup. It might be even possible that you don't have to change anything at all if you are able to connect from outside, might be that the defaults are correct already.
  4. adamjedgar

    adamjedgar Member

    ah ok. thanks.

Share This Page