You are not logged in.

#1 2010-04-09 15:24:28

mimoro
Member
Registered: 2010-04-09
Posts: 7

dhcp not working and static ip neither...

Hello,

I am new to Archlinux, and I have a problem to set up my internet connection. My router is set up as "act as a dhcp server" but when I do all the setting for a dhcp connection it doesn't work i.e
/etc/rc.conf
HOSTNAME="marie"
eth0="dhcp"
INTERFACES=(eth0)
#gateway=...
ROUTES=(!gateway)

So I tryed to set my router to allow a static IP to my computer.
static IP : 192.168.13.8
I have the following LAN setting
IP adress 193.168.13.1
submask : 255.255.255.0
broadcast : 193.168.13.255(I suppose)
DNS:?? I set it up to 193.168.1 since it appears like that when I connect an other computer to the router
gateway : 193.168.13.1

so in /etc/rc.conf
HOSTNAME="marie"
eth0="eth0 192.168.13.8 netmask 255.255.255.0 broadcast 192.168.13.255
INTERFACES=(eth0)
gateway="default gw 192.168.13.1"
ROUTES=(gateway)

in /etc/hosts
127.0.0.1         localhost.localdomain      localhost     marie
192.168.13.8    marie.csbnet.se             marie

in /etc/resolv.conf
nameserver 192.168.13.1



when I ping the localhost it works
but when I ping something else it says "unknown host"
pacman doesn't work neither


I've googled a lot, and tried things but nothing really worked...

Thank you a lot for your help smile

/marie

Offline

#2 2010-04-09 15:44:25

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

Re: dhcp not working and static ip neither...

Could you please post the output of 'ifconfig -a' and 'ps -ef | grep dhcp'  ?/


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

#3 2010-04-09 15:57:21

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: dhcp not working and static ip neither...

It probably means that your nameserver is wrong ...
- and ... 193.168? There is some mistake here - it should be 192.168

Can you ping your gateway? (192.168.13.1)

Offline

#4 2010-04-09 16:05:19

mimoro
Member
Registered: 2010-04-09
Posts: 7

Re: dhcp not working and static ip neither...

ifconfig -a :

eth0    Link encap:Ethernet  HWaddr 00:24:BE:51:D7:BA
          inet addr:192.168.13.8   Bcast: 192.168.13.255   Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:4294967266 errors:4294967116  dropped:4294967236  overruns:4294967266  frame:4294967146
          TX packets:4294967266 errors:4294967176  dropped:0  overruns:4294967266  frame:4294967237
          collisions:4294967146  txqueuelen:1000
          RX bytes :4294967266  (4095.9 Mb)  TX bytes:4294967266 (4095.9 Mb)
          Interrupt:26

lo       Link encap:Local Loopback
         inet addr:127.0.0.1   Mask:255.0.0.0
         UP LOOPBACK RUNNING   MTU:16436  Metric:1
         RX packets:149  errors:0  dropped:0  overruns:0  frame:0
         TX packets:149  errors:0  dropped:0  overruns:0  carrier:0
         collisions:0  txqueuelen:0
         RX bytes:13770  (13.4 Kb)  TX bytes:13770 (13.4 Kb)

wlan0 Link encap:Ethernet  HWaddr 2C:81:58:E9:87:59
         BROADCAST MULTICAST  MTU:1500  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:1000
         RX bytes:0  (0.0 b)  TX bytes:0 (0.0 b)

wmaster0  Link encap:UNSPEC  HWaddr  2C-81-58-E9-87-59-00-00-00-00-00-00-00-00-00-00
                [NO FLAGS] MTU:0 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:1000
                RX bytes:0  (0.0 b)  TX bytes:0 (0.0 b)


and ps -ef |grep dhcp
               
root          2049   1691   0  18:05  tty1      00:00:00 grep dhcp

Offline

#5 2010-04-09 16:10:20

mimoro
Member
Registered: 2010-04-09
Posts: 7

Re: dhcp not working and static ip neither...

