You are not logged in.

#1 2006-12-08 07:24:24

frank_einstien
Member
Registered: 2006-08-09
Posts: 51

How to do internet config

Hi

I have just done an install of arch and I tried unsuccessfully to config the internet.

I have a router that conects in PPPoE mode. It does all necc connections and it acts as DHCP server, DNS and gateway. I also verified the modules.

I followed the instructions in the wiki:
in /etc/rc.conf
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
ROUTES=(!gateway)

but pinging the device/a website returns a network unreachable.

Thanks


Serial ignoramus- a day of experience 365 times.

Offline

#2 2006-12-08 07:38:13

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: How to do internet config

The ! in front of gateway is not good. Remove it and restart the network-component in /etc/rc.d/


Todays mistakes are tomorrows catastrophes.

Offline

#3 2006-12-08 08:04:25

frank_einstien
Member
Registered: 2006-08-09
Posts: 51

Re: How to do internet config

Thanks mucknert for the fast reply.

however it gives the following error:

$/etc/rc.d/network start
lo
   [.....info from ifconfig]

STIOCT: device unreachable
   [FAIL]

If possible how do I get it up manually?


Serial ignoramus- a day of experience 365 times.

Offline

#4 2006-12-08 08:33:06

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: How to do internet config

ifconfig eth0 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
route add default gw 10.0.0.1

Change the IP's with yours.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#5 2006-12-08 08:33:25

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: How to do internet config

Check the interface is actually available by running "ifconfig eth0" as root, you should get something like this if it is...

[root@marbles ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:17:31:BF:9B:C2
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7618 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5427 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3232655 (3.0 Mb)  TX bytes:497059 (485.4 Kb)
          Interrupt:20 Base address:0xd400

If you have a dhcp server, then all you have to do is run "dhcpcd eth0" (assuming dhcpcd is your dhcp client, I'm pretty sure it's the default in Arch anyway).

You can verify network settings by running "ifconfig" and making sure you have an IP address, running "route" and making sure the gateway IP was set correctly, and running "cat /etc/resolv.conf" and making sure your nameserver was set correctly.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#6 2006-12-08 09:24:27

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: How to do internet config

the config should be

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)

without the routes/gateway, that's for manualy ip config..

there is need to start dhcpcd, the option, dhp will start it as necessary...

also, make sure ur nic is properly configured| module loaded ...

laspci | grep net

it will suggest what the required should be...
{i know u said u verified the modules, but we al miss things sometimes, and if i post multiple suggestions then it get's nic working aster..maybe}


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#7 2006-12-08 09:40:51

frank_einstien
Member
Registered: 2006-08-09
Posts: 51

Re: How to do internet config

Thanks noriko for the help on the config. Now its working perfectly

Thanks chrismortimore and fubar too


Serial ignoramus- a day of experience 365 times.

Offline

#8 2006-12-08 09:45:28

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: How to do internet config

no problem dude, i learned the hard way too lol... tongue


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#9 2006-12-08 10:35:55

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: How to do internet config

Damn. I couldn't check back because I wasn't on my Arch-Box. Sorry for the false hint. hmm


Todays mistakes are tomorrows catastrophes.

Offline

Board footer

Powered by FluxBB