New to FreeBSD - network card install

Hello, Im new to FreeBSD and have little... correction NO experience what so ever. So my question is I recently installed FreeBSD on a desktop, got it to run with KDE, but i am not sure now how to get it online. it seems like the only network adapter it sees is the loopback.

Any help would be great and please remember that I have No experience of Unix or even Linux systems.

-Thanks
 
For starters you'll probably want to post the contents of /etc/rc.conf % cat /etc/rc.conf and the output of % ifconfig.

Anyone looking at this can then determine if your card is being detected and whether the relevant settings are correct in /etc/rc.conf
 
for
Code:
pciconf -lv | grep -B3 network

it says pciconfig: command not found

for
Code:
# ifconfig

it says

Code:
plip0:flags=8851<up,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0:flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
     options=3<RXCSUM,TXCSUM>
     inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
     inet6 ::1 prefixlen 128
     inet 127.0.0.1 netmask 0xff000000
 
rc.conf says

Code:
sshd_enable="YES"
hald_enabled="YES"
dbus_enabled="YES"

once again sorry for the misinformed question I am very new to this.
 
for that command it replys

Code:
pci0: <network, ehternet> at device 25.0 (no drivers attached)

I'm not sure how to attach drivers. Its a Dell Optiplex 980 if that helps any.
 
kylej said:
Its a Dell Optiplex 980 if that helps any.

For the integrated NIC's, Dell usually uses Broadcom. For your machine the network driver would most likely be the bge driver (Either that or the bce driver).

To test.... edit your /etc/rc.conf file and include the following...

Code:
ifconfig_bge0="DHCP"

Then reboot.

If that driver doesn't work, then replace the letters bge with bce and try again.

Sysinstall run from the command line can also detect and set up your network card.
 
Rebooting is not the way to test for a supporting driver. Just load the driver you think is right, i.e
Code:
kldload if_bge
if you believe that's the one.

To make an informed guess about what device you have, make sure pciconf works and use that info to see what hardware you have
Code:
/usr/sbin/pciconf | |grep -i -B3 network
(If you get /usr/sbin/pciconf: command not found, your whole installation is f**ed. Reinstall)
 
JimW said:
For the integrated NIC's, Dell usually uses Broadcom. For your machine the network driver would most likely be the bge driver (Either that or the bce driver).
Modern Optiplex systems use some flavor of Intel 82567LM. O755 is -2, O960/980 are -3. These should be supported by the em driver. It is possible that older FreeBSD versions don't know about the specific PCI IDs involved. What FreeBSD version is this?
 
I figured it out, I talk to some one who is helping me train and he mentioned that since it was a rather new machine that the current generic kernel did not have to correct drivers, there fore did not auto detect. we added in a second network card and I was able to update ports and things. now i have to download the newest kernel and install it.

Wish me luck

:)
-Kylej
 
kylej said:
I figured it out, I talk to some one who is helping me train and he mentioned that since it was a rather new machine that the current generic kernel did not have to correct drivers, there fore did not auto detect.

It's possible. We could tell for sure if you would post the output of
% pciconf -lv | grep -B3 network
 
Code:
   subclass   = UART
none2@pci0:0:25:0:      class=0x020000 card=0x02da1028 chip=0x10ef8086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
--
    subclass   = SMBus
em0@pci0:1:0:0: class=0x020000 card=0xa01f8086 chip=0x10d38086 rev=0x00 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
 
kylej said:
Code:
   subclass   = UART
none2@pci0:0:25:0:      class=0x020000 card=0x02da1028 chip=0x10ef8086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network

That's an Intel 82578DM. I just looked and it should be in FreeBSD 8.0 and later. It isn't in 7.3-RELEASE but is in 7-STABLE as of Fri May 14 22:39:51 2010 UTC.

I don't think we ever got an answer as to what FreeBSD version you're trying this with?
 
