FreeBSD 6.2 Network issues (Linux host)

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.

FreeBSD 6.2 Network issues (Linux host)

Postby pdbogen » 31. Oct 2007, 18:08

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

Postby pdbogen » 1. Nov 2007, 22:21

Seems to be working, now... I don't know what, exactly, the problem was.
pdbogen
 
Posts: 6
Joined: 21. Aug 2007, 23:17

Postby Toitoine » 4. Nov 2007, 20:50

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
Toitoine
 
Posts: 24
Joined: 4. Nov 2007, 20:43

Postby disi » 15. Nov 2007, 17:50

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

Postby shassard » 5. Dec 2007, 20:49

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

Simple script to correct this issue

Postby walker_643 » 29. May 2008, 20:32

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

I tried your script

Postby oz123 » 18. Aug 2008, 22:39

unfortunately it doesn't work...
:?
anyother suggestions ? I'm using Debian lenny as host, with FreeBSD 7.0 and virtualbox 1.6.4
oz123
 
Posts: 1
Joined: 18. Aug 2008, 21:44


Return to Other Guests

Who is online

Users browsing this forum: No registered users and 4 guests