Discussion:
[OpenWrt-Devel] ubus call: Command failed: Not found with odhcp6c
Brian J. Murrell
2015-09-25 17:26:11 UTC
Permalink
On BB I'm trying to configure an ISP provided IPv6 (over PPPoE).
odhcp6c seems to work but the script it calls does not. I get a bunch
of "Command failed: Not found" from ubus calls:

+ ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "" }
Command failed: Not found

and

+ ubus call network.interface notify_proto { "action": 0, "link-up": true, "data": { "passthru": "001700202607f2c0000000000000000000000001111111c0000000000000000000000002" }, "keep": false, "ip6addr": [ { "ipaddr": "2007:e2b0:1000:13d:9db:95d:80ac:4ef1", "mask": "64", "preferred": 604796, "valid": 2591996, "offlink": true } ], "routes6": [ { "target": "::", "netmask": "0", "gateway": "fe80::90:1a00:2a4:fee4", "metric": 1024, "valid": 1796 }, { "target": "2007:e2b0:a000:13d::", "netmask": "64", "metric": 256, "valid": 2591996 } ], "ip6prefix": [ "2007:e2b0:f00f:cd00::\/56,86400,86400" ], "dns": [ "2007:e2b0::1", "2007:e2b0::2" ], "interface": "" }
Command failed: Not found

No idea why though. My network configuration for this new IPv6
connection looks like:

config interface 'wan1'
option ifname 'eth0.3'
option proto 'pppoe'
option username 'xxx'
option password 'xxx'
option ppp_redial 'persist'
option peerdns '0'
option defaultroute '0'
option ipv6 '1'

config interface 'wan6'
option ifname 'pppoe-wan1'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option defaultroute '0'
option peerdns '0'

Note that the "wan1" interface ends up being called "pppoe-wan1" when
it is plumbed. I have tried both pppoe-wan1 and wan1 in the ifname for
wan6.

If I hardcode a:

INTERFACE="wan1"

into /lib/netifd/dhcpv6.script:setup_interface() I don't get the secondof the above errors and the ubus calls end up being:

+ ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "" }
Command failed: Not found
+ ubus call network.interface notify_proto { "action": 0, "link-up": true, "data": { "passthru": "001700202607f2c000000000000000000000000111111c0000000000000000000000002" }, "keep": false, "ip6addr": [ { "ipaddr": "2007:e2b0:1000:13d:9db:95d:80ac:4ef1", "mask": "64", "preferred": 604797, "valid": 2591997, "offlink": true } ], "routes6": [ { "target": "::", "netmask": "0", "gateway": "fe80::90:1a00:2a4:fee4", "metric": 1024, "valid": 1797 }, { "target": "2007:e2b0:a000:13d::", "netmask": "64", "metric": 256, "valid": 2591997 } ], "ip6prefix": [ "2007:e2b0:f00f:cd00::\/56,86400,86400" ], "dns": [ "2007:e2b0::1", "2007:e2b0::2" ], "interface": "wan1" }

Notice that the second call above differs from the first one in that
the interface value has "wan1" in it.

It's worth noting that I have a number of other IPv6 interfaces already
on this router, up and functioning perfectly so basic IPv6 is
functional here and this is specific to this interface.

So any ideas why this is all failing?

Cheers,
b.
Hans Dedecker
2015-09-25 19:41:59 UTC
Permalink
Post by Brian J. Murrell
On BB I'm trying to configure an ISP provided IPv6 (over PPPoE).
odhcp6c seems to work but the script it calls does not. I get a bunch
false, "keep": false, "interface": "" }
Command failed: Not found
and
+ ubus call network.interface notify_proto { "action": 0, "link-up": true,
"001700202607f2c0000000000000000000000001111111c0000000000000000000000002"
"2007:e2b0:1000:13d:9db:95d:80ac:4ef1", "mask": "64", "preferred": 604796,
"valid": 2591996, "offlink": true } ], "routes6": [ { "target": "::",
"netmask": "0", "gateway": "fe80::90:1a00:2a4:fee4", "metric": 1024,
"valid": 1796 }, { "target": "2007:e2b0:a000:13d::", "netmask": "64",
"metric": 256, "valid": 2591996 } ], "ip6prefix": [
"2007:e2b0:f00f:cd00::\/56,86400,86400" ], "dns": [ "2007:e2b0::1",
"2007:e2b0::2" ], "interface": "" }
Command failed: Not found
No idea why though. My network configuration for this new IPv6
config interface 'wan1'
option ifname 'eth0.3'
option proto 'pppoe'
option username 'xxx'
option password 'xxx'
option ppp_redial 'persist'
option peerdns '0'
option defaultroute '0'
option ipv6 '1'
config interface 'wan6'
option ifname 'pppoe-wan1'
This is not correct; try option ifname '@wan1'

Hans
Post by Brian J. Murrell
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option defaultroute '0'
option peerdns '0'
Note that the "wan1" interface ends up being called "pppoe-wan1" when
it is plumbed. I have tried both pppoe-wan1 and wan1 in the ifname for
wan6.
INTERFACE="wan1"
into /lib/netifd/dhcpv6.script:setup_interface() I don't get the secondof
false, "keep": false, "interface": "" }
Command failed: Not found
+ ubus call network.interface notify_proto { "action": 0, "link-up": true,
"001700202607f2c000000000000000000000000111111c0000000000000000000000002"
"2007:e2b0:1000:13d:9db:95d:80ac:4ef1", "mask": "64", "preferred": 604797,
"valid": 2591997, "offlink": true } ], "routes6": [ { "target": "::",
"netmask": "0", "gateway": "fe80::90:1a00:2a4:fee4", "metric": 1024,
"valid": 1797 }, { "target": "2007:e2b0:a000:13d::", "netmask": "64",
"metric": 256, "valid": 2591997 } ], "ip6prefix": [
"2007:e2b0:f00f:cd00::\/56,86400,86400" ], "dns": [ "2007:e2b0::1",
"2007:e2b0::2" ], "interface": "wan1" }
Notice that the second call above differs from the first one in that
the interface value has "wan1" in it.
It's worth noting that I have a number of other IPv6 interfaces already
on this router, up and functioning perfectly so basic IPv6 is
functional here and this is specific to this interface.
So any ideas why this is all failing?
Cheers,
b.
_______________________________________________
openwrt-devel mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Loading...