Help needed to re-connect FreeBSD to internet
freebsd at edvax.de
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 192.168.10.3
> for the PC and 192.168.10.1 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 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> media: Ethernet autoselect (100baseTX <full-duplex>)
> status: active
You don't have an IP associated with the netword interface. As
you stated above, 192.168.10.3 is now to be used for the PC. Adjust
ifconfig_re0="inet 192.168.10.3 netmask 0xffffff00"
That should bring the desired functionality back. Also check with
the provider if there was any change regarding name servers or
> pinging 192.168.1.1 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 192.168.1.1
Hmmm... that's outside of your subnet (which is 192.168.10.*).
> cat /etc/rc.conf :
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.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions