Get/Set the IPv4 Default Gateway

The get/set commands can be used to retrieve or configure the IPv4 default gateway.

Example Command

Set (Configure):

curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/set?param=dfltgw&value=<DefaultGatewayIPAddress>"

Get (Retrieve):

curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/get?dfltgw"

Available Parameters

Parameter

Parameter Type

Parameter Description

Mandatory

param

String

The name of the parameter to be retrieved/configured. In this case, it should be set to dfltgw.

Yes

value

String

The value to set the parameter to. In this case, enter the IPv4 default gateway that is to be used for communicating with the internet.

Yes - if setting.

No - if getting.

Example Output

Set (Configure):

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="OK">
<Success>Set IPv4 default gateway to 172.21.122.1</Success>
</Response>

Get (Retrieve):

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="OK">
<Success><Data><dfltgw>172.21.122.1</dfltgw></Data>
</Success>
</Response>

Get/Set the IPv6 Default Gateway

The get/set commands can be used to retrieve or configure the IPv6 default gateway.

Example Command

Set (Configure):

curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/set?param=dfltgwv6&value=<IPv6DefaultGateway>"

Get (Retrieve):

curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/get?dfltgwv6"

Available Parameters

Parameter

Parameter Type

Parameter Description

Mandatory

param

String

The name of the parameter to be retrieved/configured. In this case, it should be set to dfltgwv6.

Yes

value

String

The value to set the parameter to. In this case, enter the IPv6 default gateway that is to be used for communicating with the internet.

Yes - if setting.

No - if getting.

Example Output

Set (Configure):

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="OK">
<Success>Set IPv6 default gateway to fdce:9b36:e54f:110::40:14/64</Success>
</Response>

Get (Retrieve):

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="OK">
<Success><Data><dfltgw>fdce:9b36:e54f:110::40:14/64</dfltgw></Data>
</Success>
</Response>