LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2008, 11:52 AM   #1
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Rep: Reputation: 0
Problems with Connecting to Internet


Hi,

I'm having an awful time trying to get my latest Slackware installation being able to access the internet. I've had no trouble in the past.

Could it be that my networking card is incompatible? I have an Asus Maximus Formula DDR2 mobo using the default inbuilt two ethernet ports. Windows XP (in my other partition) says that I have no problems with it (dxdiag) and I can access the internet fine. System Information tells me that I have a [00000001] 1394 Net Adapter and that its type is Ethernet 802.3 and that it is installed. There are also a load more things underneath that one that look pretty much the same.

The output of lspci is:
Code:
00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 01)
00:01.0 PCI bridge: Intel Corporation Host-Primary PCI Express Bridge (rev 01)
00:1a.0 USB Controller: Intel Corporation USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation PCI Express Port 1 (rev 02)
00:1c.2 PCI bridge: Intel Corporation PCI Express Port 3 (rev 02)
00:1c.4 PCI bridge: Intel Corporation PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 2 port SATA IDE Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0402 (rev a1)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
03:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
06:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
06:02.0 Multimedia audio controller: Creative Labs SB X-Fi
06:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev c0)
The output of ifconfig -a –v is
Code:
eth0      Link encap:Ethernet  HWaddr 00:1D:60:AC:E4:DB  
          inet addr:86.152.65.181  Bcast:86.152.65.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:19 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1569 (1.5 KiB)  TX bytes:1569 (1.5 KiB)
And the output of ls -l /etc/rc.d/rc.inet* is

-rwxr-xr-x 1 root root 9237 2007-07-01 03:04 /etc/rc.d/rc.inet1*
-rw-r--r-- 1 root root 3577 2008-02-12 12:41 /etc/rc.d/rc.inet1.conf
-rwxr-xr-x 1 root root 4477 2006-09-21 03:44 /etc/rc.d/rc.inet2*
-rwxr-xr-x 1 root root 497 2003-09-12 04:27 /etc/rc.d/rc.inetd*



I’ve tried

ping -c 4 localhost

and I get

PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.012 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.012 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.011 ms

--- localhost ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.011/0.013/0.018/0.003 ms


and when
Code:
ping -c 4 www.google.com
doing that I get

it says that there is no connection. I have also tried pinging google’s IP but that says it doesn’t work so I’m assuming it’s not something up with the nameserver.

I’ve also tried
Code:
ping -c 4 -I eth0 www.google.com
and
Code:
/etc/rc.d/rc.inetd restart
/etc/rc.d/rc.inet1 restart
To no effect.

Could it be to do with not setting netconfig up correctly? I think I’ve done it but just in case is there a walkthrough of how to do this anywhere.

I have two ports….. why is it showing only one? Am I overlooking something really obvious?

Thanks very much!

Matt. Ireland
 
Old 03-24-2008, 12:07 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Is your default gateway set correctly? What does
route -n
show?
 
Old 03-24-2008, 12:11 PM   #3
nekkutta
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware 12
Posts: 22

Rep: Reputation: 15
sounds almost like you don't have a default route set, could you post the output of route and the contents of your rc.inetd.conf file

also depends on where your connection is, if you are using a DSL modem, you more than likely have to setup pppoe for that interface.

nekkutta
 
Old 03-24-2008, 04:03 PM   #4
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks very much for the replies guys!

The output of route -n is:

Code:
Kernel IP Routing Table
Destination     Gateway     Genmask       Flags     Ref     Use     Iface
86.152.65.0     0.0.0.0     255.255.255.0 U         0       0       eth0
127.0.0.0       0.0.0.0     225.0.0.0     U         0       0       lo
Just got an error that in order to use the LAN Browser the Lisa daemon must be running. Could this be anything to do with the problem?

Thanks very much!

Matt. Ireland
 
Old 03-24-2008, 04:28 PM   #5
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
No, Lisa is for browsing network shares only. From the output of your
route -n you indeed don't have a default gateway set up. Compare to mine
Code:
$ /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    1      0        0 eth0
The last line is what you need. With the IP of the computer that serves as your gateway. It can be set with the netconfig utility or just from the command line, like this

route add default gw <IP>
 
