Hello all.
I have just started using and learning FreeBSD just for fun.
It has been going fine but now I have a little problem connecting to the Internet. I can connect just fine when I have
in my /etc/rc.conf file. But I have come across several examples that don't do this and instead sets the IP address and related stuff manually in this file. So this is what I did:
With DHCP enabled, I performed
From the result, I took the IP address and netmask: xxx.yy.213.212 and 255.255.255.255
I also performed
From the output, I took the first entry in the "Gateway" column (xxx.yy.212.1), which I assumed is the default router.
I then opened up the /etc/rc.conf file, removed the ifconfig_bge0="DHCP" line and entered the following lines:
The entry for the hostname was what was given to me in the DHCP configuration screen when I first installed the system. At that time (in the DHCP configuration screen), the "Domain" field was automatically filled in with "phub.net.cable.myISP.com". When I tried to enter my desired hostname (Scooby) in the "Host" field, it would be automatically prefixed to the domain, so my host name ended up being "scooby.phub.net.cable.myISP.com", and that is the response I get from using the hostname(1) command.
With these changes and after rebooting, there is no Internet access. I can ping my IP address but I cannot ping the default router address or anything else.
I guess this is a very basic issue but I don't know what the problem is. Anyone have any advice?
I have just started using and learning FreeBSD just for fun.

Code:
ifconfig_bge0="DHCP"
in my /etc/rc.conf file. But I have come across several examples that don't do this and instead sets the IP address and related stuff manually in this file. So this is what I did:
With DHCP enabled, I performed
Code:
# ifconfig
From the result, I took the IP address and netmask: xxx.yy.213.212 and 255.255.255.255
I also performed
Code:
# netstat -rn
From the output, I took the first entry in the "Gateway" column (xxx.yy.212.1), which I assumed is the default router.
I then opened up the /etc/rc.conf file, removed the ifconfig_bge0="DHCP" line and entered the following lines:
Code:
ifconfig_bge0="inet xxx.yy.213.212 netmask 255.255.255.255"
defaultrouter="xxx.yy.212.1"
hostname="scooby.phub.net.cable.myISP.com"
The entry for the hostname was what was given to me in the DHCP configuration screen when I first installed the system. At that time (in the DHCP configuration screen), the "Domain" field was automatically filled in with "phub.net.cable.myISP.com". When I tried to enter my desired hostname (Scooby) in the "Host" field, it would be automatically prefixed to the domain, so my host name ended up being "scooby.phub.net.cable.myISP.com", and that is the response I get from using the hostname(1) command.
With these changes and after rebooting, there is no Internet access. I can ping my IP address but I cannot ping the default router address or anything else.
I guess this is a very basic issue but I don't know what the problem is. Anyone have any advice?