Hello all.
Help me please set up a tunnel IP-IP.
There are three subnets:
192.168.11.0/24 Int. IP: xx.xx.xx.xx (my server)
192.168.22.0/24 Int. IP: zz.zz.zz.zz
192.168.33.0/24вн. IP: zz.zz.zz.zz
The second and third subnets external IP identical
Help me please set up a tunnel IP-IP.
There are three subnets:
192.168.11.0/24 Int. IP: xx.xx.xx.xx (my server)
192.168.22.0/24 Int. IP: zz.zz.zz.zz
192.168.33.0/24вн. IP: zz.zz.zz.zz
The second and third subnets external IP identical
Code:
I set up a tunnel between from the first and second subgrid seq. this:
ifconfig gif0 create
ifconfig gif0 192.168.11.1 192.168.22.1
ifconfig gif0 tunnel xx.xx.xx.xx zz.zz.zz.zz
ifconfig gif0 mtu 1500 up
route add -net 192.168.22.0/24-interface gif0
when I set up next subnet
ifconfig gif0 create
ifconfig gif0 192.168.11.1 192.168.22.1
ifconfig gif0 tunnel xx.xx.xx.xx zz.zz.zz.zz
Following this line falls error
Ifconfig: SIOCSIFPHYADDR: Can't assign requested address.