sorry, Im not absolutely sure but I think its 8.1, for the intel card I still have the other replacement card in there, so maybe that what you are seeing. maybe not, Im not sure what all that print out meant.
 
okay now i got another issue. After recompling and insatlling the new kernel, when i Run startx (which before got kde4 running) it now just says

Code:
/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xauth"

/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xauth"

/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xauth"

/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xauth"

/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xauth"

/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xinit"

/libexec/ld-elf.so.1: Shared object "libXua.so.6" not found, Required by "xauth"
not sure what went wrong?

thanks,

kylej
 
That's a totally different problem that doesn't belong in either this thread or this sub-forum. One issue per topic, please.
 
It's possible. We could tell for sure if you would post the output of
% pciconf -lv | grep -B3 network

Mine..

Code:
r10@pci0:6:2:0: class=0x020000 card=0x13031186 chip=0x13001186 rev=0x10 hdr=0x00

vendor = 'D-Link System Inc'
device = 'DL 10038C or 10038D (Remark of Realtek TRL-8139) Fast Ethernet Adapter'
class = network

What should I do next? Please help, thanks.
 
You are responding to a thread from five years ago. It is usually better to start a new thread.

However, your output shows that you have a card with a Realtek driver that has been detected as rl0. Note that is a lower-case "L", not a one.

To have the system use that card with DHCP, enter it in /etc/rc.conf:
Code:
ifconfig_rl0="SYNCDHCP"
 
You are responding to a thread from five years ago. It is usually better to start a new thread.

However, your output shows that you have a card with a Realtek driver that has been detected as rl0. Note that is a lower-case "L", not a one.

To have the system use that card with DHCP, enter it in /etc/rc.conf:
Code:
ifconfig_rl0="SYNCDHCP"

Thanks for your reply. But I still can't make my machine connect to the internet..

My rc.conf details:

Code:
gateway_enable="YES"
hostname="my.humble.machine"
ifconfig_rl0="SYNCDHCP"
inetd_enable="NO"
keymap="us.iso"
linux_enable="YES"
moused_enable="YES"
nfs_server_enable="YES"
sshd_enable="YES"

When iI ran dmesg | grep -i network iI got
Code:
plip0: <PLIP network interface> on ppbus0
plip0: <PLIP network interface> on ppbus0
plip0: <PLIP network interface> on ppbus0
plip0: <PLIP network interface> on ppbus0
plip0: <PLIP network interface> on ppbus0
plip0: <PLIP network interface> on ppbus0

When iI ran ifconfig rl0 iI got:
Code:
ifconfig: interface rl0 does not exist

When iI ran cat /etc/hosts iI got
Code:
::1 localhost
127.0.0.1 localhost
192.168.0.118 my.humble.machine

Before this, I have no problem regarding networking issue as the old CPU has a built-in NIC.

The old CPU damaged already, then I looked for another CPU. I transferred the HDD from damaged CPU to the new CPU. The new CPU, is actually an old CPU that did not have NIC so iI bought a new NIC and attached it to the motherboard.

I connect the LAN cable from router to the new NIC and this problem starts.

Please help..

Thanks in advance.
 
Last edited by a moderator:
The output shown here does not agree with what what shown earlier. A lot of it is missing, too. Let's back up.

This is obviously an older version of FreeBSD, but which one, exactly?
What is the output of ifconfig?
This machine is set to be a router, but there is no other network configuration shown in /etc/rc.conf. Have parts been removed?
 
The output shown here does not agree with what what shown earlier. A lot of it is missing, too. Let's back up.

This is obviously an older version of FreeBSD, but which one, exactly?
What is the output of ifconfig?
This machine is set to be a router, but there is no other network configuration shown in /etc/rc.conf. Have parts been removed?

uname -a
Code:
FreeBSD my. 7.2-RELEASE-p8 FreeBSD 7.2-RELEASE-p8 #0: Wed May 26 03:08:50 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386

ifconfig
Code:
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
 
Back
Top