Old 03-24-2008, 04:53 PM   #6
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Original Poster
Rep: Reputation: 0
Again, thank you very much for the reply!

I tried typing route add default gw 192.168.0.1

but it returned SIOCADDRT. Sorry for being such a noob. Is something going wrong again? Google doesn't tell me much.....
 
Old 03-24-2008, 05:02 PM   #7
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by mattireland View Post
Again, thank you very much for the reply!

I tried typing route add default gw 192.168.0.1

but it returned SIOCADDRT. Sorry for being such a noob. Is something going wrong again? Google doesn't tell me much.....
No, you need to set your own default gateway. The IP should be the IP of the computer that serves as the gateway on your LAN. For example, my computer -- it's a laptop -- connected to another computer -- a desktop, that has two network cards in it. One has IP 192.168.0.1, the other one is connected to my internet provider via a cable modem. The laptop gets its internet connection from the desktop. So, I set 192.168.0.1 as the default gateway for the laptop. You need a different one.

In general, the default gateway is the place where the packets will go from your machine is you don't specify any other rule it should obey. It should be the IP of the machine on the same local network as yours, that is, immediately accessible from your machine.

How do you connect to the internet? From the IP you have on your card I would guess your default gateway should be something like 86.152.65.1
Is this IP given to you by your internet provider?
 
Old 03-24-2008, 05:05 PM   #8
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Original Poster
Rep: Reputation: 0
I'm currently on my notebook but I have a Windows partition which I can access the internet from on the computer that I am running slackware which will have the same IP?

If not, presumably I can find the IP from the Windows partition? I have a static IP which is assigned by the ISP (I think).

Thanks very, very much!

Matt. Ireland
 
Old 03-24-2008, 05:29 PM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
On the Windows machine:
Code:
ipconfig -a
That will tell you ip, gateway, etc.

Then on the Slackware:{code]netconfig[/code]That will allow you to enter in the info that Windows gave you.


NOTE: Both need to bee in a command line interface (DOS prompt on windows, a terminal in SW)
 
Old 03-25-2008, 04:50 PM   #10
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
I believe you should tell us first how you connect (phisically) to the internet, a modem, a router, a cable modem, a "city LAN connection"..?
From where does IP addr 86.152.65.181 come? netconfig?
You claimed you have a static IP address assigned by your ISP, so they would have given you the addresses of a couple of DNS servers and a gateway.
In the latter case you should have a "city LAN connection" or a cable modem in order you can have an IP addr assigned statically.
Different connections require different setup.
So, I understand you're not very experienced on Linux, and there's nothing wrong with that, but you should do a little effort telling us how you connect to the internet, at least.
Ciao
 
Old 03-26-2008, 04:37 AM   #11
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Original Poster
Rep: Reputation: 0
Yes, sorry, I'm pretty much a noob at Linux but am wanting to get better.

I've not got a clue where 86.152.65.181 came from - I just got it from ifconfig. I use a BT HomeHub router (again noobish).

At netconfig, does it matter what I enter for my server name (because I'm not running it as a server - I've got a NAS for that), and domain? What about nameserver? Do I enter the IP of a nameserver or something?

Thanks again and sorry for being hopeless.

Matt. Ireland

EDIT: I tried typing in
Code:
ifconfig eth0 192.168.1.74
and then the output of ifconfig -a was:
Code:
eth0      Link encap:Ethernet  HWaddr 00:1D:60:AC:E4:DB  
          inet addr:192.168.1.74  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:19 

eth1      Link encap:Ethernet  HWaddr 00:1D:60:AC:EF:FB  
          BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1380 (1.3 KiB)  TX bytes:1380 (1.3 KiB)
Thanks again!

Matt. I

EDIT 2: I was just looking at the BCAST: from what I have found from Windows, the IP of my router is 192.168.1.254 NOT 192.168.1.255 - could this be relevant. Thanks again! Matt. I

Last edited by mattireland; 03-26-2008 at 08:12 AM.
 
Old 03-26-2008, 06:17 PM   #12
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Fine...now is a little more clear. Just a little, as one more thing is missing. Do you want static IP address or dynamic on your small net?
It would be better if we knew that, but configuring a static addr should work even if the router also works as DHCP server, unless it is set up with a strange addresses range
So, open as root the file /etc/rc.d/rc.inet1.conf with your favourite text editor, let's say kwrite and edit this way

