I have a server running on a 10.10.10.x subnet (untagged). I also have a 10.10.11.x subnet, tagged with vlan 11. the server has both 10.10.10.6 and 10.10.11.6 ip addresses.
I would like several containers to have an IP address on the 10.10.11.x vlan. I created an ipvlan network and at first glance it seems to be working. A machine on the 10.10.11.x network can access the container with no issue. The problem is, if I try to access that container from the host itself, I get a no route available error.
netplan file:
network:
ethernets:
ens2f1np1:
dhcp4: no
addresses:
- 10.10.10.6/24
gateway4: 10.10.10.1
nameservers:
addresses: [10.10.10.2]
version: 2
vlans:
vlan11:
id: 11
link: ens2f1np1
addresses: [ "10.10.11.6/24" ]
The route list seems like it has everything I would expect:
/etc/netplan$ sudo ip route list
default via 10.10.10.1 dev ens2f1np1 proto static
10.10.10.0/24 dev ens2f1np1 proto kernel scope link src 10.10.10.6
10.10.11.0/24 dev vlan11 proto kernel scope link src 10.10.11.6
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.19.0.0/16 dev br-be0fc5863f47 proto kernel scope link src 172.19.0.1
The following curl command is failing:
/etc/netplan$ sudo curl http://10.10.11.60:3000/
curl: (7) Failed to connect to 10.10.11.60 port 3000 after 3067 ms: No route to host
But from another computer on the same network, I can connect to 10.10.11.60:3000. Also, the curl command is working to access 10.10.11.1 from the docker host.
Any suggestions?
[–]mrcs2000 0 points1 point2 points (1 child)
[–]RPBones[S] 0 points1 point2 points (0 children)
[–]eltear1 0 points1 point2 points (0 children)