Gateway send by operator but not set in Pfsense
-
Hello
My conf :- A Netgate 2100 (Pfsense latest version) with a SFP and directly link to my "Orange" operator.
- I am trying to make the DHCP (V4) working.
- I have set the DHCP advance parameter with "Send options" "Request options" and "option modifiers" to act as the operator box.
I get an IP form my Operator and this IP is set in pfsense
But I receive a gateway from my operator in the DHCP exchange (seen in the tcpdump)
=> But Pfsense did not set the gateway?
I need to perform a "add route with the IP of the gateway" to get the connection working.Any idea where to search ?
-
@ewok2
Check the Status > System Logs > DHCP log for regarding dhcpclient lines. Possibly you find out the reason there. -
Oups I thought the dhcpd.log fil was only fot the dhcp server on the LAN :-)
Thanks indeed there are some strange line related to the dhclient (I presume the dialogue between my netgate and the operator.dhclient[78226]: DHCPREQUEST on mvneta0.832 to 80.10.232.229 port 67 dhclient[78226]: DHCPACK from 80.10.232.229 dhclient[78226]: unknown dhcp option value 0x5a dhclient[78226]: unknown dhcp option value 0x7d dhclient[51793]: RENEW dhclient[52869]: Creating resolv.conf dhclient[78226]: bound to **MyIP** -- renewal in 84672 seconds.
Some information...
I have folow a tuto thath work for Pfsense "Opensource" which is not in the same version of freebsd... -
@ewok2
Isn't there something regarding the gateway?
Maybe after you go to Status > Interfaces and renew the WAN IP manually? -
@viragomann
I have made a reboot of the pfsense to be sure to get all gatteway informationhere is the output below
dhclient[21748]: PREINIT dhclient[20994]: DHCPREQUEST on mvneta0.832 to 255.255.255.255 port 67 dhclient[20994]: DHCPREQUEST on mvneta0.832 to 255.255.255.255 port 67 dhclient[20994]: DHCPACK from 80.10.232.229 dhclient[20994]: unknown dhcp option value 0x5a dhclient[20994]: unknown dhcp option value 0x7d dhclient[37477]: REBOOT dhclient[40032]: Starting add_new_address() dhclient[40978]: ifconfig mvneta0.832 inet 92.145.116.**X** netmask 255.255.254.0 broadcast 92.145.117.255 dhclient[41938]: New IP Address (mvneta0.832): 92.145.116.**X** dhclient[42621]: New Subnet Mask (mvneta0.832): 255.255.254.0 dhclient[43364]: New Broadcast Address (mvneta0.832): 92.145.117.255 dhclient[44124]: New Routers (mvneta0.832): 92.145.116.1 dhclient[45095]: Adding new routes to interface: mvneta0.832 dhclient[45496]: Creating resolv.conf dhclient[20994]: bound to 92.145.116.**X** -- renewal in 84672 seconds.
and 3 seconds later :
dhclient[20994]: connection closed dhclient[20994]: exiting. dhclient[63391]: PREINIT dhclient[62308]: DHCPREQUEST on mvneta0.832 to 255.255.255.255 port 67 dhclient[62308]: DHCPACK from 80.10.232.229 dhclient[62308]: unknown dhcp option value 0x5a dhclient[62308]: unknown dhcp option value 0x7d dhclient[67030]: REBOOT dhclient[67961]: Starting add_new_address() dhclient[68375]: ifconfig mvneta0.832 inet 92.145.116.**X** netmask 255.255.254.0 broadcast 92.145.117.255 dhclient[68783]: New IP Address (mvneta0.832): 92.145.116.**X** dhclient[69453]: New Subnet Mask (mvneta0.832): 255.255.254.0 dhclient[69991]: New Broadcast Address (mvneta0.832): 92.145.117.255 dhclient[71101]: New Routers (mvneta0.832): 92.145.116.1 dhclient[71810]: Adding new routes to interface: mvneta0.832 dhclient[72612]: Creating resolv.conf dhclient[62308]: bound to 92.145.116.145 -- renewal in 84672 seconds.
In both sequence I seems I get the gateway ???
PS : The unknown dhcp 0x5a is the option 90, but dispite the message my provider seem's to get what he want as I send me back IP and Gateway
Any idea why the gateway is not set in pfsense?
PPS : X is within 0 - 255 ;-)
-
@ewok2
According the logs, the DHCP client gets a gateway IP and add routes:dhclient[71101]: New Routers (mvneta0.832): 92.145.116.1 dhclient[71810]: Adding new routes to interface: mvneta0.832
The gateway IP is within the WAN subnet. So I expect that the routes can be added properly.
If you check out Diagnostic > Routes don't you see an IPv4 default route?
However, you logs look weird. The log lines seem to be from many different dhclient processes, since they have different PIDs.
I don't think, that they are shown in the correct sequence.
Can you include the time stamp to get a better clue, what's going on? -
@viragomann
Thanks for asking question, problem solved....Some information :
The interval between the 2 parts of log where only 3 seconds
no gateway display in the pfsense...But in System->Routing menu, the default gateway IPV4 was in "automatic"
If I set it to WAN_DHCP it works!!!