Help needed to re-connect FreeBSD to internet

Polytropon freebsd at
Wed Mar 9 08:11:44 UTC 2016

On Wed, 9 Mar 2016 13:29:10 +0530, Manish Jain wrote:
> Help from the service provider got the Windows system working again. I 
> enabled Internet Connection Sharing and replaced DHCP with 
> for the PC and for the Wi-Fi modem (default_router). While 
> the Windows connects to the internet now, the FreeBSD box remains stuck 
> with roughly those same settings.

You should now reproduce the change of settings that made "Windows"
connect again with FreeBSD. Probably you have wrong configuration

> ifconfig re0 :
> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>      ether 50:46:5d:66:fd:10
>      inet netmask 0xff000000 broadcast
>      media: Ethernet autoselect (100baseTX <full-duplex>)
>      status: active

You don't have an IP associated with the netword interface. As
you stated above, is now to be used for the PC. Adjust
/etc/rc.conf accordingly:

	ifconfig_re0="inet netmask 0xffffff00"

That should bring the desired functionality back. Also check with
the provider if there was any change regarding name servers or
default gateway.

> pinging produces 'no route to host' and 100.0% packet loss. 


> At boot-time, the system seems to attempt getting a DHCP lease multiple 
> times without success.

Obviously, there is no "DHCP server" in the modem anymore, and as
you've configured a static IP for "Windows", doing the same for
FreeBSD should work. Remove


from /etc/rc.conf (or put a # infront of it).

> cat /etc/resolv.conf :
> nameserver

Hmmm... that's outside of your subnet (which is 192.168.10.*).

> cat /etc/rc.conf :
> hostname="freebsd10dot2.amd64.local"
> ifconfig_re0="DHCP"

This is the problem. FreeBSD expects a DHCP server to assign it
an IP address, but there is none (as you had to manually configure
a static IP for the client).

> Can someone please point me to what might be the error/changes needed 
> for my FreeBSD box to connect to internet again ? Thank you.

The same change as in "Windows". You might even be able to check
(maybe required) different settings for gateway and NS from the
running (working) "Windows" instance.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list