Accessing a VLAN


Hey I can’t find a way to use a Virtual LAN (10.0.1.*/24) from the container.
My app can’t see other devices but other devices can see my VLAN IP.

This is how I created my interface:
ifconfig eth0.7 netmask

Any idea of what I’m doing wrong ?

Did you bring it up?

ifconfig eth0.7 netmask up

I’ve having a different problem with VLANs myself, but I won’t hijack your thread :slight_smile:

Yeah my interface is up :slight_smile:

I have some update on this issue, I think I resolved the problem by using ip:
ip link add link eth0 name eth0.7 type vlan id 7
ip addr add brd dev eth0.7
ip link set dev eth0.7 up