How to configure multiple IPs for baremetal 254 Print

  • 0

In this article, we'll guide you configure all IPs of our baremetal 254 product

 

By default, our installation come with debian bookworm, everything should be configured. However in some rare case you may need, or want to configure it by yourself.

When your service is being activated, am Email will send to your mailbox which contains service details such as main IP and password

 

Also including gateway ip, netmask, etc.

now create a script on your server.

 

#!/bin/bash

IFACE="eth0" # don't modify if you dont know what it is
BASE_IP="Your base /24 addr"

for i in {1..254}; do
    sudo ip addr add ${BASE_IP}.${i}/24 dev ${IFACE}
done

 

Then chmod +x script_name.sh

and

 

./script_name.sh

 

Now you should see 254 extra IPs in your `ip a` output


Was this answer helpful?

« Back