You are not logged in.
Pages: 1
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
/marie
Offline
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
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
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
@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
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
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
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
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
Do you have multiple network adapters in your computer?
Offline
No I just have the ethernet card and wireless card
Offline
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
We I plug it in an other computer it works fine..
Maybe the ethernet card??or?
Offline
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
Pages: 1