Solved Can't connect to internet through ethernet cable

Hello!
I've recently installed FreeBSD on my laptop and I was using wifi to download files necessary for the install;
Now, I'm in a location where my only hope to connect to the internet, is via ethernet cable - I know what you're going to say: "This question has been answered before", well let me just finish. I've been searching the forums and the internet generally for an answer and I couldn't find it; What's different, I think, about my situation, is that I have a laptop with Xubuntu on it and it is connected to the wifi. Now, this laptop is connected to the FreeBSD laptop via ethernet cable. As I've said, I've connected to wifi networks previously and it worked great.
So I would be grateful if somebody could help me here or point me in the right direction on how to get the internet connection up and running.
(btw. I tried pinging google and got the lookup failure).
(Oh, and also, When I install the system using bsdinstall connecting to the net through cable, it works; but I'd like to have both working [wifi and ethernet]);
 
Ok, I checked the site out...
now when I run if config I get this:
Code:
$ ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
    ether 00:21:cc:c3:19:8d
    hwaddr 00:21:cc:c3:19:8d
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    groups: lo
Am I going in the right direction?
(Also, I have another question; During the installation of the system, the computer is capable of scanning for wifi networks, Is it possible to scan for wifi networks after the install, if so, how? And since it's so easy to set up an internet connection during install, why can't there be some sort of network manager or something after the install, or is there?);
 
Ok, here's what I did, since last post:
I uncommented everything in my rc.conf just as it was the first time I noticed the problem.
Here it is:
Code:
hostname="unixdistro"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig_em0="DHCP"
#ifconfig_wlan0="WPA SYNCDHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
dbus_enable="YES"
hald_enable="YES"
slim_enable="YES"

kld_list="i915kms"
autofs_enable="YES"
Code:
and i rebooted, after which i ran if config and here's what I get:

Code:
$ ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
    ether 00:21:cc:c3:19:8d
    hwaddr 00:21:cc:c3:19:8d
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    groups: lo
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1487
    ether 60:67:20:2f:27:e0
    hwaddr 60:67:20:2f:27:e0
    inet6 fe80::6267:20ff:fe2f:27e0%wlan0 prefixlen 64 scopeid 0x3
    inet 100.64.191.139 netmask 0xffff0000 broadcast 100.64.255.255
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
    media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
    status: associated
    ssid Darmowe_Orange_WiFi channel 2 (2417 MHz 11g ht/20) bssid d2:02:8e:6f:47:86
    regdomain FCC country US authmode OPEN privacy OFF txpower 30
    bmiss 10 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8
    -amsdutx amsdurx shortgi -stbc wme roaming MANUAL
    groups: wlan
Now the problem is that it connects automatically to some open wifi network yards away instead of noticing the ethernet cable and connecting to the net through it. Why does it do that and what must I do to get it running?
 
There's nothing connected to your wired interface (see the "status"; no carrier means there's nothing connected).
 
There's nothing connected to your wired interface (see the "status"; no carrier means there's nothing connected).
But the cable is inserted in both laptops; does that mean, the cable is faulty?
YeSSSSSSSSSSSSSSSSSS!
THANK YOU! It was the cable! I changed it for a spare one and the laptop is back online;
HURRAY!!!!!!!!!!!!!!!!!!!!!!!!
Thanks again, everybody; I love this forum;
 
Back
Top