OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of L4ngel0t »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - L4ngel0t

Pages: [1]
1
22.1 Legacy Series / VLAN and DHCP not working
« on: April 27, 2022, 03:45:34 pm »
Hello,

i'm running a minipc as a router/firewall with OPNsense 22.1.2_2-amd64.

At the moment, i just would like something like this:

OPNSense mini PC <---> igb2_vlan80 : Host1 (VLAN 80)
                           <---> igb3_vlan20 (VLAN 20)
                                                 

At the moment, i'm only able to get DHCP working on I_LABO physical interface (igb2). It's working well, my host get the 192.168.80.2 IP and is able to ping the minipc.

When i assign the igb2_vlan80 to the I_LABO interface, DHCP doesn't work anymore. The host doesn't get any ipv4 (only 169.254.x.y).
I created a VLAN like this : parent interface = igb2, tag = 80 and pcp = 0.
This vlan is assigned to the I_LABO interface, activated with Static IP 192.168.80.1/24.
DHCP is enabled for this interface from 192.168.80.2 to 192.168.80.254.

IDS and VLAN HW filtering are disabled.

I don't understand what is missing to get DHCP working with igb2_vlan80 interface ??
Could you help me please ?


Edit : should I configure something related to vlan on the hosts ?  i test with W10 and Rapsberry PI4.

2
French - Français / DHCP et VLAN sur plusieurs interfaces
« on: April 08, 2022, 05:07:05 pm »
Bonjour,

je réfléchis à positionner un routeur/fw Opnsense 2.21 derrière ma Freebow mini 4k.
J'aimerais connecter au fw un autre routeur compatible 802.1q pour servir d'AP wifi et filaire. Il ne jouerait donc plus le rôle de routeur. Je voudrais aussi mettre en place au moins 3 VLAN répartis sur les différentes interfaces du routeur et de l'AP.
Le DHCP serait géré par le routeur/fw.

Ca donne ca :

Freebox <---- WAN ----> Routeur/FW OPNsense  <---- eth0 ----> Acces Point (DD-WRT)

Est-il possible de faire en sorte que mes VLAN soient à la fois associés aux ports du routeur et aux ports/ssid de mon access point ?   
D'après ce que j'ai compris, il faut que je mette en place un lien trunk entre le routeur et l'AP.

Au niveau d'OPNSense, j'ai donc défini 3 VLAN différents que j'ai assigné à plusieurs interfaces, dont eth0.
Par exemple :
eth0.20
eth0.30
eth0.40
eth1.20
eth2.30

Ensuite, du côté de l'AP, j'imagine associer les tags VLAN à mes différentes interfaces (ethX et wlanX).
 
Sur OPNSense, quand j'essaye de mettre en place cette config, j'ai un problème de DHCP qui m'empeche d'attribuer la même plage d'IP aux interfaces qui sont dans le même VLAN. Par exemple eth0.20 et eth1.20 ne peuvent pas avoir la plage 192.168.20.0/24.
Est-ce que je suis obligé de découper la plage ?
N'est-il pas possible d'attribuer une plage d'IP à un tag vlan ?

                                       

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2