Accessing a VLAN

Hey,

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 10.0.1.1 netmask 255.255.255.0

Any idea of what I’m doing wrong ?

Did you bring it up?

ifconfig eth0.7 10.0.1.1 netmask 255.255.255.0 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 10.0.1.1/24 brd 10.0.1.255 dev eth0.7
ip link set dev eth0.7 up