You are not logged in.

#1 2012-02-07 15:40:22

lastland
Member
Registered: 2012-02-07
Posts: 10

[SOLVED] Failed to access the Internet after disabling networkmanager

How can I get access to the Internet after networkmanager is down? I disabled the networkmanager and uncommented the static IP settings I used to use and reboot, but I'm still unable to get access to the Internet. (Failed to ping 8.8.8.8, which means the problem isn't DNS.)

Here's how this happened:

I used to get access to the Internet on my ArchLinux machine by setting up a static IP address in /etc/rc.conf. This worked fine. Then one day I needed to do something difficult without a networkmanager, so I installed the network-manager-applet via pacman, which worked fine as well, until one day after I ran pacman -Syu and rebooted, many programs, including the network-manager-applet are unable to work, saying the system is missing libpng14.so. My workstation was connected to a wireless connection at that time (the same one before my last pacman -Syu and reboot), and I tried to run pacman -Syu again and the network seemed to still be working. So I didn't take it as a big problem at that time.

But now, after I brought it to work (where I connect to the Internet via a wired network and a static IP), I found myself unable to get access again to the Internet, even after I removed networkmanager from the DAEMONS in rc.conf, and uncommented the static IP settings that used to work. And It's not DNS problems since I'm unable to ping 8.8.8.8 or any other known IPs directly (it says destination host is unreachable).

Here's my rc.conf files, the IP address and gateway stuff couldn't be wrong so hope you don't mind I use something like XX.XX.XX.XX instead:

LOCALE="en-US.UTF-8"
DAEMON-LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MODULES=(wl)
UDEV_TIMEOUT=30
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"

HOSTNAME="lastland"
interface=eth0
address=XX.XX.XX.XX
netmask=255.255.255.0
broadcast=XX.XX.XX.255
gateway=XX.XX.XX.XX

NETWORK_PERSIST="no"

DAEMONS = (syslog-ng network crond dbus kdm alsa)

Last edited by lastland (2012-02-08 15:39:10)

Offline

#2 2012-02-07 16:07:44

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

So what are the contents of /etc/resolv.conf ?

Offline

#3 2012-02-07 18:17:51

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

stryder wrote:

So what are the contents of /etc/resolv.conf ?

Nothing but two nameservers. One is 8.8.8.8 and the other is of my campus.

Last edited by lastland (2012-02-07 18:21:06)

Offline

#4 2012-02-07 22:37:56

Durden
Member
Registered: 2011-06-19
Posts: 261

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

Can you leave these fields blank?

address=XX.XX.XX.XX
netmask=255.255.255.0
broadcast=XX.XX.XX.255
gateway=XX.XX.XX.XX

And try to pick up from DHCP?

Offline

#5 2012-02-07 23:13:13

*nixer
Member
Registered: 2011-11-11
Posts: 56

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

Like mentioned above, you should be able to use DHCP unless for some strange reason you've disabled it in your router configuration.

Make sure you have either the 'network', or 'wicd', daemon enabled in your rc.conf, and have it running.

interface=eth0
address=
netmask=
broadcast=
gateway=
DAEMONS = (syslog-ng !network crond dbus wicd kdm alsa)

Using the above settings, type 'dhcpcd' in a terminal, and see what happens. This requires that the 'dhcpcd' package still be installed. Default installs include it.

If using wicd which I'd recommend as it hardly uses any system resources, you could leave the interface field blank as well.

interface=
address=
netmask=
broadcast=
gateway=

Offline

#6 2012-02-08 06:08:50

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

Durden wrote:

Can you leave these fields blank?

address=XX.XX.XX.XX
netmask=255.255.255.0
broadcast=XX.XX.XX.255
gateway=XX.XX.XX.XX

And try to pick up from DHCP?

No, DHCP is not available. We use static IP in our campus.

Offline

#7 2012-02-08 06:10:54

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

*nixer wrote:

Like mentioned above, you should be able to use DHCP unless for some strange reason you've disabled it in your router configuration.

Make sure you have either the 'network', or 'wicd', daemon enabled in your rc.conf, and have it running.

interface=eth0
address=
netmask=
broadcast=
gateway=
DAEMONS = (syslog-ng !network crond dbus wicd kdm alsa)

Using the above settings, type 'dhcpcd' in a terminal, and see what happens. This requires that the 'dhcpcd' package still be installed. Default installs include it.

If using wicd which I'd recommend as it hardly uses any system resources, you could leave the interface field blank as well.

interface=
address=
netmask=
broadcast=
gateway=

Thank you. But DHCP is not available in my campus.

Offline

#8 2012-02-08 06:19:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

It would be helpful if you could share the output of ip addr
It might show the data you have obfuscated, so either check it to see if it is rational, obfuscate the bits you don't want to share, or trust us smile

Of course, if the address starts with 10, 172, or 192, it does not really matter if you share it with us as it is a private network address anyway.

Also, the output if ip route will be helpful.  Also, can you ping the address you think is the address of your machine from your own machine?

edit: typo

Last edited by ewaller (2012-02-08 06:36:36)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2012-02-08 06:34:07

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,683

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

Also, can you ping the address you think is the address of your gateway

Offline

#10 2012-02-08 15:02:00

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

skunktrader wrote:

Also, can you ping the address you think is the address of your gateway

No, I can't.

Offline

#11 2012-02-08 15:10:59

DarkCerberus
Banned
From: Holsworthy, Devon
Registered: 2011-12-31
Posts: 252

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

Have you tried looking at the Arch Linux wiki - there's a page explaining how to set up static ip address here - https://wiki.archlinux.org/index.php/Co … ng_Network

Last edited by DarkCerberus (2012-02-08 15:12:04)


Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago.  ---  Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way

Offline

#12 2012-02-08 15:32:16

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

ewaller wrote:

It would be helpful if you could share the output of ip addr
It might show the data you have obfuscated, so either check it to see if it is rational, obfuscate the bits you don't want to share, or trust us smile

Of course, if the address starts with 10, 172, or 192, it does not really matter if you share it with us as it is a private network address anyway.

Also, the output if ip route will be helpful.  Also, can you ping the address you think is the address of your machine from your own machine?

edit: typo

Oh thank you for the hint! The ip addr command really helps me figure out that my eth0 MAC address is not the right one. Though I don't know how it happens, I succeed to get back to the Internet and reply this post via my ArchLinux workstation. Thank you!

Offline

#13 2012-02-08 15:34:08

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] Failed to access the Internet after disabling networkmanager

DarkCerberus wrote:

Have you tried looking at the Arch Linux wiki - there's a page explaining how to set up static ip address here - https://wiki.archlinux.org/index.php/Co … ng_Network

Yes I've read it before. It turns out to be the false MAC address. Thank you for your reply anyway.

Offline

Board footer

Powered by FluxBB