T
T
Talyan2019-09-19 12:30:24
linux
Talyan, 2019-09-19 12:30:24

How to put MAC in the desired VLAN?

Kyu!
Who can tell? Debian has a vlanXXX interface, the interface has the Internet, and DHCP.
Poppies come from the eth1 interface. There is nothing on eth1, no IP address, no DHCP.
How can I make sure that a certain poppy address "gets" automatically into vlanXXX and that it has the Internet, and all other poppies get into, say, vlanYYY?

ebtables -A FORWARD -s D4:6E:0E:1E:AB:DF -i eth1 -o vlanXXX

gives nothing. The MAC address does not fall into the vlanXXX interface and does not receive an IP address.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Ryzhkin, 2019-09-19
@Franciz

Very similar to the need for 802.1x

A
Andrey Barbolin, 2019-09-19
@dronmaxman

More questions than answers. To which interface is the VLAN attached?
Theoretically, you need to put an IP on eth0 and run DHCP on it. A client who needs the Internet must be added to the DHCP reservation so that he always receives the same IP address.
And configure traffic routing between eth0 and vlanXXX with a masquerade.

V
Valentin, 2019-09-23
@vvpoloskin

Tyts . But this is a bad decision. It's better to think about why you want it and find a way more suitable for the router (and the Linux server should be considered from this side) - 802.1x, dynamic logical interfaces aka pppoe/pptp, IPoE, policy based routing, vrf...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question