FreeBSD 6.2 Network issues (Linux host)

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.
Post Reply
pdbogen
Posts: 6
Joined: 21. Aug 2007, 23:17

FreeBSD 6.2 Network issues (Linux host)

Post 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.
pdbogen
Posts: 6
Joined: 21. Aug 2007, 23:17

Post by pdbogen »

Seems to be working, now... I don't know what, exactly, the problem was.
Toitoine
Posts: 24
Joined: 4. Nov 2007, 20:43

Post 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
disi
Posts: 5
Joined: 15. Nov 2007, 17:40

Post 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
shassard
Posts: 5
Joined: 23. Oct 2007, 23:51

Post 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!
walker_643
Posts: 2
Joined: 29. May 2008, 20:21

Simple script to correct this issue

Post 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

#!/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"
oz123
Posts: 1
Joined: 18. Aug 2008, 21:44

I tried your script

Post 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
Post Reply