Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ curl -d '{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "2d4cd44e609baf09f43c7b0928dcd840", "network.interface", "dump", { } ] }' http://10.11.12.13/ubus
- {"jsonrpc":"2.0","id":1,"result":[0,{"interface":[{"interface":"henet","up":true,"pending":false,"available":true,"autostart":true,"uptime":1532661,"l3_device":"6in4-henet","proto":"6in4","updated":["addresses","routes","prefixes"],"metric":0,"delegation":true,"ipv4-address":[],"ipv6-address":[{"address":"2001:470:xxx::2","mask":128}],"ipv6-prefix":[{"address":"2001:470:xxx::","mask":48,"class":"henet","assigned":{"lan":{"address":"2001:470:xxx::","mask":64},"vpn":{"address":"2001:470:xxx:1::","mask":64}}}],"ipv6-prefix-assignment":[],"route":[{"target":"::","mask":0,"nexthop":"::","source":"2001:470:xxx::\/48"},{"target":"::","mask":0,"nexthop":"::","source":"::\/128"},{"target":"::","mask":0,"nexthop":"::","source":"2001:470:xxxa::2\/128"}],"dns-server":[],"dns-search":[],"inactive":{"ipv4-address":[],"ipv6-address":[],"route":[],"dns-server":[],"dns-search":[]},"data":{}},{"interface":"lan","up":true,"pending":false,"available":true,"autostart":true,"uptime":1532666,"l3_device":"br-lan","proto":"static","device":"br-lan","updated":["addresses","routes"],"metric":0,"delegation":true,"ipv4-address":[{"address":"10.11.12.13","mask":24}],"ipv6-address":[],"ipv6-prefix":[],"ipv6-prefix-assignment":[{"address":"2001:470:xxx::","mask":64},{"address":"fd73:c6fb:ef8::","mask":64}],"route":[{"target":"10.11.13.0","mask":24,"nexthop":"10.11.12.18","source":"0.0.0.0\/0"},{"target":"192.168.100.0","mask":24,"nexthop":"10.11.12.7","source":"0.0.0.0\/0"}],"dns-server":[],"dns-search":[],"inactive":{"ipv4-address":[],"ipv6-address":[],"route":[],"dns-server":[],"dns-search":[]},"data":{}},{"interface":"loopback","up":true,"pending":false,"available":true,"autostart":true,"uptime":1532667,"l3_device":"lo","proto":"static","device":"lo","updated":["addresses"],"metric":0,"delegation":true,"ipv4-address":[{"address":"127.0.0.1","mask":8}],"ipv6-address":[],"ipv6-prefix":[],"ipv6-prefix-assignment":[],"route":[],"dns-server":[],"dns-search":[],"inactive":{"ipv4-address":[],"ipv6-address":[],"route":[],"dns-server":[],"dns-search":[]},"data":{}},{"interface":"unk","up":false,"pending":false,"available":false,"autostart":true,"proto":"none","device":"eth4","data":{},"errors":[{"subsystem":"proto","code":"INVALID_PROTO"}]},{"interface":"vpn","up":true,"pending":false,"available":true,"autostart":true,"uptime":1532643,"l3_device":"gw-madrid","proto":"static","device":"gw-madrid","updated":["addresses","routes"],"metric":0,"delegation":true,"ipv4-address":[{"address":"10.8.0.2","mask":24},{"address":"10.9.0.2","mask":24}],"ipv6-address":[{"address":"fd73:c6fb:ef9::3","mask":64}],"ipv6-prefix":[],"ipv6-prefix-assignment":[{"address":"2001:470:xxx:1::","mask":64},{"address":"fd73:c6fb:ef8:1::","mask":64}],"route":[{"target":"::","mask":0,"nexthop":"fd73:c6fb:ef9::2","table":1,"source":"::\/0"},{"target":"0.0.0.0","mask":0,"nexthop":"10.8.0.1","table":1,"source":"0.0.0.0\/0"}],"dns-server":[],"dns-search":[],"inactive":{"ipv4-address":[],"ipv6-address":[],"route":[],"dns-server":[],"dns-search":[]},"data":{}},{"interface":"wan","up":true,"pending":false,"available":true,"autostart":true,"uptime":1532662,"l3_device":"eth1","proto":"dhcp","device":"eth1","metric":0,"delegation":true,"ipv4-address":[{"address":"xxx.65.49","mask":21}],"ipv6-address":[],"ipv6-prefix":[],"ipv6-prefix-assignment":[],"route":[{"target":"0.0.0.0","mask":0,"nexthop":"xxx.71.254","source":"0.0.0.0\/0"}],"dns-server":["192.168.0.1","8.8.8.8","8.8.4.4","83.169.186.33","83.169.186.97"],"dns-search":[],"inactive":{"ipv4-address":[],"ipv6-address":[],"route":[],"dns-server":[],"dns-search":[]},"data":{}}]}]}
Advertisement
Add Comment
Please, Sign In to add comment