You are not logged in.

#1 2011-05-16 14:25:07

cmagnon
Member
Registered: 2011-05-16
Posts: 2

[SOLVED] problem accessing wired network with router

Hello,

This weekend I decided to try Arch Linux, so I've created the boot cd and started following the steps to install it. I have an external Belkin router which is wired from the cable modem to it and wired from it to the pc. The network (dhcp) couldn't be configured for some reason. However when I connect the cable modem directly to the pc it works perfectly. The router doesn't have problems because I can access the internet from Ubuntu and Windows normally with it. So I guess I need to do some configuration before arch install for it to run.
I've searched many forums and the Arch docs, but couldn't find anything directly specific about how to get the internet access running with this router.

Would appreciate your help a lot here. How could I configure the wired connection passing from the desktop to the Belkin router and then to the cable modem, using dhcp?

Following some info I found when booting into Ubuntu and running ifconfig, etc (don't know if it helps):
Gateway: 192.168.2.1
Broadcast: 192.168.2.225
inet addr (in Ubuntu ifconfig output for eth0): 192.168.2.2

In Arch, after aif -p partial-configure-network on eth0 I can tell the following:
- ifconfig -a shows eth0 but inet addr and Bcast values line is not available in the displayed information
- I run the 'route' command and there are no entries.

Thanks in advance for your answers!

Carlos

Last edited by cmagnon (2011-05-19 02:00:52)

Offline

#2 2011-05-16 16:37:47

fabriceb
Member
Registered: 2011-05-13
Posts: 33

Re: [SOLVED] problem accessing wired network with router

Look at your /etc/rc.conf. Make sure the following passage is correctly set:

eth0="eth0 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255"
INTERFACES=(eth0)
gateway="default gw 192.168.2.1"
ROUTES=(gateway)

By default, the last line is ROUTES=(!gateway). Make sure you delete that "!".

Offline

#3 2011-05-16 16:55:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED] problem accessing wired network with router

The post from fabriceb will set your system to use static addresses.  Specifically, the address assigned by the router to your system when it was running Ubuntu.

How are you running dhcpcd -- From /etc/rc.d  ??

What happens if, from a cli, you run sudo dhcpcd -d eth0  ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2011-05-18 19:27:12

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [SOLVED] problem accessing wired network with router

How many network connections does the belkin router have ?

Are windows and ubintu configured to use dhcp or a fixed ip-address ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2011-05-19 01:58:04

cmagnon
Member
Registered: 2011-05-16
Posts: 2

Re: [SOLVED] problem accessing wired network with router

Thank you for your answers, guys!

After struggling a bit I could finally solve the problem (well I was not expecting it to work when I tried but it did!)

I've edited the /etc/dhcpcd.conf file and removed the line:

nohook lookup_hostname

after aif -p partial-configure-network I could ping google.com and I can now proceed with the installation :-D

Hope the solution here helps others.

Thanks again,

Carlos

Offline

Board footer

Powered by FluxBB