Setting IP address on C06W/C07W
1
.
Requirements
To edit settings you need to have the rights "GatewaySettings" and "GatewayManagement" .
2
.
Procedure
- Via "Gateways"you search the desired gateway and open its settings.
There you can add the following block:
{
"connectivity": {
"networkPortSettings": [
{
"portIndex": 0,
"enableDhcp": true
},
{
"portIndex": 1,
"enableDhcp": false,
"ipv4StaticAddress": "192.168.2.20",
"ipv4StaticSubnetMask": "255.255.255.0"
}
]
},
"slaveDefinitions": [
{
"name": "ethernet",
"slaves": [
{
"address": "127.0.0.1",
"port": 22,
"type": "generic-tcp"
},
{
"address": "127.0.0.1",
"port": 80,
"type": "generic-tcp"
}
]
}
]
}
2. Adjust the following fields as needed:
a. "portIndex" represents the order of the ports.
- With the C07W we have:
- Port 0: WAN port on the gateway
- Port 1: LAN port on the gateway
- With the C06W we have:
- Port 0: LAN port on the gateway
b. "enableDhcp" represents whether or not to enable DHCP.
If you choose a static IP address, it should be set to false.
More info about DHCP: https://learn.microsoft.com/en-us/windows-server/networking/technologies/dhcp/dhcp-top
c. "ipv4StaticAddress" and "ipv4StaticSubnetMask" are the specific IP address and subnet mask you get from your network administrator to set on this gateway.
Be careful with your choice of IP address if you are doing this completely remote, with no local access to the device! If the gateway is only connected to the internet via the network you can lock yourself out of the the network by entering a wrong IP address!
3. Save the settings, the gateway will then adopt the new settings and update the IP address.
Was this article helpful?
- Changing gateway settings