LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-14-2014, 05:43 AM   #1
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Rep: Reputation: Disabled
Unhappy 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
 
Old 04-14-2014, 06:19 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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

this will let you use the gui
reboot

Last edited by Drakeo; 04-14-2014 at 06:36 AM.
 
Old 04-14-2014, 06:41 AM   #3
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-14-2014, 06:46 AM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.

Last edited by Drakeo; 04-14-2014 at 06:49 AM.
 
Old 04-14-2014, 06:52 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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

this will let you use the gui
reboot

Last edited by Drakeo; 04-14-2014 at 06:53 AM.
 
Old 04-14-2014, 07:01 AM   #6
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.

thanks again
 
Old 04-14-2014, 09:03 PM   #7
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
I changed the permissions. It still doesn't work.
 
Old 04-15-2014, 12:31 PM   #8
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
open a terminal and type ifconfig and post it here.
Quote:
bash-4.2# ifconfig
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.67 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::76d4:35ff:fe04:d94f prefixlen 64 scopeid 0x20<link>
ether 74:d4:35:04:d9:4f txqueuelen 1000 (Ethernet)
RX packets 2312046 bytes 1702638945 (1.5 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1727246 bytes 188584305 (179.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 717294 bytes 203806351 (194.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 717294 bytes 203806351 (194.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

bash-4.2#
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 look up your card I find this
Quote:
Version
: 5.641.0209.2006

Realtek LAN driver

Read me
That was factory windows driver.

Last edited by Drakeo; 04-15-2014 at 12:47 PM.
 
Old 04-15-2014, 01:02 PM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
when I do a dmesg | grep -i eth0
Quote:
# dmesg | grep -i eth0
[ 6.989286] r8169 0000:03:00.0 eth0: RTL8168evl/8111evl at 0xffffc90010b30000, 74:d4:35:04:d9:4f, XID 0c900800 IRQ 44
[ 6.990486] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]

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.

Last edited by Drakeo; 04-15-2014 at 01:09 PM.
 
Old 04-15-2014, 04:46 PM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.
 
Old 04-16-2014, 01:51 PM   #11
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
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

Code:
bash-4.2# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.65.79  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::21b:38ff:fe09:7bc8  prefixlen 64  scopeid 0x20<link>
        ether 00:24:1d:f2:23:9e  txqueuelen 1000  (Ethernet)
        RX packets 94  bytes 25512 (24.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 66  bytes 9402 (9.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 216  bytes 15804 (15.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 216  bytes 15804 (15.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Code:
bash-4.2# lspci | grep Ethernet
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)


bash-4.2# dmesg | grep -i eth0
[    7.574621] 8139too 0000:05:01.0 eth0: RealTek RTL8139 at 0x00012000, 00:1b:38:09:7b:c8, IRQ 21
[  120.374580] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  229.976611] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  271.207805] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  311.115483] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
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
Then, ran:

Code:
/etc/rc.d/rc.networkmanager start
Even this did not work.

What do you think?
 
Old 04-16-2014, 02:01 PM   #12
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
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)
 
Old 04-16-2014, 02:06 PM   #13
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Ok.. Here's what you need to try:

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..
 
Old 04-16-2014, 02:26 PM   #14
pinakbheed
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-16-2014, 02:31 PM   #15
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mint 11 won't recognize my ethernet connection/unable to connect to internet travellindaze Linux - Newbie 14 08-28-2011 04:08 PM
Tried to connect to internet through Wvdial in Ubuntu 10.04 unable to get connection dalfish Ubuntu 6 06-20-2010 07:29 PM
Unable to connect to internet via wireless OR wired connection frznchckn Linux - Wireless Networking 5 06-19-2008 01:12 PM
unable to connect to internet with ADSL CONNECTION ashwin_cse Linux - Networking 2 11-13-2005 05:48 AM
Changing display/unable to connect to internet with Slackware 9.1 jaydoubleyou Slackware 8 01-08-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration