Why 2 instances of odhcp6c running?

I'm an OpenWrt noob, trying to get multiple /64 blocks delegated by DHCPv6.
When I look at the output of ps I see two instances of odhcp6c:

odhcp6c -s /lib/netifd/dhcpv6.script -Ntry -P64 -P64 -P64 -P64 -t120 eth0.2
odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 pppoe-wan

The one with the 4 -P64 arguments is my attempt to get the 4 blocks delegated, I don't see where the other one has come from.

/etc/config/network includes:

config device
	option name 'eth0.2'
	option macaddr 'c0:06:c3:98:bf:7a'

config interface 'wan'
	option device 'eth0.2'
	option proto 'pppoe'
	option username 'xxxx@a.1'
	option password 'SECRET'
	option ipv6 'auto'
	list ip6class 'wan6'

config interface 'wan6'
	option device 'eth0.2'
	option proto 'dhcpv6'
	option defaultroute '1'
	option sourcefilter '0'
	option reqaddress 'try'
	option reqprefix '64 -P64 -P64 -P64'

I'm only getting one /64 block delegated.

Andrew

When a pppoe ISP advertises IPv6 is available (and OpenWrt pppoe is configured to accept it), the pppoe scripts start another interface called wan_6 and run odhcp6c on it. This is not the same as the wan6 (no underscore, so a completely different name) which is present in the default configuration. wan6 should be deleted as wan_6 will handle the IPv6 connection when using pppoe.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.