Set Address4 - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Ethernet API

Set Address4

Example: set address4
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"address4" : "8.8.8.8/24"}' https://localhost/api/2.0/eth/address4
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Set Address6
Example: set address6
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"
address6" : "2001::1/64"}' https://localhost/api/2.0/eth/address6
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Set Gateway4
Example: set gateway4
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"
gateway4" : "10.0.0.1"}' https://localhost/api/2.0/eth/gateway4
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Set Gateway6
Example: set gateway4
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"
gateway6" : "2001:2"}' https://localhost/api/2.0/eth/gateway6
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
4-14
Chapter 4
Configuring HTTP API
OL-29491-01

Advertisement

Table of Contents
loading

Table of Contents