After networking has been activated, Lighthouse is configured with two default network connections on its primary network interface:
|Name||Config Location||Interface||IP Address|
|default-conn-2||system.net.conns||net1:dhcp||Auto assigned, DHCP client|
In the case where there is no DHCP server and/or you are unable to access these addresses, you may set an initial IP address from the VGA console:
- Using your virtualization tools, open a VGA console to Lighthouse
- Login to the Lighthouse CLI as the root user
- Start the configuration REPL with:
- Run these commands to set the static IP address, replacing the example addresses with your own:
- Hint: use the up/down arrow to retrieve previous command instead of retyping the entire syntax.
set system.net.conns.static.address '192.168.123.100' set system.net.conns.static.netmask '255.255.255.0' set system.net.conns.static.gateway '192.168.123.1' set system.net.conns.static.dns1 '184.108.40.206'
set system.net.conns.enabled true
- Optionally disable the default DHCP client with:
set system.net.conns.enabled false
If you are running Lighthouse 5.3.0 or above which supports multi instance, the syntax has changed slightly.
It is now prefixed with the primary lighthouse configuration "lighthouse_configurations"
set lighthouse_configurations.system.net.conns.static.address '192.168.123.100'
set lighthouse_configurations.system.net.conns.static.netmask '255.255.255.0'
set lighthouse_configurations.system.net.conns.static.gateway '192.168.123.1'
set lighthouse_configurations.system.net.conns.static.dns1 '220.127.116.11'
set lighthouse_configurations.system.net.conns.enabled true
set lighthouse_configurations.system.net.conns.enabled false
- Apply configuration and exit the REPL with:
If Lighthouse is still unreachable, run:
If this command returns a Device not found error, the virtual NIC has not been detected – please check your VM settings.
To view assigned addresses, run:
Low level interface names are listed in the Interface column in the table above.
Check Lighthouse has a route to network you are trying to reach it from, by examining the output of: