0
I don't understand why I can ping between 10.0.3.* and 192.168.1.* if are in different subnets. I search for it but I don't find any that clarifies it to me. I would appreciate any help, docs, diagrams. Thank you.
This is my ifconfig
lo Link encap:Bucle local
Direc. inet:127.0.0.1 Másc:255.0.0.0
Dirección inet6: ::1/128 Alcance:Anfitrión
ACTIVO BUCLE FUNCIONANDO MTU:65536 Métrica:1
lxcbr0 Link encap:Ethernet direcciónHW 68:14:01:xx:xx:xx
Direc. inet:10.0.3.1 Difus.:10.0.3.255 Másc:255.255.255.0
Dirección inet6: fe80::883d:xx:xx:xx/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
vethB8L38G Link encap:Ethernet direcciónHW 68:14:01:xx:xx:xx
Dirección inet6: fe80::fcb4:xx:xx:xx/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
wlan0 Link encap:Ethernet direcciónHW 68:14:01:xx:xx:xx
Direc. inet:192.168.1.68 Difus.:192.168.1.255
Másc:255.255.255.0
Dirección inet6: fe80::6a14:xx:xx:xx/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
And my ip route
default via 192.168.1.1 dev eth0 proto static
10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.68 metric 9
my LXC container IP 10.0.3.43
So if I understand, when I ping google.com from container (IP 10.0.3.43) it goes through 10.0.3.1 gateway and from there Linux system act like a router and send it by any network interface to router. 10.0.3.43 --> 10.0.3.1 --> Linux system --> wlan0 --> Router – limit2001 – 2018-08-24T10:14:00.597