You are not logged in.
FOR INFO ON THE SOLUTION, READ THIS
http://wiki.archlinux.org/index.php/Configuring_network
I have an issue, basically im on a fresh Archlinux install however im unable to do any updates with pacman through the internet. My type of internet is a DHCP, however I need to retrieve a gateway in order for my DHCP to run
Problem is when I change my /etc/rc.conf to allow a gateway like so
lo="lo 127.0.0.0"
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
#
gateway="default gw 10.1.1.1"
ROUTES=(gateway)
And I restart the network using /etc/rc.d/network restart (or just reboot), I get this error
"SIOCADDRT: file exists"
Without the gateway enabled, when I try to update through pacman (with wget enabled), it tries to access files through 1.0.0.0
i.e.
Resolving mirror.pacific.net.au ... 1.0.0.0
And then fails with a "connection timed out"
The mirror is fine, since I can browse through it using links (and it fails on the other mirrors as well)
Browsing through the net using links works fine, and sometimes when I do try and update through pacman it works, however most of the time it won't
Im currently posting this on an ubuntu distribution, is there anyway to pull the network settings off here and put them into the archlinux?
Is it also possible to configure pacman NOT to go through a gateway (i.e. the way links does it) so I can at least download networkmanager which will automatically configure it
BTW: The gateway for my router is 10.1.1.1 and not the usual 192.168.0.1
EDIT:
I thinks its a problem with the DNS, how do you add a DNS in archlinux?
Last edited by PandaMine (2008-10-06 15:47:44)
Offline
Also if it helps anyone, this is the info from network manager (in Kubuntu) on my other computer which has an ip of 10.1.1.3 (other comp has 10.1.1.4)
->Network Interfaces
Interface IP Address Protocol State Comment
eth0 10.1.1.3 Enabled Ethernet Network Device
-> Routes
Default Gateway
IP Address: 10.1.1.1 Device: eth0
-> Domain Name Systen
Host Name: ikad-desktop
----> Domain Name Servers
10.1.1.1
Offline
Not sure if this is the cause of the problem or not, but I'm fairly sure you don't need to configure the loopback in rc.conf anymore. Try removing your lo entries and see if that helps.
Also, I don't think you're configuring the gateway properly... but since I've never fiddled with that, I'll let someone else comment.
M*cr*s*ft: Who needs quality when you have marketing?
Offline
I added the lo entries in there when browsing the net and looking at other peoples rc.conf, didn't make a difference
At this thread (http://ubuntuforums.org/archive/index.php/t-797282.html) the person had the exact same problem and fixed it by adding in the gateway
This person also has the same problem (http://www.linuxquestions.org/questions … ux-666006/), I really think its a problem with the DNS settings, I have no idea how to add them into arch's config files though
This is the DNS settings for the router
DNS Relay Selection: Use Auto-Discovered DNS Server only
Preferred DNS Server: 211.29.132.12
Alternate DNS Server: 198.142.0.51
I also remember having the same problem with Gentoo, however with gentoo I could manually download the files using links into the distfiles package and so I was able to use portage to get network manager
Last edited by PandaMine (2008-10-06 02:22:15)
Offline
Well then, for simply tweaking your DNS:
/etc/resolv.conf
man resolv.conf
M*cr*s*ft: Who needs quality when you have marketing?
Offline
The thing is on the working kubuntu computer the resolv.conf settings are as shown
nameserver 10.1.1.1
Its the exact same on the computer im having problems on (except that it has a #generated by dhcp comment at the top)
The hosts file on the Kubuntu computer is
127.0.0.1 localhost
127.0.1.1 ikad-desktop
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
On the other not working computer its
127.0.0.1 localhost.localdomain localhost archlinux
(following the archlinux beginners wiki)
EDIT:
I think I may have stumbled onto something, when I run the command "route" I get this as an output
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
default mygateway1.ar7 0.0.0.0 UG 0 0 0 eth0
Is mygateway1.ar7 supposed to be default?
http://bbs.archlinux.org/viewtopic.php?id=33715, this person is having the exact same problem I have (except I don't want to have to change ISP), mygateway1.ar7 is supposed to be the gateway that my dlink router is sending
Last edited by PandaMine (2008-10-06 02:57:09)
Offline
I also tried tweaking resolv.conf, but everytime DHCP starts it deletes the file and returns it to what it was before
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
default mygateway1.ar7 0.0.0.0 UG 0 0 0 eth0
Is apparently fine, working kubuntu computer outputs same thing
This is really starting to annoy me, I was looking forward to archlinux but I can't even get the net working :(
Last edited by PandaMine (2008-10-06 03:11:55)
Offline
Read the manpage for your dhcpcd version, in previous versions you could use -R to disable overwriting your /etc/resolv.conf, in newer versions i think it's -c resolv.conf, but I'm not 100% sure.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
well adding the DNS names to resolv.conf didn't work (thanks the -R flag stopped the overwriting).
pacman suddently started working, and now it stopped again with the same problem
Offline
Does everything else work? Try a different mirror. It looks like your DNS server is returning nonsense for mirror.pacific.net.au
Offline
The mirror is fine because I can easily links into it, every time.
In fact thats how I am forced to install arch until (hopefully) kdm's network manager auto configures the thing. I use links to download the packages from the mirror into /var/cache/pacman/pkg and then re running pacman
its mirror.pacific.net.au btw, but I have the same problems using the other mirrors (aka main archlinux one, gatec and others)
Last edited by PandaMine (2008-10-06 11:49:08)
Offline
I managed to find a *weird* and *kewrky* temporary workaround
If i do
links ftp://mirror.pacific.net.au (after links loads page, close links with q)
pacman -Syy
And then quickly install the packages (or do global upgrade) then it works, not sure why
I have KDE up and running without problems (konqueror + kopete works) but I still have the same problems with pacman, it still fails with 1.0.0.0 as the dns for a server
EDIT
I have fixed the problem, thanks to this http://forums.whirlpool.net.au/forum-re … 61625.html
It seems its a problem with an upgrade in the firmware for the router where some programs did not recieve the dns hostname (pacman is one of them). With just 10.1.1.1 in the resolv.conf everything worked except for pacman, changing the resolv.conf to
nameserver 211.29.132.12
nameserver 10.1.1.1
fixed the problem entirely, I will update this on the wiki for network configuration
Last edited by PandaMine (2008-10-06 14:44:37)
Offline