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 for NET1
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.
Example commands for NET2
At factory defaults the Management LAN Interface (otherwise known as lan/eth1/NET2) is disabled.
To set a static IP of 192.168.2.100 / 255.255.255.0 with a gateway and primary DNS of 192.168.2.1, run:
config -s config.interfaces.lan.mode=static
config -s config.interfaces.lan.address=192.168.2.100
config -s config.interfaces.lan.netmask=255.255.255.0
config -s config.interfaces.lan.gateway=192.168.2.1
config -s config.interfaces.lan.media=Auto
config -s config.interfaces.lan.dns1=192.168.2.1
config -d config.interfaces.lan.disabled
config -r ipconfig
Comments
0 comments
Article is closed for comments.