Linux Arch Linux Network problem

Guys, I just installed Arch Linux on my system.. everything is working fine.. but there is no network connectivity.. I dial from my modem and use DHCP on the operating system.. FYI :-
I did this in the /etc/rc.conf file

HOSTNAME-"FX-64"
eth0="dhcp"
INTERFACES="eth0"
gateway="default gw 192.168.1.1"
(also tried to change it to 192.168.0.1, no success)
ROUTES=(!gateway)
Then, as suggested by the installation guide, I haven't edited the /etc/resolv.conf file...
After that I added my hostname FX-64 to the /etc/hosts file... but still there isn't any success..

Can you guys help me, I'm using BSNL UL 1350+ with OpenDNS's nameservers which are already in the router, this thing has worked fine on other distros..
 
Sure.. the output of ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:30:67:14:66:1F
inet addr:169.254.208.214 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:181 errors:0 dropped:6352841852 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10860 (10.6 Kb) TX bytes:0 (0.0 b)
Interrupt:19 Base address:0x6000

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

The output of /etc/rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Calcutta"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(r8169 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="FX-64"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="dhcp"
INTERFACES=(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 192.168.1.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)

Regarding ping, it simply says that Network not reachable..
 
Your network isn't configured.

try following the following command and then try pinging that IP i gave you.

Code:
$ sudo ifconfig eth0 inet 192.168.1.100 netmask 255.255.255.0 gw 192.168.1.1

ps: I assume your router ip is 192.168.1.1, which is default. If you have changed it. Please update it in command.
 
It says, Hostname lookup failure. I assume that it is a problem with the host name..

so, /etc/hosts output

#
# /etc/hosts: static lookup table for host names
#

#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain FX-64

# End of file

Output of /etc/resolv.conf

#
# /etc/resolv.conf
#

#search <yourdomain.tld>
nameserver 208.67.222.222
nameserver 208.67.220.220

# End of file

Output of uname -a (incase that is required)

Linux FX-64 2.6.25-ARCH #1 SMP PREEMPT Sat Jun 14 17:44:19 CEST 2008 x86_64 AMD Phenom(tm) II X3 720 Processor AuthenticAMD GNU/Linux

PS :- I haven't touched that /etc/resolv.conf file, it was created automatically as stated in the Arch Guide..
 
Can you post the output of ifconfig after you ran that command?

also, post output of

Code:
$ route

see, if you can ping your router.

Code:
$ ping -c 5 192.168.1.1

You can also try run dhcp manually to get IP info

Code:
$ sudo /etc/rc.d/network restart

$ sudo dhcpcd --release eth0
 
Output of ifconfig after that command :-

eth0 Link encap:Ethernet HWaddr 00:30:67:14:66:1F
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:181 errors:0 dropped:4623006952 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13636 (13.3 Kb) TX bytes:0 (0.0 b)
Interrupt:19 Base address:0x6000

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Nope, I can't ping my router...

Output of route :-
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
There's no luck in restarting the network.. still the same problem...

I've been using Fedora & Ubuntu since last 6 years.. worked extensively on command line.. but never in my life I've felt so frustrated that I'm feeling right now... The main reason to switch to Arch was that I was sick of the Fedora's X.Org vs ATI Drivers battle..
 
Relax, no need to be frustrated. I think you seem to be missing route for default gateway & all data packets are being null routed.

so first configure IP address(incase you rebooted):

Code:
$ sudo ifconfig eth0 inet 192.168.1.100 netmask 255.255.255.0 gw 192.168.1.1

and now just need to add default route

Code:
$ sudo route add default gw 192.168.1.1 eth0

Hopefully now, you should be able to ping your router and access internet without problems.

PS: I know Archlinux might be difficult to setup for many users, but once you get the initial setup. I am pretty sure, you will be amazed with Arch:D
 
Still not working.. I'm downloading the latest release will install it and then will report back..

Installed the new release of Arch.. everything is working fine now.. really impressed by the speed.. However, I have a few issues :-

1. I'm using ATI 4870 as my graphics card. Which driver should I use?
2. The alsa app is showing two sound cards, one is onboard and the other is HDMI via 4870, I know I have to use the onboard but how? No sound is being played via speakers?
3. Is GNOME better than KDE on Arch? I've heard pretty good things about KDE mod, but I'm a huge GNOME fan. Still you guys can help me.
 
hellknight_mnd said:
Installed the new release of Arch.. everything is working fine now.. really impressed by the speed..

Congrats!

Arch wiki is very documented. Please read it before asking questions.Its more faster:eek:hyeah:

1. I'm using ATI 4870 as my graphics card. Which driver should I use?

ATI - ArchWiki

2. The alsa app is showing two sound cards, one is onboard and the other is HDMI via 4870, I know I have to use the onboard but how? No sound is being played via speakers?

Advanced Linux Sound Architecture - ArchWiki

3. Is GNOME better than KDE on Arch? I've heard pretty good things about KDE mod, but I'm a huge GNOME fan. Still you guys can help me.

Gnome is gnome, kde is kde. There is no difference on any distro. Its same everywhere incl Arch. However, Arch has a policy of not patching upstream projects except stability packages.

So, choice is yours.I would advise you skip kdemod and go for vanilla kde instead because kdemod does not make much sense now because by default kde is modular.
 
Thanks dude.. GNOME is working awesome.. I've never see such a fast Desktop Environment before.. but I switched from radeonhd to radeon and now GUI isn't running.. fixing that now.. learnt a lot about Linux in these two days as compared to last 6 years..

Awesome.. followed the wiki and everything works now.. and it is using only 250 MB RAM with GNOME and Firefox running that too in 64-bit mode.. Only 3D acceleration needs to be configured..
 
Back
Top