[Gandi] [IaaS] Mettre une adresse ip privé statique

[Gandi] [IaaS] Mettre une adresse ip privé statique.
Ouvrir :

/etc/network/interfaces

Ajouter :

auto eth1
iface eth1 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.254

Ouvrir :

/etc/default/gandi

Chercher :

# set a list of network interfaces which should not be configured by DHCP
# if you attach a interface setup in your private VLAN, you should consider
# adding the interface here. If you have multiple interfaces, use space as
# separator.
# ex : CONFIG_NODHCP="eth1 eth2"
CONFIG_NODHCP="eth0"

Chercher :

CONFIG_NODHCP="eth0"

Remplacer :
# Ajouter le nom de l’interface privée eth1

CONFIG_NODHCP="eth0 eth1"

Comments are closed, but trackbacks and pingbacks are open.