SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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)
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.
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?
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
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?
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).
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
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?
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.
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"
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
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.
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
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,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.