User Tools

Site Tools


linux:vlan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:vlan [2025/10/13 09:55] – [stappenplan] adminlinux:vlan [2025/10/13 11:16] (current) – [Vooraf:] admin
Line 8: Line 8:
 ===== Vooraf:===== ===== Vooraf:=====
   * controleer dat de poort waarop je linux hangt, een **trunk** poort is   * controleer dat de poort waarop je linux hangt, een **trunk** poort is
-    * fysieke switch: trunk met native VLAN (1) +    * fysieke switch: trunk met native VLAN \\ Mative VLAN is de VLAN zonder tagging; doorgaans VLAN tenzij anders geconfigureerd. 
-    * (Esxi): virtuele switch > PortGroup met: +    * (**ESXi**): **virtuele switch > PortGroup** met: 
       * VLAN: **4095**       * VLAN: **4095**
       * Security → Promiscuous Mode → Accept       * Security → Promiscuous Mode → Accept
-      * MAC address changes → Accept+      * MAC address changes → Accept{{ :linux:chatgpt_image_oct_13_2025_11_57_49_am.png?400 |}}\\  
 +        * REJECT: default behaviour: VM ziet enkel verkeer voor eigen MAC  
 +        * ACCEPT: VM ziet alle verkeer uit de portgroup (dus: alle VLANs)  
 +         
 ===== stappenplan===== ===== stappenplan=====
   * log aan op de linux server en voer uit: <code>apt install vlan   * log aan op de linux server en voer uit: <code>apt install vlan
-modpobe 8021q</code>+modprobe 8021q</code>
   * maak een VLAN interface aan <code>ip link add link <nic> name <nic>.<vlanid> type vlan id <vlanid></code>   * maak een VLAN interface aan <code>ip link add link <nic> name <nic>.<vlanid> type vlan id <vlanid></code>
   * ken een IP adres toe <code>ip addr add <IP>/<mask> dev <nic>.<vlanid></code>   * ken een IP adres toe <code>ip addr add <IP>/<mask> dev <nic>.<vlanid></code>
Line 31: Line 34:
     vlan-raw-device <nic>     vlan-raw-device <nic>
 </code> </code>
-  * voorbeeld: +  * voorbeeld: <code> 
 +auto eth0.10 
 +iface eth0.10 inet static 
 +    address 192.168.10.2 
 +    netmask 255.255.255.0 
 +    vlan-raw-device eth0 
 +</code>
  
 ===== meer info ===== ===== meer info =====
linux/vlan.1760349311.txt.gz · Last modified: by admin