Page 1 of 1

FreeBSD 6.2 Network issues (Linux host)

PostPosted: 31. Oct 2007, 18:08
by pdbogen
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.

PostPosted: 1. Nov 2007, 22:21
by pdbogen
Seems to be working, now... I don't know what, exactly, the problem was.

PostPosted: 4. Nov 2007, 20:50
by Toitoine
I have the same problem and I use the following work around :

execute this kind of script:

#!/bin/bash
ifconfig pcn0 down
ifcontig pcn0 media 10baseT/UTP
ifconfig pcn0 up
dhclient pcn0

PostPosted: 15. Nov 2007, 17:50
by disi
I have the same issue

it is kind of simple, there is something wrong with the dhcp server

I get as nameserver entry in the /etc/resolf.conf 10.0.2.3, but this host doesn't exists.

an "echo 'nameserver 10.0.2.2' >> /etc/resolf.conf" fixes this issue

I've had this experience with FreeBSD, OpenBSD

PostPosted: 5. Dec 2007, 20:49
by shassard
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


The "ifconfig pcn0 media 10baseT/UTP" line seems to solve my issues with FreeBSD 6.3 RC and 7.0 betas! YAY!

Simple script to correct this issue

PostPosted: 29. May 2008, 20:32
by walker_643
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!

------------------------------
Code: Select all   Expand viewCollapse view
#!/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

PostPosted: 18. Aug 2008, 22:39
by oz123
unfortunately it doesn't work...
:?
anyother suggestions ? I'm using Debian lenny as host, with FreeBSD 7.0 and virtualbox 1.6.4