Set up Static IP Address

You can configure a static IP address for the Linux rescue system in two ways:

Modify Boot Parameters

To modify the boot parameters during the boot process:

  1. At the GRUB menu, select Recover or Automatic Recover item
  2. Click ‘e’ to edit boot options
  3. Append the desired network setting in the following format:

    ip=<client-ip>:<srv-ip>:<gw-ip>:<netmask>:<host>:<device>:<autoconf> nameserver=<nameserver>

    Ensure you replace the placeholder values in angle brackets (< >) with the relevant information

    For example:

    ip=10.220.83.123::10.220.83.1:255.255.255.0:::off nameserver=10.220.0.10

  4. Enter Ctrl-x or F10 to boot.

Modify Configuration File

To modify the systemd-networkd configuration file:

  1. Open the /lib/systemd/network/99-ethernet.network file using vi or nano, and update it as follows:
    [Match]
    Type=ether
    					
    [Network]
    Address=<IP address>
    Gateway=<Gateway IP address>
    DNS=<DNS IP address>

    Ensure you replace the placeholder values in angle brackets (< >) with the relevant information

    For example:

    [Match]
    Type=ether
    
    [Network] Address=10.220.83.123 Gateway=10.220.83.1 DNS=1.1.1

  2. Restart the systemd-networkd service:

    systemctl restart systemd-networkd

Ensure that network settings have been applied correctly using ip a command.