Answer the question
In order to leave comments, you need to log in
Adding a Subnet to Debian
I rent a server in hetzner, ordered subnet /29 ip addresses, prescribe
ip addr add 10.4.2.1/32 dev eth0
It is known that debian overwrites this address after reboot, what to do in this situation? how to add a subnet so that virtual machines can use these ip addresses?
Answer the question
In order to leave comments, you need to log in
Register it in interfaces as an additional ip. man interfaces.
By the way, you crookedly prescribe IP in your example.
is this your physical server with a dedicated IP address to which this subnet is routed?
or a ready-made virtual machine issued by Hetzner?
Ask the hatzner support how best to act in such a situation - there seem to be quite adequate guys on technical support according to the reviews.
up ip addr add 10.4.2.1/32 dev eth0
down ip addr del 10.4.2.1/32 dev eth0
Here it is, yes in /etc/network/interfaces.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question