[LEDE-DEV] [PATCH netifd 1/2] proto: add point-to-point IPv4 address config support (FS#1037)
Stijn Tintel
stijn at linux-ipv6.be
Wed Oct 18 09:25:47 PDT 2017
On 17-10-17 23:16, Hans Dedecker wrote:
> Add config support support for point-to-point IPv4 addresses by providing
> the uci parameter ptpaddr. This allows to support a gateway being in a
> different subnet than the assigned IP by modeling the local IP having a
> point-to-point address.
> This is similar to the point-to-point IPv4 address support already present
> for the protocol handlers.
Hey Hans, thanks a lot for this. I tested it on my LEDE VM running @
OVH, and this works fine with the following config:
config interface 'wan'
option ifname 'eth1'
option proto 'static'
option ipaddr '52.36.x.x'
option gateway '176.31.101.254'
option ptpaddr '176.31.101.254'
Maybe we could automatically add the gateway as peer in case it is in a
different subnet than the ipaddr, so that we don't have to specify the
same address for two different options? Or is that too much assumption?
Either way:
Tested-by: Stijn Tintel <stijn at linux-ipv6.be>
Stijn
More information about the Lede-dev
mailing list