Debian9.5 set multiple vlans ip on one NIC in DELL R710

1, If you met this error while restart network: 

Nov 08 11:07:07 debian kernel: bnx2 0000:01:00.0: firmware: failed to load bnx2/bnx2-mips-09-6.2.1b.fw (-2)
Nov 08 11:07:07 debian kernel: bnx2 0000:01:00.0: Direct firmware load for bnx2/bnx2-mips-09-6.2.1b.fw failed with error -2

You need to install the NIC driver: DELL_LAN.iso : mount the iso, 

mount -t iso9660 DELL_LAN.iso /dstdir

and use command `dpkg -i *.deb` install the two deb packages in the iso.

2, Install the `vlan` package or use this deb package vlan_1.9-3.2+b1_amd64.deb which is download from offical website or download from this website vlan_1.9-3.2+b1_amd64.deb .

3, Add such like this configure in the network conf file: "/etc/network/interface"

auto vlan170
iface vlan170 inet static
    vlan-raw-device eno1

auto vlan174
iface vlan174 inet static
    vlan-raw-device eno1

and then, restart the networking.

4, Run the cmd `ip r s` will get some route rule like this (these will be generate automatic):

root@debian:~# ip r s
default via dev vlan170 onlink dev vlan170 proto kernel scope link src dev vlan174 proto kernel scope link src

Finish or you can change the route rule by yourself.

Leave a Reply