You are not logged in.
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
So what are the contents of /etc/resolv.conf ?
Offline
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
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.XXAnd try to pick up from DHCP?
Offline
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
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.XXAnd try to pick up from DHCP?
No, DHCP is not available. We use static IP in our campus.
Offline
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
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 ![]()
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
Also, can you ping the address you think is the address of your gateway
Offline
Also, can you ping the address you think is the address of your gateway
No, I can't.
Offline
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
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 usOf 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
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