dhclient gets address but no address on the interface

Started by liotier, March 04, 2022, 09:20:49 PM

Previous topic - Next topic
I followed the OPNsense SFR/RED France GPON FTTH IPv4 method (https://docs.opnsense.org/manual/how-tos/sfr_red_fr_ftth.html ) for OPNsense 22.1.

Looked like success: the logs show OPsense gets an IP adress and a gateway through DHCP - and those addresses indeed belong to my ISP:

2012-01-02T19:18:21   Notice   dhclient   New Routers (re1): 77.130.43.1   
2012-01-02T19:18:21   Notice   dhclient   New Broadcast Address (re1): 77.130.43.255   
2012-01-02T19:18:21   Notice   dhclient   New Subnet Mask (re1): 255.255.255.0   
2012-01-02T19:18:21   Notice   dhclient   New IP Address (re1): 77.130.43.240


But that IP address isn't attached to interface. On the console, ifconfig shows:

re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: WAN
        options=82088<VLAN_MTU,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 60:35:c0:3c:66:10
        hwaddr 00:e0:b4:13:5c:42
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active


I don't understand. What did I miss ?


Hi,

Quote from: liotier on March 10, 2022, 10:34:04 AM
Might be related to https://unix.stackexchange.com/questions/413232/dhclient-says-its-bound-to-address-but-ifconfig-doesnt - but what would be the OPNsense equivalent of that ?
the ip command does not exist in OPNsense/FreeBSD.

But the issue might be the RealTek driver. To you use the build-in driver or the one plugin one (os-realtek-re)? If you use the build-in one, try the plugin.

KH

> the issue might be the RealTek driver. To you use the build-in driver or the one plugin one (os-realtek-re)? If you use the build-in one, try the plugin

You mean the realtek-re plugin ? I'm using OPNsense 22.1's default. I can't imagine how a driver issue might prevent IP address allocation but I'll try that tonight ! I hope that the plugin driver is bundled on the default install.