Unable to connect to internet on slackware 14.1 (hathway connection)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to connect to internet on slackware 14.1 (hathway connection)
Hi,
I have a wired internet connection of hathway provider. I would like to use the connection on my desktop as well as my laptop. My desktop pc has windows 7 and yesterday I installed slackware 14.1 (full installation) on my lenovo 3000 n100 laptop.
Previously I had slacko puppy 5.7 installed on my laptop and I was able to use internet on it. Please note that hathway router has saved the MAC address of my desktop. Hence, I had to change the MAC address of laptop (when puppy linux was installed) to match my desktop's MAC address for making the internet connection work.
Now I have slackware 14.1 installed and have followed the documentation provided to setup my network, without success. After going through netconfig, I have edited /etc/rc.d/rc.inet1.conf and made the following changes:
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
HWADDR[0]="00:01:23:45:67:89"
where HWADDR[0] matches my desktop's MAC address.
After this edit, I ran /etc/rc.d/rc.inet1 eth0_start to make connection. This too seems to succeed. It finds and IPv4 address and the child process goes to background.
But when I open firefox and try connecting to www.google.com, it fails. I have also checked ifconfig output to find that eth0 does take the MAC address specified in HWADDR[0].
I have also tried using networkmanager shipped with slackware (from XFCE dekstop) without success.
What could be the problem?
Thanks in advance
Last edited by pinakbheed; 04-14-2014 at 05:44 AM.
Reason: incorrect grammar
yes your right. You created an account with that UID of the other computer. And yes they use that and your password when they created an account.
what I did so I do not have this problem is to buy a router and clone my mac from the computer I used to set the account with.
then set the router to auto dhcpd turn everything off. Then start your Modem. then start your router then start your computer.
Then from there on I could use any computer to log in to my router.
Other wise you will have to call them to reset this on there side for the new UID. that is your Mac.
if using a router wifi please read how to secure your wifi.
if your modem is also a router. Then you you will need to use there manual. If your setup as the modem and the router is one. and the router is online then it should be as simple as auto dhcpcd.
If it is like comcast cable. then you need a router.
Quote:
Previously I had slacko puppy 5.7 installed on my laptop and I was able to use internet on it.
if this is so then open a terminal as the root user
and type.
ifconfig
then look at the devices that are up.
when you installed slackware did you choose the network manager or did you just do the auto dhcpd. the set the /etc/rc.d/rc.inte1 to executable.
Quote:
yes here is the fix http://docs.slackware.com/slackware:beginners_guide when you installed you should have selected networkmanager here what you want to do.
I use networkmanager.
as root chmod +x /etc/rc.d/rc.networkmanager and make the other rc.inet1 non executable chmod 664 /etc/rc.d/rc.inet1
In puppy linux, I changed the MAC through "ifconfig eth0 down hw ether 00:01:23:45:67:89" and the used the GUI tool to connect.
During installation of slackware, I skipped the network configuration. After installation, I ran netconfig and chose auto dhcpd. I will try making the networkmanager executable and using the GUI. But, wasn't networkmanager added from version 14. How would I connect without using it?
Also, I don't want to buy a router. Thanks for the quick reply.
Last edited by pinakbheed; 04-14-2014 at 06:53 AM.
Reason: was incomplete
I have never done that . I will read up on it. but I really think I may be confusing something here. I read up on it here. http://en.wikibooks.org/wiki/Changin..._Address/Linux
thanks PinkBheed I love learning everyday.
I see that there is a place in network manager to do this. I would try it as root user see how it goes.
Please remember you need to use /etc/rc.d/rc.inet1 or /etc/rc.d/rc.networkmanager if you have both enabled this will cause problems.
that is why I posted before.
Quote:
yes here is the fix http://docs.slackware.com/slackware:beginners_guide when you installed you should have selected networkmanager here what you want to do.
I use networkmanager.
as root chmod +x /etc/rc.d/rc.networkmanager and make the other rc.inet1 non executable chmod 664 /etc/rc.d/rc.inet1
Yes. maybe that's the reason (inet1 and networkmanager might conflict). I'll try it out. Also, I have been running all the commands under root user only.
Reason I say this I only have one ether card built into the machine.
But look what slackware does with it, places it as eth1
not sure why but when moving my hard drives to this new mother board i noticed it.
I am sure I can take some time a figure it out. but thats a long story.
And yes my network-manager I had to reset also.
let see your ifconfig. This also happens on a fresh install to.
and you can aslo run lspci | grep Ethernet and paste it.
Quote:
bash-4.2# lspci | grep Ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
I believe that is the same as your onboard ether card. for you laptop.
when I do a dmesg | grep -i eth1 after doing a ifconfig eth1 down I get this. then ifconfig eth1 up
Quote:
[103762.432690] INPUT packet died: IN=eth1 OUT= MAC=74:d4:35:04:d9:4f:60:c3:97:51:22:09:08:00 SRC=5.129.212.91 DST=192.168.1.67 LEN=48 TOS=0x00 PREC=0x00 TTL=104 ID=21788 PROTO=UDP SPT=15386 DPT=5489 LEN=28
[110977.179804] INPUT packet died: IN=eth1 OUT= MAC=74:d4:35:04:d9:4f:60:c3:97:51:22:09:08:00 SRC=206.188.178.60 DST=192.168.1.67 LEN=48 TOS=0x00 PREC=0x00 TTL=114 ID=6998 PROTO=UDP SPT=46222 DPT=5489 LEN=28
[111097.730770] INPUT packet died: IN=eth1 OUT= MAC=74:d4:35:04:d9:4f:60:c3:97:51:22:09:08:00 SRC=130.204.72.125 DST=192.168.1.67 LEN=48 TOS=0x00 PREC=0x00 TTL=112 ID=28652 PROTO=UDP SPT=50450 DPT=5489 LEN=28
[118317.042988] INPUT packet died: IN=eth1 OUT= MAC=74:d4:35:04:d9:4f:60:c3:97:51:22:09:08:00 SRC=75.136.4.143 DST=192.168.1.67 LEN=47 TOS=0x00 PREC=0x00 TTL=107 ID=6897 PROTO=UDP SPT=22496 DPT=5489 LEN=27
[122443.594602] r8169 0000:03:00.0 eth1: link down
[122443.594638] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[122443.594683] r8169 0000:03:00.0 eth1: link down
[122445.249200] r8169 0000:03:00.0 eth1: link up
[122445.249207] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[122445.285267] IPv4: martian source 255.255.255.255 from 192.168.1.254, on dev eth1
wonder why slackware sees this motherbord this way and like you puppy slacko 5.7 doesn't.
I guess we should send this to the Slackware team and let Pat comment on it. you will note it does not show the device like it was virtual.
for simplicity I would set the system to use network manager. then in network manager delete all the conections and creat a new one and start from there.
I had to do that when moving my hard drives over. the reason because they had been set to use the other devices I guess.
but after doing some fresh installs I notices like above Slackware making it eth1 not eth0.
Sorry for replying so late. I was too busy with work, I did not find the time to delve deeper into this issue. So, here's the details:
Code:
bash-4.2# /etc/rc.d/rc.inet1
Polling for DHCP server on interface eth0:
dhcpcd[1594]: version 6.0.5 starting
dhcpcd[1594]: eth0: soliciting an IPv6 router
dhcpcd[1594]: eth0: soliciting a DHCP lease
dhcpcd[1594]: timed out
dhcpcd[1594]: allowing 8 seconds for IPv4LL timeout
dhcpcd[1594]: eth0: probing for an IPv4LL address
dhcpcd[1594]: eth0: no IPv6 Routers available
dhcpcd[1594]: eth0: using IPv4LL address 169.254.65.79
dhcpcd[1594]: eth0: adding host route to 169.254.65.79 via 127.0.0.1
dhcpcd[1594]: eth0: adding route to 169.254.0.0/16
dhcpcd[1594]: forked to background, child pid 1635
Actually, I'm not that knowledgeable about networking. I got to know about the lspci and dmesg commands just now.
Here's my interpretation though:
I'm sure that if Hathway had not restricted the connection to one pc (i.e., by storing MAC address and giving connection to that PC only), slackware would connect without any problems. But because I have to change my laptop's MAC address to match my other computer's, maybe slackware isn't reading it correctly (i.e., it's trying to connect by default MAC).
Also, I tried using network manager (GUI). The problem is that, it detects the connection as "Auto Ethernet". But, there's no way I can specify the clone MAC address for "Auto Ethernet". When I go to "Configure VPN" there is no option for editing Auto Ethernet. Creating a new connection does not detect the connection at all.
I also tried using network manager (through console). After netconfig, I changed the MAC using
Code:
ifconfig eth0 down hw ether 00:24:1D:F2:23:9E
ifconfig eht0 up
Also, I tried using wicd. I too has the similar problem as network manager. i was able to detect the connection. But when I try connecting it was stuck at "Obtaining IP address". Also, I could not find a way to clone MAC on wicd (except using ifconfig)
1) Run netconfig and ensure you have selected Network Manager
2) Restart the computer.. It's just safer this way
3) Without using ifconfig, start an X session with Xfce or Kde and configure your network via a Network manager applet.. It should let you clone the MAC without any problems..
that didn't connect either. When I use network manager applet in XFCE, It shows "Auto Ethernet" as available connection. But when I open up "Configure VPN", It says that connection has never been used. Even after I try connecting to it.
Don't use Configure VPN.. Rather right click the applet, and use the "Edit connections.." option.. In that window select "Ethernet connection 1" (or whatever is the name) and hit edit.. Enter you MAC in the Cloned MAC input box..
Also, I saw you installed wicd.. The boot-script will go for wicd if found as executable, so make sure "/etc/rc.d/rc.wicd" is not executable...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.