I have a VLAN configuration which i wish to add to Debian 11 Debian GNU/Linux 11 (bullseye) but no success. I followed the tutorial on internet. Although VLAN is added but i can not ping the VLAN address. Surperisingly i also experimented to add VLAN on Ubuntu server (Ubuntu 22.04.2 LTS) it worked flawlessly and the ping was also working.
On Debian 11 i tired:
Code:
#apt install vlan
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
vlan is already the newest version (2.0.5).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded
root@air:~# modprobe 8021q
root@air:~# lsmod | grep 8021q
8021q 32768 0
garp 16384 1 8021q
#nano /etc/network/interfaces.d/vlans
auto vlan40
iface vlan40 inet static
address 10.54.252.3
netmask 255.255.254.0
gateway 10.54.252.1
dns-nameservers 10.53.2.200
vlan-raw-device wlan0
#ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether e4:5f:01:33:0b:00 brd ff:ff:ff:ff:ff:ff
inet 10.53.30.98/16 brd 10.53.255.255 scope global dynamic noprefixroute eth0
valid_lft 42461sec preferred_lft 37061sec
inet6 fe80::2d3b:4d78:11d6:e24d/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e4:5f:01:33:0b:01 brd ff:ff:ff:ff:ff:ff
inet 10.54.252.128/23 brd 10.54.253.255 scope global noprefixroute wlan0
valid_lft forever preferred_lft forever
inet6 fe80::3a63:2117:ee26:688e/64 scope link
valid_lft forever preferred_lft forever
5: vlan40@wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e4:5f:01:33:0b:01 brd ff:ff:ff:ff:ff:ff
inet 10.54.252.3/23 brd 10.54.253.255 scope global vlan40
valid_lft forever preferred_lft forever
inet6 fe80::cdb1:77d5:c854:1787/64 scope link
valid_lft forever preferred_lft forever
inet6 fe80::e65f:1ff:fe33:b01/64 scope link tentative
valid_lft forever preferred_lft forever
~# sysctl -p
net.ipv4.ip_forward = 1
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Moreover as soon as VLAN is added i can also not ping the wlan0 IP.
On ubuntu serve i added the VLAN by editing netplan file and it working. If it is interesting my hardware is Raspberry pi 4.