0

I want to add some ranges of extra IPs for Debian 10. Example: 10.1.1.4 - 254 and 10.1.2.4 - 254

What is the fastest method to add these IP ranges?

I know in CentOS, we just create a file like this:

$ nano /etc/sysconfig/network-scripts/ifcfg-eth0-range:1
IPADDR_START=10.1.1.4
IPADDR_END=10.1.1.254
CLONENUM_START=1
NETMASK=255.255.255.255

I am not sure how to do this in Debian.

2

1 Answer 1

1

I would use post-up script in interface definition. See https://manpages.debian.org/buster/ifupdown/interfaces.5.en.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.