My platform is nanopi r2s, and latest snapshot.
root@R2S:~# ifstatus cc
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 2942,
"l3_device": "pppoe-cc",
"proto": "pppoe",
"device": "eth0.139",
"updated": [
"addresses",
"routes"
],
"metric": 20,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "10.28.147.88",
"mask": 32,
"ptpaddress": "10.28.144.1"
}
],
"ipv6-address": [
{
"address": "fe80::6c14:a39b:2e4b:763e",
"mask": 128
}
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "212.172.0.0",
"mask": 13,
"nexthop": "0.0.0.0",
"source": "0.0.0.0/0"
},
{
"target": "0.0.0.0",
"mask": 1,
"nexthop": "0.0.0.0",
"table": 139,
"source": "0.0.0.0/0"
},
{
"target": "128.0.0.0",
"mask": 1,
"nexthop": "0.0.0.0",
"table": 139,
"source": "0.0.0.0/0"
},
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "10.28.144.1",
"source": "0.0.0.0/0"
}
],
"dns-server": [
"212.172.177.19",
"212.172.158.22"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
But the custom route rules don't apply correctly.
root@R2S:~# ip r show table 139
172.30.1.0/24 dev br-lan proto static scope link
It should be
root@R2S:~# ip r show table 139
0.0.0.0/1 dev pppoe-cc proto static scope link metric 20
128.0.0.0/1 dev pppoe-cc proto static scope link metric 20
172.30.1.0/24 dev br-lan proto static scope link
Unfortunately, I can not reproduce this bug every time, It happens occasionally when the pppoe interface reconnect periodically every 24 hours.