You are not logged in.

#1 2007-03-12 12:49:55

robcult731
Member
Registered: 2007-02-12
Posts: 15

Configuring router – what next?

Hi, I've consulted the FAQ/guide and am a little bit lost as to where to go from here – I've installed Arch base ok and want to stick KDE on top of it but my internets not yet  configured (recognized) as I get "host temporarily unavailable when I try pacman –Sy or KDE etc. So I typed in hwdetect –show-net and got up

e100 eepro100 irtty-sir sir-dev mii ppp_generic slhc ieee80211 ieee8021
1_crypt irda ipw2100

(I take it the ieee80211 is my built in wireless which I won't be doing anything with - I have an IBM Thinkpad R40)

Now that I have this information, what do I need to do (type) to get connected? smile

Offline

#2 2007-03-12 12:57:54

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: Configuring router – what next?

Have you configured the network in rc.conf? Have you set the nameserver in /etc/resolv.conf? can you ping www.google.com?

If you have done all these things, try another mirror


Have you tried to turn it off and on again?

Offline

#3 2007-03-12 13:08:35

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

I didn't know to do any of those things sorry, what would I type to configure the network in rc.conf? and to set the nameserver in /etc/resolv.conf? smile

Offline

#4 2007-03-12 13:13:32

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: Configuring router – what next?


Have you tried to turn it off and on again?

Offline

#5 2007-03-12 13:24:37

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

Excellent, thanks a lot smile

Offline

#6 2007-03-12 13:38:06

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

Typed in /etc/rc.conf and got

-bash: /etc/rc.conf: Permission denied

I'm logged in as root so why's that happen?

Offline

#7 2007-03-12 13:52:45

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Configuring router – what next?

Duh, that is a config file, not an executable.


1000

Offline

#8 2007-03-12 13:53:01

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: Configuring router – what next?

try

nano /etc/rc.conf

Have you tried to turn it off and on again?

Offline

#9 2007-03-12 13:55:10

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

http://wiki.archlinux.org/index.php/Rc.conf

where in this guide does it tell me how to edit rc.conf and what to type? smile

Offline

#10 2007-03-12 14:03:52

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: Configuring router – what next?

I have postet 2 Links


Have you tried to turn it off and on again?

Offline

#11 2007-03-12 18:19:22

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

I'm afraid I'm not having much luck, would it be possible to just put KDE onto a USB pen and then load it on from there? And if so is there any documentation to walk me through it? smile 

I really don't want to give up because I spent my day off yesterday backing all my files up and getting rid of ubuntu with the solid intention of switching to Arch for its renowned stability

Offline

#12 2007-03-12 19:02:56

junglepeanut
Member
From: California
Registered: 2007-01-24
Posts: 145
Website

Re: Configuring router – what next?

If you did you would just be back where you were next time you wanted to install something or change something.
Read the links posted carefully in the files they have comments telling you what to put where. Use the editor of your choice to alter the files. i.e. vim or nano.

Lastly. This is not ubuntu, but if in ubuntu you rarely used the command line you are in for a surprise. ( I expect this is the case but never fear it will be easy to surmount just search bash tutorial on google and learn a lot in ten minutes. Then when someone points you towards something think about what it is and act on it by trying, googling, and searching the wiki.) Ubuntu is actually very stable if you stay away from dev versions. I was very happy with breezy then I wanted bleeding edge and went to dapper dev then edgy then to feisty all before my system crashed. That a lot of development with out a crash.

Offline

#13 2007-03-12 20:07:33

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

Thanks for your comments - I would like to be a more competent Linux/command line user which is why I'm not giving up with this - I read through the Rc.conf wiki and edited the Network part from the default to the following then rebooted and still can't connect, what have i missed or gotten wrong? smile

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="myhost"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)

#

Offline

#14 2007-03-12 21:23:50

junglepeanut
Member
From: California
Registered: 2007-01-24
Posts: 145
Website

Re: Configuring router – what next?

By still can't connect what do you mean?

I am going to take a good guess that eth0 is not a wireless device.

From the terminal try:

   

 ifconfig

as this will show you what devices are up, if eth0 shows up in the listing then it is up. If not then try

(must be run root?)
 

 ifconfig eth0 up

.

Next run the command:(must be run root for sure)

     

dhcpcd -d eth0

if this shows a mac and ip address you should now be connected to the internet. To confirm try: (not root or root...)

     

ping google.com

If you see unknown host you did not get connected if you send packets and they mostly look good...woohoo.

Then since you are normally just plugging into a wire and I am guessing not wireless the next step would be to definitely install ifplugd

     

pacman -Sy ifplugd

Goodluck.

Offline

#15 2007-03-14 19:10:41

robcult731
Member
Registered: 2007-02-12
Posts: 15

Re: Configuring router – what next?

Hi, thanks for the help - tried what you said today

for the ifconfig i got

lo         Link encap:Local Loopback
inet addr:127.0.0.1 MASK 255.0.0.0
up Loop Back: running MTU:16436 MGTRIC:1
RX: PACKETS:0 errors:0 dropped:0 overrunns:0 frame:0
TX PACKETS:0 errors:0 dropped:0 overrunns:0 carrier:0

collisions:0 txqueuelen:0

rx bytes:0 (0.0b) tx:0 (0.0b)

then did "ifconfig eth0 up" and then "dhcpcd -d eth0" which did display my mac and ip addresses, then pinged google and it just came up with line after line after line of 64kb then an ip address which i assume is google, didn't know how to stop it from doing this so just cold restarted

now when i go back into root and do ifconfig i get more or less the same results but this time three sets instead of 1, 1 for lo, one for eth0 and one for eth1

(would just like to make it clear i don't want to connect with wireless, couldn't even if i wanted - im on a wired connection)

Anyway now I can't even get the repetitive google ping lines up, it just says unknown host google.com

Do you think maybe eth0 is my built in wireless and that's why none of this is working? cos I tried what you said but with eth1 also and got nowhere?

Offline

#16 2007-03-15 02:18:47

beejayzed
Member
From: New Zealand
Registered: 2006-12-15
Posts: 24
Website

Re: Configuring router – what next?

Firstly, I think you should read a basic console usage guide. To stop the pinging, you should have used ctrl-c. Even so, you could have used ctrl-alt-f1/2/3etc to switch between terminals (X goes on 7).

One problem you have is that you have two network devices, eth0 and eth1. Hardware may be mapped to different eths at random at bootup. You need to specify the modules in the correct order in your rc.conf.

For the problem you're having (unknown host), it could be a nameserver or gateway problem from my experience.
To check your routes (to see if there is a gateway), run route. You can use route add default gw 192.168.1.1 (change the ip to your router/modem) to add a route.
To check your nameservers, use cat /etc/resolv.conf . I use my isp provided ones, but there could also be public servers or your router there. Also try to ping an ip directly, 66.102.7.99 is google.
Dhcpcd should handle the above issues automatically though, so I think your problem is with the eths switching around.

Find out which one has which module, and put them in the order you want in rc.conf.


EDIT:
AH, hang on, just reread your post properly and noticed you said you have build in wireless. I'm guessing the switching issue still applies.

Last edited by beejayzed (2007-03-15 02:40:32)

Offline

Board footer

Powered by FluxBB