LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Arch Linux - Linksys wireless router ploblem (https://www.linuxquestions.org/questions/linux-newbie-8/arch-linux-linksys-wireless-router-ploblem-853605/)

Thesniperofdeath 01-01-2011 02:36 PM

Arch Linux - Linksys wireless router ploblem
 
I configured everything from the arch wiki even static and dhcp IP's(cable) but i can't access the internet.
It is a Toshiba Satellite C650.

/etc/rc.conf :

eth0="dhcp"
INTERFACES=(eth0)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)

dhcpcd eht0:
Interface not found or invalid

andrewthomas 01-01-2011 02:42 PM

If you are not using networkmanager, you need to have network in your daemons array in /etc/rc.conf.

If you are using networkmanager, then you need to:
Code:

#eth0="dhcp"
INTERFACES=(!eth0)
ROUTES=(!gateway)
DAEMONS=(syslog-ng iptables !network @crond dbus hal networkmanager cpufreq alsa gdm)


Thesniperofdeath 01-01-2011 02:45 PM

Quote:

Originally Posted by andrewthomas (Post 4209775)
If you are not using networkmanager, you need to have network in your daemons array in /etc/rc.conf.

It is there

DAEMONS=(syslog-ng network netfs crond)


..and It is a fresh install with nothing much in it.. and it can't download anything because it can't connect to the internet.

lamegaptop 01-01-2011 02:51 PM

With that setup in rc.conf you should not need to "dhcpcd eth0" (I am assuming you see the typo in your post for that command.....)


read this -

https://wiki.archlinux.org/index.php/Network

It could be that you have the gateway configured in rc.conf and it should not be. Try

Code:

ROUTES=(!gateway)
gateway will be set by dhcp

Quote:

and it can't download anything because it can't connect to the internet.
disable the gateway, reboot, then try

Code:

ping -c 3 www.google.com

Thesniperofdeath 01-01-2011 02:56 PM

Quote:

Originally Posted by lamegaptop (Post 4209783)
With that setup in rc.conf you should not need to "dhcpcd eth0" (I am assuming you see the typo in your post for that command.....)


read this -

https://wiki.archlinux.org/index.php/Network

It could be that you have the gateway configured in rc.conf and it should not be. Try

Code:

ROUTES=(!gateway)
gateway will be set by dhcp


I read the wired section and fixed but it still won't connect.Is there a way to install networkmanager from a usb?

command:
ping -c 3 google.com
unknown host google.com

lamegaptop 01-01-2011 03:01 PM

network manager has a lot of dependencies and it would be tough to install from usb. That would probably not fix your issue, anyhow.

Please look at lspci and ifconfig and 'dmesg | grep eth'. Could it be that the wired ethernet adapter is not recognized?

Thesniperofdeath 01-01-2011 03:10 PM

Quote:

Originally Posted by lamegaptop (Post 4209793)
network manager has a lot of dependencies and it would be tough to install from usb. That would probably not fix your issue, anyhow.

Please post output of lspci and ifconfig. Could it be that the wired ethernet adapter is not recognized?

ifconfig:
Code:

Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0,0 b)


lspci is too long to type out..
"dmesg | grep eth" has no output

I tried Archbang(extremely restrictive and I reformatted) but networkworkmanger worked fine and could connect to the internet

lamegaptop 01-01-2011 03:27 PM

Well that tells me your eth0 is not up for some reason.

in the lspci you should see an ethernet controller listed. Mine looks like this -

Code:

2:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
and my dmesg | grep eth looks like this

Code:

[rb@rb-desktop ~]$ dmesg | grep eth
r8169 0000:02:00.0: eth0: RTL8168c/8111c at 0xffffc9001189c000, 6c:62:6d:80:ab:94, XID 1c4000c0 IRQ 40
r8169 0000:02:00.0: eth0: link up
r8169 0000:02:00.0: eth0: link up

If your controller appears in lspci try to bring it up manually -

Code:

# ifconfig eth0 up
and if that is successful

Code:

# dhcpcd eth0
if all that works then there must be an issue with your rc.conf setup.

Thesniperofdeath 01-01-2011 03:40 PM

Quote:

Originally Posted by lamegaptop (Post 4209810)
Well that tells me your eth0 is not up for some reason.

in the lspci you should see an ethernet controller listed. Mine looks like this -

Code:

2:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
and my dmesg | grep eth looks like this

Code:

[rb@rb-desktop ~]$ dmesg | grep eth
r8169 0000:02:00.0: eth0: RTL8168c/8111c at 0xffffc9001189c000, 6c:62:6d:80:ab:94, XID 1c4000c0 IRQ 40
r8169 0000:02:00.0: eth0: link up
r8169 0000:02:00.0: eth0: link up

If your controller appears in lspci try to bring it up manually -

Code:

# ifconfig eth0 up
and if that is successful

Code:

# dhcpcd eth0
if all that works then there must be an issue with your rc.conf setup.


01:00.1 Ethernet controller: Atheros Communications AB8152 v1.1 Fast Ethernet (rev 1)

so I do this?

Code:

ifconfig eth0 up
eht0: unknown interface: No such device


andrewthomas 01-01-2011 04:15 PM

I believe that your card uses the atl1c kernel module.

check the output of

Code:

lsmod
to see if the module is present, if not try to insert it

Code:

# modprobe atl1c
What kernel are you using?

Thesniperofdeath 01-01-2011 04:23 PM

Quote:

Originally Posted by andrewthomas (Post 4209837)
I believe that your card uses the atl1c kernel module.

check the output of

Code:

lsmod
to see if the module is present, if not try to insert it

Code:

# modprobe atl1c
What kernel are you using?

Kernel 2.6.33-ARCH


Code:

FATAL: Module atlic not found
how do you install packages directly from your file system?

lamegaptop 01-01-2011 04:29 PM

OK. I believe you have another typo in your last post. I believe that you have a

01:00.1 Ethernet controller: Atheros Communications AR8152 v1.1 Fast Ethernet (rev 1)

that needs the atl1c module loaded.

on my archbox I see

Code:

rb@rb-desktop ~]$ locate atl1c
/lib/modules/2.6.36-ARCH/kernel/drivers/net/atl1c
/lib/modules/2.6.36-ARCH/kernel/drivers/net/atl1c/atl1c.ko
/usr/src/linux-2.6.36-ARCH/include/config/atl1c.h

you may need to do a

Code:

# lsmod | grep atl
# modprobe atl1c

see this for more info

http://ubuntuforums.org/showthread.php?p=9449490

Thesniperofdeath 01-01-2011 04:55 PM

Quote:

Originally Posted by lamegaptop (Post 4209848)
OK. I believe you have another typo in your last post. I believe that you have a

01:00.1 Ethernet controller: Atheros Communications AR8152 v1.1 Fast Ethernet (rev 1)

that needs the atl1c module loaded.

on my archbox I see

Code:

rb@rb-desktop ~]$ locate atl1c
/lib/modules/2.6.36-ARCH/kernel/drivers/net/atl1c
/lib/modules/2.6.36-ARCH/kernel/drivers/net/atl1c/atl1c.ko
/usr/src/linux-2.6.36-ARCH/include/config/atl1c.h

you may need to do a

Code:

# lsmod | grep atl
# modprobe atl1c

see this for more info

http://ubuntuforums.org/showthread.php?p=9449490


Can i also know how you install packages locally from your filesystem?

Thanks for the help

lamegaptop 01-01-2011 05:00 PM

Code:

# pacman -U /path/to/package/package_name-version.pkg.tar.xz
https://wiki.archlinux.org/index.php...kage_databases


All times are GMT -5. The time now is 06:13 PM.