@perbh
  Sorry for the mistake its 192.168.... I checked my files and its 192.168.everywhere.

  When I ping my gateway it says
PING 192.168.13.1 (192.168.13.1) 56(84) bytes of data
From 192.168.13.8 icmp_seq=1  Destination Host Unreachable
(and this last line again and again)

Offline

#6 2010-04-09 17:30:24

mimoro
Member
Registered: 2010-04-09
Posts: 7

Re: dhcp not working and static ip neither...

I can add this information, about my router. And my router is registered on the network as
marie.csbnet.se
General Information
3C number     3CRWER100-75

Internet Settings
PPP over Ethernet Enabled     No
Internet IP Address     95.80.7.202     Automatic Configuration - DHCP
Subnet Mask     255.255.252.0     
ISP Gateway Address     95.80.4.1     Connected
DNS     95.80.0.144 ; 95.80.0.34     
MAC Address     00:0F:CB:B3:CB:7D    

LAN Settings
LAN IP Address     192.168.13.1
LAN Subnet Mask     255.255.255.0
Router's DHCP Server     Enabled
DHCP Range     192.168.13. 2 to  192.168.13. 254
LAN Port MAC Address     00:0F:CB:B3:CB:7C

Maybe something wrong in domain name or DNS or...

Offline

#7 2010-04-09 19:43:54

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

Re: dhcp not working and static ip neither...

What happens when you try 'sudo dhcpcd 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

#8 2010-04-09 20:15:45

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: dhcp not working and static ip neither...

mimoro wrote:

in /etc/resolv.conf
nameserver 192.168.13.1

This caught my eye as I read your post. Your router is (generally) NOT your nameserver. I would try commenting out that line and then restarting your network. Arch will write in the correct settings for you once your computer is assigned a local IP. Your nameserver is most likely your ISP and will be an address external to your home network.


Smarter than a speeding bullet
My Goodreads profile

Offline

#9 2010-04-10 09:33:43

mimoro
Member
Registered: 2010-04-09
Posts: 7

Re: dhcp not working and static ip neither...

If I try the command "sudo dhspsd eth0"
it says
dhcpcd : version 5.0.6 starting
dhcpcd : eth0 : waiting for carrier
dhcpcd :timed out

and I also tried commenting the nameserver, but it doesn't work neither
Could it be something in the /etc/hosts file
I wrote
192.168.13.8    marie.csbnet.se    marie
but I'm not sure because the router is registered as blabla.csbnet.se on the network so I'm not sure of this line.

Offline

#10 2010-04-10 11:04:32

cedeel
Member
From: ~
Registered: 2009-08-25
Posts: 176
Website

Re: dhcp not working and static ip neither...

Do you have multiple network adapters in your computer?

Offline

#11 2010-04-10 11:27:39

mimoro
Member
Registered: 2010-04-09
Posts: 7

Re: dhcp not working and static ip neither...

No I just have the ethernet card and wireless card

Offline

#12 2010-04-10 13:16:20

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: dhcp not working and static ip neither...

mimoro wrote:

dhcpcd : version 5.0.6 starting
dhcpcd : eth0 : waiting for carrier
dhcpcd :timed out

Hi there,

The line above makes me think you have a problem with your Ethernet cable. Have you checked it is correctly plugged on both side or tried with another cable ?


Carpe Diem

Offline

#13 2010-04-10 13:26:22

mimoro
Member
Registered: 2010-04-09
Posts: 7

Re: dhcp not working and static ip neither...

We I plug it in an other computer it works fine..
Maybe the ethernet card??or?

Offline

#14 2010-04-10 13:43:08

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: dhcp not working and static ip neither...

Yes, maybe the ethernet card.

Possibility to check it:
- Plug another PCI ethernet card to check if it come from your card or your conf.
- Try booting on the install CD and see if you can get an IP with the "dhcpcd eth0" command. If it works on the install CD the problem come from your conf.

What is the brand and model of your ethernet card by the way ? lspci may help you determine it


Carpe Diem

Offline

Board footer

Powered by FluxBB