Answer the question
In order to leave comments, you need to log in
How to set up additional IP addresses in Ubuntu?
How to setup additional IP addresses in Ubuntu 10.04.3 LTS?
Currently the contents of /etc/network/interfaces are:
# Loopback device:
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 176.9.10.53
broadcast 176.9.10.63
netmask 255.255.255.224
gateway 176.9.10.33
post- up mii-tool -F 100baseTx-FD eth0
# default route to access subnet
up route add -net 176.9.10.32 netmask 255.255.255.224
gw
176.9.10.33
eth0 : 255.255.255.192
Broadcast: 78.46.25.255
IP addresses from 78.46.25.193 to 78.46.25.254
Unfortunately, I can’t use the “poke method” here, because if the configuration is wrong, the server may become inaccessible via SSH. Because of this, I need your help.
Answer the question
In order to leave comments, you need to log in
>> Unfortunately, I can’t use the “poke method” here, because if the configuration is wrong, the server may become inaccessible via
SSH in this case, restoring /etc/network/interfaces from a previously created backup and networking restart). If the addition of new ips goes well and the ssh connection does not disappear, then simply cancel the task. If something goes wrong, then after 20 minutes access will be restored.
Something like this:
auto eth0:1
iface eth0:1 inet static
address 22.22.22.22
netmask 255.255.255.255
auto eth0:2
iface eth0:2 inet static
address 22.22.22.23
netmask 255.255.255.255
auto eth0:3
iface eth0:3 inet static
address 22.22.22.24
netmask 255.255.255.255
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question