[ale] static ip network configuration
Ron / BCLUG
admin at bclug.ca
Sat Jan 11 16:55:08 EST 2025
Phil Smith via Ale wrote on 2025-01-11 13:32:
> I've got 5 or 6 different computers that I need static ips for.
>
> will this code work to assign a different ip address for each, or
> should I modify it?
>
>>> ip link set dev enp3s6 down
>>> ip addr add 192.168.100.87/24 dev enp3s6
>>> ip route add default via 192.168.100.96
The device name (enp3s6) will be unique to each machine and ought to
tab-auto-complete in bash.
The IP addr (192.168.100.87/24) will need to be unique for each machine.
Hence, the .87 will be what changes.
You may want to consider which network your router is handing out IP
addresses for, in this case it expects the router to be on 192.168.100.96.
More information about the Ale
mailing list