Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@OpenWrt:~# ifstatus wan6
- {
- "up": true,
- "pending": false,
- "available": true,
- "autostart": true,
- "dynamic": false,
- "uptime": 295,
- "l3_device": "eth1.2",
- "proto": "dhcpv6",
- "device": "eth1.2",
- "metric": 0,
- "dns_metric": 0,
- "delegation": true,
- "ipv4-address": [
- ],
- "ipv6-address": [
- {
- "address": "2a02:908:1300:c:24c2:393f:150d:18f",
- "mask": 128,
- "preferred": 302105,
- "valid": 604505
- }
- ],
- "ipv6-prefix": [
- {
- "address": "2a02:908:13c0:b20::",
- "mask": 59,
- "preferred": 302105,
- "valid": 604505,
- "class": "wan6",
- "assigned": {
- "lan": {
- "address": "2a02:908:13c0:b20::",
- "mask": 60
- }
- }
- }
- ],
- "ipv6-prefix-assignment": [
- ],
- "route": [
- {
- "target": "::",
- "mask": 0,
- "nexthop": "fe80::201:5cff:fe79:4646",
- "metric": 512,
- "valid": 1797,
- "source": "2a02:908:13c0:b20::\/59"
- },
- {
- "target": "::",
- "mask": 0,
- "nexthop": "fe80::201:5cff:fe79:4646",
- "metric": 512,
- "valid": 1797,
- "source": "2a02:908:1300:c:24c2:393f:150d:18f\/128"
- }
- ],
- "dns-server": [
- "2a02:908:2:a::1",
- "2a02:908:2:b::1"
- ],
- "dns-search": [
- ],
- "inactive": {
- "ipv4-address": [
- ],
- "ipv6-address": [
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ]
- },
- "data": {
- "passthru": "001700202a0209080002000a00000000000000012a0209080002000b0000000000000001"
- }
- }
- root@OpenWrt:~# ip a s
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- valid_lft forever preferred_lft forever
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 532
- link/ether 60:38:e0:c5:45:b0 brd ff:ff:ff:ff:ff:ff
- inet6 fe80::6238:e0ff:fec5:45b0/64 scope link
- valid_lft forever preferred_lft forever
- 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 532
- link/ether 62:38:e0:c5:45:b0 brd ff:ff:ff:ff:ff:ff
- inet6 fe80::6038:e0ff:fec5:45b0/64 scope link
- valid_lft forever preferred_lft forever
- 5: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN qlen 1000
- link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
- 6: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
- link/ether 60:38:e0:c5:45:b2 brd ff:ff:ff:ff:ff:ff
- 7: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
- link/ether 60:38:e0:c5:45:b1 brd ff:ff:ff:ff:ff:ff
- 8: mlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
- link/ether 60:38:e0:c5:45:b3 brd ff:ff:ff:ff:ff:ff
- 9: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether 62:38:e0:c5:45:b0 brd ff:ff:ff:ff:ff:ff
- inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
- valid_lft forever preferred_lft forever
- inet6 2a02:908:13c0:b20::1/60 scope global dynamic
- valid_lft 604485sec preferred_lft 302085sec
- inet6 fd51:9aeb:e71::1/60 scope global
- valid_lft forever preferred_lft forever
- inet6 fe80::6038:e0ff:fec5:45b0/64 scope link
- valid_lft forever preferred_lft forever
- 10: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
- link/ether 62:38:e0:c5:45:b0 brd ff:ff:ff:ff:ff:ff
- 11: eth1.2@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether 60:38:e0:c5:45:b0 brd ff:ff:ff:ff:ff:ff
- inet6 2a02:908:1300:c:24c2:393f:150d:18f/128 scope global dynamic
- valid_lft 604485sec preferred_lft 302085sec
- inet6 fe80::6238:e0ff:fec5:45b0/64 scope link
- valid_lft forever preferred_lft forever
- 12: ds-wan6_4@eth1.2: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN qlen 1000
- link/tunnel6 2a:02:09:08:13:00:00:0c:24:c2:39:3f:15:0d:01:8f peer 2a:02:09:08:00:00:00:00:00:00:00:00:00:13:40:00
- inet 192.0.0.2 peer 192.0.0.1/32 brd 255.255.255.255 scope global ds-wan6_4
- valid_lft forever preferred_lft forever
- inet6 fe80::a061:abff:fe10:5749/64 scope link
- valid_lft forever preferred_lft forever
- root@OpenWrt:~# ip r s
- default dev ds-wan6_4 scope link
- 192.0.0.1 dev ds-wan6_4 scope link src 192.0.0.2
- 192.168.1.0/24 dev br-lan scope link src 192.168.1.1
- root@OpenWrt:~#
Add Comment
Please, Sign In to add comment