At factory defaults, your Opengear device's primary Network Interface (otherwise known as wan/eth0/NET1) has both a DHCP client enabled and static IP settings of: 192.168.0.1 / 255.255.255.0
To configure this interface from the command line, login to the CLI as root (factory default password: default) or an admin-group user, e.g. via SSH or local console.
Example commands
To set a static IP of 192.168.1.100 / 255.255.255.0 with a gateway and primary DNS of 192.168.1.1, run:
config -s config.interfaces.wan.mode=static config -s config.interfaces.wan.address=192.168.1.100 config -s config.interfaces.wan.netmask=255.255.255.0 config -s config.interfaces.wan.dns1=192.168.1.1 config -s config.interfaces.wan.gateway=192.168.1.1
Or to obtain network settings via DHCP, run:
config -s config.interfaces.wan.mode=dhcp
To enable IPv6 stateless autoconfiguration (SLAAC), run:
config -s config.system.ipv6.enabled=on config -s config.interfaces.wan.ipv6.mode=stateless
Otherwise, to clear Network Interface settings and restore factory default state, run:
config -d config.interfaces.wan
Apply configuration
To apply your changes, run:
config -r ipconfig
Note: If you are connected via the network, applying changes may cause your session to be disconnected should the network address change.
Comments
0 comments
Article is closed for comments.