Linux | Setting a VLan ID in the recovery environment

It is possible to set a Vlan ID in the Linux recovery environment (ISO)

This is outside the scope for Cristie, however, the steps below may be helpful.

  1. To set a VLAN ID on Linux BMR using nmcli:

Create a VLAN interface with nmcli; boot the recovery ISO then Tools / Run shell / Start

-Confirm NetworkManager is running

systemctl status NetworkManager

-If not, start NetworkManager

systemctl start NetworkManager

Assume:
· Physical interface is eth0
· VLAN ID is 100
· VLAN interface name will be vlan100
· IP address to assign is 192.168.100.10/24

  1. Create the VLAN connection:

nmcli con add type vlan con-name vlan100 dev eth0 id 100 ip4 192.168.100.10/24

image

  1. Bring the connection up:

nmcli con up vlan100

  1. Verify the connection:

nmcli con show

image

  1. Optional: Set a gateway and DNS
    You can also specify a gateway and DNS servers like so:

nmcli con modify vlan100 ipv4.gateway 192.168.100.1
nmcli con modify vlan100 ipv4.dns “8.8.8.8 1.1.1.1”
nmcli con modify vlan100 ipv4.method manual
nmcli con up vlan100