I'm thinking this happened as a result of the 1.5.0->1.5.2 upgrade. The FreeBSD 6.2 install ISO can't access the network. It pulls an IP address properly, but it can't resolve any hostnames.
An already-installed FreeBSD 6.2 that was working fine before the upgrade exhibits a similar problem.
FreeBSD 6.2 Network issues (Linux host)
The "ifconfig pcn0 media 10baseT/UTP" line seems to solve my issues with FreeBSD 6.3 RC and 7.0 betas! YAY!Toitoine wrote:I have the same problem and I use the following work around :
execute this kind of script:
#!/bin/bash
ifconfig pcn0 down
ifconfig pcn0 media 10baseT/UTP
ifconfig pcn0 up
dhclient pcn0
-
- Posts: 2
- Joined: 29. May 2008, 20:21
Simple script to correct this issue
Place the script below in /usr/local/etc/rc.d/mynetwork
Feel free to rename the file or the name of the service it provides (mynetwork) to suit your needs.
Make the following changes to /etc/rc.conf:
1. Remove any line activating DHCP on the pcn0 interface, such as
ifconfig_pcn0="DHCP"
2. Add the line
mynetwork_enable="YES"
This script will manually adjust the media type of the interface and then call dhclient to retrieve an IP address. It is not robust in the slightest and, if it turns out to be useful, I would like to see improvements upon it.
Cheers!
------------------------------
Feel free to rename the file or the name of the service it provides (mynetwork) to suit your needs.
Make the following changes to /etc/rc.conf:
1. Remove any line activating DHCP on the pcn0 interface, such as
ifconfig_pcn0="DHCP"
2. Add the line
mynetwork_enable="YES"
This script will manually adjust the media type of the interface and then call dhclient to retrieve an IP address. It is not robust in the slightest and, if it turns out to be useful, I would like to see improvements upon it.
Cheers!
------------------------------
Code: Select all
#!/bin/sh
# PROVIDE: mynetwork
# REQUIRE: netif
# BEFORE: SERVERS
# KEYWORD: nojail
. /etc/rc.subr
name="mynetwork"
rcvar=`set_rcvar`
start_cmd="${name}_start"
stop_cmd=":"
eval "${rcvar}=\${${rcvar}:-'NO'}"
mynetwork_start()
{
ifconfig pcn0 media 10baseT/UTP
dhclient pcn0
echo "Started MyNetwork"
return 0
}
load_rc_config $name
run_rc_command "$1"
I tried your script
unfortunately it doesn't work...
anyother suggestions ? I'm using Debian lenny as host, with FreeBSD 7.0 and virtualbox 1.6.4
anyother suggestions ? I'm using Debian lenny as host, with FreeBSD 7.0 and virtualbox 1.6.4