Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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.
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 questionAsk a Question
731 491 924 answers to any question