I have a problem with my Raspberry pi. I have connected the PI to the wifi while setting it up for the first time and the internet access worked perfectly but when I connect it to a VLAN which does not have access to internet the connection to the internet is stopped. It seems that the PI automatically switches to the VLAN connection and then I cannot access the internet from the Pi. I need both the VLAN and wifi to work simultaneously as I need to push data to the cloud. Is it possible to have them working at the same time.

Thanks Bipra

  • Possible duplicate of Static IP Issues For wlan0 and eth0
    – Ingo
    May 3, 2019 at 16:20
  • 1
    What is the meaning of "VLAN" in this context? Do you mean "LAN"? How is the LAN interface configured? Do you have a DHCP server that sets a default gateway?
    – RalfFriedl
    May 3, 2019 at 17:00
  • "VLAN" sounds like a weird synonym for VPN, is that what you mean? May 14, 2019 at 12:04
  • VLAN is a logical separation of different networks that share the same hardware. en.wikipedia.org/wiki/Virtual_LAN
    – kwasmich
    Sep 30, 2020 at 6:14

1 Answer 1


Your question provides insufficient information to provide a definitive answer, but Prevent dhcpcd from configuring a gateway on an interface in How to set up networking/WiFi describes a solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.