If your Lighthouse version is 19.Q2.0 or later please use the link below which is easier to set the IP address.
How do I use the Lighthouse IP setup script in the CLI?
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-1 | system.net.conns[0] | net1:static | 192.168.0.1/24 |
default-conn-2 | system.net.conns[1] | 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:
ogconfig-cli
- 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[0].static.address '192.168.123.100' set system.net.conns[0].static.netmask '255.255.255.0' set system.net.conns[0].static.gateway '192.168.123.1' set system.net.conns[0].static.dns1 '8.8.8.8'
set system.net.conns[0].enabled true
- Optionally disable the default DHCP client with:
set system.net.conns[1].enabled false
- Apply configuration and exit with:
push exit
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[0]"
set lighthouse_configurations[0].system.net.conns[0].static.address '192.168.123.100'
set lighthouse_configurations[0].system.net.conns[0].static.netmask '255.255.255.0'
set lighthouse_configurations[0].system.net.conns[0].static.gateway '192.168.123.1'
set lighthouse_configurations[0].system.net.conns[0].static.dns1 '8.8.8.8'
set lighthouse_configurations[0].system.net.conns[0].enabled true
set lighthouse_configurations[0].system.net.conns[1].enabled false
- Apply configuration and exit with:
push exit
Troubleshooting
If Lighthouse is still unreachable, run:
ifconfig net1
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:
ifconfig
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:
route -n
Comments
0 comments
Article is closed for comments.