set static IP in network hook

Teddy Hogeborn teddy at recompile.se
Tue Mar 1 23:12:43 CET 2022


Mahmoud Orabi <mahorabi at gmail.com> writes:

> hi dear ,
> iam trying to set mandos for WAN connection
> using this tutorial
>
> https://blog.boyeau.com/booting-an-unattended-full-disk-encrypted-server-ubuntu-server-16-04-setup-with-mandos/
>
> every thing working fine with dhcp
> but i want to change the network-hook to static IP
>
> i cannot configure the code

If you only want to use a static IP, there is no need for a network
hook; you could just add the kernel command line option "ip=" (as
documented by
/usr/share/doc/linux-doc-*/Documentation/admin-guide/nfs/nfsroot.rst.gz
or
<https://www.kernel.org/doc/html/latest/admin-guide/nfs/nfsroot.html>).

Linux kernel command line are usually added to the GRUB_CMDLINE_LINUX
setting in the /etc/default/grub file.  Also, don't forget to run
"update-grub" after modifying that file.

/Teddy Hogeborn

-- 
The Mandos Project
https://www.recompile.se/mandos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://mail.recompile.se/pipermail/mandos-dev/attachments/20220301/09eb0a64/attachment.sig>


More information about the Mandos-Dev mailing list