DHCP client doesnt work on VLAN
-
Hello all, Im have this problem about DHCP with VLAN TAG.
Mikrotk RB ----> PFsense---->Internet
DHCP ----------- Gateway
Router ---------- IDS/IPS
VLAN
DNSMy config:
br0 --> WAN
br1 --> WAN2
re0 --> LAN
Setting LAN on DHCP without VLAN works fin. But when assing an interface to re0 doesnt work properly.
VLAN 1001 on re0 (dhcp client)
VLAN 1002 on re0 (dhcp client)My LAN inteface work like a trunk
VLAN 1001 TAGGED
VLAN 1002 TAGGEDWhen set the config works few minutes then they lost address. This I got on logs.:
Any ideas!?
Thanks!
-
@frayper huh? So your trying to setup a vlan on your lan interface as dhcp client? So this is going to be a new wan connection coming in on your lan side interface? Where is it talking too? What is connected too? What switch, did you tag the vlans there? What is providing dhcp?
-
@johnpoz ook.. all configuration of the network its on Mikrotik RB. DNS, DHCP on VLAN interfaces etc.
My idea is to config the pfsense like a Gateway and IDS/IPS.Mikrotk RB --------------------------------> PFsense----------------------->Internet
10.1.1.0/24 vlan1001 (DHCP server)
10.2.1.0/24 vlan1002 (DHCP server)Pfsense connected to Mikrotik on LAN port, I tagged both VLAN on this interface.
(Its a PC with 3 NIC)bge0 --> WAN
bge1 --> WAN2
re0 --> LAN
VLAN 1001 on re0
VLAN 1002 on re0I want Psense set the IP on DCHP 10.1.1.254/24 and 10.2.1.254/24 to be the gateway of this networks.
help something ? more clear now what i want to do? Its wrong my settup?
-
This post is deleted! -
@frayper said in DHCP client doesnt work on VLAN:
DHCP on VLAN interfaces etc
You want pfsense to be the dhcp server for this vlan?
But your log shows it sent out a discovery as a dhcp client..
Here is a dhclient asking for IP and getting a renewal, my wan interface.
This is pfsense being a dhcp server and answer a clients request for an IP
Your trying to setup a lan side interface on pfsense and you want it to be a dhcp client? Or you want pfsense to be the dhcp server for these network.
I am just confused at what your wanting to do exactly..
-
@johnpoz ok ok i see u dont getting my point.. I try to explain..
I want the pfsense take the ip .254 of both network to be the gateway. But i got this error on the log.
More clear? -
@frayper what is the point of the RB, you want to use that as a downstream router?? But you want pfsense to be your router for the vlans?
I don't get trying to setup a local interface as dhcp client.. Why would you do that? Here
https://forum.netgate.com/post/393642
Set LAN IP via DHCPYou could always run into the dhcp handing out a gateway, so pfsense would think its a wan.
If you want pfsense to be the gateway for your lan side networks, where your RB downstream is just L2 then set them as static IPs. But that RB is normally used as a router (L3).. So not sure what your thinking is going be setup here.
If you want pfsense to be the gateway for those 2 networks, then you just need a L2 switch.