# (Off topic but please) RPI VLAN How?

**URL:** <https://discourse.nodered.org/t/off-topic-but-please-rpi-vlan-how/7546>\
**Category:** General\
**Created:** [4 February 2019 03:48 UTC](https://discourse.nodered.org/t/off-topic-but-please-rpi-vlan-how/7546 "2019-02-04T03:48:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [4 February 2019 03:48 UTC](https://discourse.nodered.org/t/off-topic-but-please-rpi-vlan-how/7546/1 "2019-02-04T03:48:44Z")

</div>

**I am sorry for this. But I really am at wit's end**

Recently I was going through the `sudo apt update` and `sudo apt upgrade` on a working RPI.  
It had WAP and a lot of other stuff working.

After the updates, the WAP stopped. It was running Jessie and all/most of the help was "use Stretch". I cut my losses and updated to Stretch.

After a lot of messing around, I got the WAP working. Yeah, I know. Every one says it is easier. But anyway..... I **finally** got it working.

After a lot of thinking about how I want the system working, I wanted to segregate things.  
The "existing" WAP was/is good for some things, but not really nice for other things.

The _other things_ are strictly sensors and stuff. _Other_ Arduino IOT things. They don't need internet access.  
Basically they only need to talk to the WAP - MQTT messages.

For the sake of learning I decided to try setting up multiple WiFi networks from the RPI.  
I discovered that rather than how I originally thought of it, it was said to me at some stage during the search: this is a VLAN.

I get how to set up a WAP, but making the VLAN _device_ has me stumped.  
I get that it will be called something like: _wlan0.x_

I have sat there for hours trying but failing.  
Luckily not as bad as it has been and I had to plug in a monitor and keyboard to get it working.  
_(But that's another story)_

One link adds the VLAN entry in `/etc/network/interfaces` which is fair enough, but reading what it says at the top of that file about `/etc/network/interfaces.d` it makes me wonder.

Anyway: Bottom line, I can't get all the pieces together.  
What I know is that I have to edit:  
`/etc/network/interfaces` (or `/etc/network/interfaces.d/(filename)`)  
`/etc/dnsmasq.conf`  
`/etc/hostapd/hostapd.conf`  
`/etc/dhcpcd.conf`  
There is mention of:

```auto
DAEMON_CONF="/etc/hostapd/hostapd.conf"

```

Then it goes on to NAT stuff.

As I don't need NAT, that part is not really needed.

That DAEMON\_CONF part has me a bit stumped if I have multiple WAPs.

Anyway, without wanting to bore you to bits, that is what I know.

Quick P.S. about the VLAN is this:  
Supposedly to be saved as filename vlans in `/etc/network/interfaces.d/`

```auto
auto eth0.10
iface eth0.10 inet manual
  vlan-raw-device eth0

```

But I would change that to _wlan_ rather than _eth_.

It doesn't seem to work.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 February 2019 07:11 UTC](https://discourse.nodered.org/t/off-topic-but-please-rpi-vlan-how/7546/2 "2019-02-04T07:11:42Z")

</div>

I've never set that up on a Pi or any other Linux device.

I would recommend asking this on Stack. There are 3 communities that might be of help,

## [Super User](https://superuser.com/users/134506/)

Q&A for computer enthusiasts and power users

## [Raspberry Pi](https://raspberrypi.stackexchange.com/users/5659/)

Q&A for users and developers of hardware and software for Raspberry Pi

## [Server Fault](https://serverfault.com/users/119582/)

Q&A for system and network administrators

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [4 February 2019 08:59 UTC](https://discourse.nodered.org/t/off-topic-but-please-rpi-vlan-how/7546/3 "2019-02-04T08:59:03Z")

</div>

I would recommend asking on Raspberry Pi forum itself [https://www.raspberrypi.org/forums/](https://www.raspberrypi.org/forums/)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [5 February 2019 03:27 UTC](https://discourse.nodered.org/t/off-topic-but-please-rpi-vlan-how/7546/4 "2019-02-05T03:27:36Z")

</div>

They - alas - point me to links with varying consistency.

Though I check they are for Stretch, the way of doing it is different on different links.

None of them work.

So it is difficult to know where the problem is.

I get there may be more than one way to do this. But again: none of the ones shown to me work.