Code:
# Config information for eth0:
IPADDR[0]="192.168.1.2"    # if you want a different addr for some reason ie 192.168.1.74, use it!
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
then later on into the file

Code:
# Default gateway IP address:
GATEWAY="192.168.1.254"
Also edit your /etc/resolv.conf as follows
Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
They are DNS servers from openDNS, they work fine for me. If you have some provided by your ISP, you can use them instead

Then with /etc/rc.d/rc.inet1 restart, restart (sorry) the net conf.
You should be done at this point, at least able connecting to the internet.
If you know the router is a DHCP server, just tell me and I'll try to explain what to do. Very simple on the machine, may be not on the router.
Ciao
 
Old 03-27-2008, 03:46 AM   #13
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks ever so much! You're a legend! Yes, thanks, I was wanting a static IP.

Thanks very much, I've editied /etc/rc.d/rc/inet1.conf but all that is contained in /etc/resolv.conf is search mattireland.org. Shall I just replace this line with those two lines? I just replaced search mattireland.org with the nameserver lines (just to try) to no effect. I still can't access the net. I also tried typing in google's IP to both firefox and konqueror to no effect either.

Thanks very much again! vi is my favourite editing tool - sorry for being wierd.

When restarting the service, it came up with an error saying that command DCHP[0] couldn't be found. Any suggestions?
However, I did successfully restart /etc/rc.d/rc.inetd restart

Thanks very, very much!

Matt. I

EDIT: I deleted the [0] after USE_DCHP so now the line reads just USE_DCHP"" and now when I try to restart it says thta permission is denied?!?!?!? I'm logged in as root. I hope that I haven't seriously mucked something up. Thanks again!

EDIT2: I've just been having a little play with my router management page and found that on the broadband connection type it said PPPoA. I have the option to change this to direct IP (DHCP or static). Shall I change it to this? Would that help? Thanks!

Matt. I

Last edited by mattireland; 03-27-2008 at 07:44 AM.
 
Old 03-27-2008, 09:01 AM   #14
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
No don't change nothing on the router at the moment, the risk is you stop windows connection as well.
Ping your router with
ping -c 3 192.168.1.254
BTW what address did you put into the address bar of your browser to get the conf page of the router?
Just to avoid possible stupid misunderstandings, move the cable to the next ethernet port on your machine (as I understand you have two) and reapeat the ping.

Edit again the /etc/rc.d/rc.inet1.conf to the original line for DHCP
Code:
USE_DHCP[0]=""
and check sections for other ports are empty.
Post the output of
Code:
lsmod
dmesg | grep eth?
Just append nameserver lines to /etc/resolv.conf (leave search mydomain.com as well)
Then restart the net
Ciao
 
Old 03-27-2008, 10:23 AM   #15
mattireland
LQ Newbie
 
Registered: Mar 2008
Location: N Wales
Distribution: Slackware, Ubuntu, LFS
Posts: 14

Original Poster
Rep: Reputation: 0
Hi,

I was pinging the two pings and was puzzled by the fact that it did not work for the first port. So I switched the cable around and now I can access the internet. Thank you so, so much for helping me edit the files as before today, whenever I switched around the cable it did not work. I'm really, really grateful to you and to everybody else who helped for helping me and also educating me. I want to learn so much more about Linux.

Thank you so, so much again. Shall I edit the settings for eth1 so that I can access the internet on that instead. If you want me to still post the outputs just for interests sake then I should be happy to?

Again, thank you very much and if there's anything I can do for you please let me know,

Matt. Ireland
 
  


Reply



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
Problems connecting to the internet Furlinastis Linux - Networking 24 10-14-2007 08:40 PM
Connecting to internet problems cybercraft Linux - Newbie 2 06-20-2006 07:53 PM
Connecting Problems to Internet FireInTheDark Linux - Networking 3 08-11-2004 10:39 PM
Problems after connecting to internet tuxedo-notebook Linux - Software 12 04-21-2004 11:59 PM
Problems connecting to internet smokedog Linux - Networking 9 12-14-2003 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:50 AM.

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