I have two hosts that I need to create individual tunnels
between br0 interfaces and also
between br0:0 interfaces.
host1: host1 host2
br0:192.168.11.22 <-tunnel-> br0: 192.168.5.22
br0:0 192.168.11.23<- tunnel->br0:0 192.168.5.23
I am running l2tpd on both hosts.
I do not need to create any (ppp or some other)
sessions on any tunnels, just want multiple tunnels.
Whenever I create the tunnel to br0:0 of host2 from
host1 with the following command:
l2tp-control start-session 192.168.5.23
I see that the host2 reveives the packets from the br0
(rather than br0:0) of host1
(i.e. 192.168.11.22) and then responds to it also via the
br0 ie 192.168.5.22 and not
the br0:0 (i.e. 192.168.5.23) as required.
The source address of br0:0 on host1 is not being
utilized as a source address.
So the issues are as follows:
How do I specify the source address (br0:0) of the
host1 to establist the tunnel to br0:0 on host2?
How do I create more than one tunnel between these
hosts? Currently the same socket is used only for
My presumption is that I need to modify the code to
create additional sockets on both hosts
to create additional tunnel end points. And then
somehow bind each client socket to an interface. Is this