LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Connecting to the internet... (https://www.linuxquestions.org/questions/linux-newbie-8/connecting-to-the-internet-136565/)

redkazan 01-19-2004 09:04 PM

Connecting to the internet...
 
Hey Folks:

I've succesfully shared an internet connection between my Linux box and my XP box at home. I'm back at school, however, and am having problems setting up the internet connection. I can connect perfectly fine via WinXP (the laptop is dual-booted), and I've since nabbed my IP, gateway, DNS server, etc. However, when I enter in this info manually in Slack [via netconfig], it doesn't work. Likewise, when I select the DHCP option, it doesn't work. However, I've confirmed via XP that the IP is assigned via DHCP. What am I doing wrong? I'm sure that I'm missing an obvious step. It seems as though I have all of the relevant info, I just don't know how to configure it. Please shed some light on this.

Thanks,

rk

Slackware 9.1/2.6.1
Gateway 450XL

Edit: Cross-posted in the networking forum and Slack forums. Please excuse the multiple posts.

adz 01-20-2004 01:08 AM

Have you tried doing a dhclient eth0 manually?

redkazan 01-20-2004 01:10 AM

Nope.
 
adz:

No, could you explain how I'd go about doing that? Thanks :).

rk

adz 01-20-2004 02:59 AM

You type the words "dhclient eth0" and the prompt. You have to be root, though. If it comes up as "command not found" then try /sbin/dhclient eth0. If still no joy then you haven't installed the dhcp-client package.

redkazan 01-20-2004 11:07 AM

Crap.
 
Heya:

When I first tried it, dhclient complained about a copy of initd that was running, so I killed the process (as instructed) and tried again. This time dhclient claimed that it couldn't find eth0. However, I know that the network card is properly configured, and I can ping myself (127.0.0.1). I'm at a loss.

Thanks,

rk

fragglehorn 01-20-2004 12:30 PM

'ifconfig eth0 up', then 'ifconfig' to make sure the settings are correct. what are your answers, step-by-step, to netconfig?

note: mods here are pretty insistent on the double-posting rule.

redkazan 01-20-2004 03:01 PM

Results...
 
fragglehorn:

Thanks for the response. I did as you suggested, and the settings do indeed match XP's. My IP address is the same, at least (140.232.158.79). Bcast is set at 140.232.158.255 (should this match my gateway? In XP my gateway is 140.232.158.1).

Exact responses to netconfig:

hostname: backdrift (made up)
domain: in (made up)

Then I select DHCP, leave the nameserver blank, and select yes when it asks if these are the correct settings:

Hostname: backdrift
domain name: in
IP address: (use DHCP server)
Netmask: "
Gateway: "
Nameserver: "

When I save the settings, and try to ping an outside address, it returns 'host unknown'. However, when I reboot, and try to ping something, I get the following:

Code:

redkazan@backdrift:~$ ping -c 3 www.yahoo.com
PING www.yahoo.akadns.net (216.109. 118.71) 56(84) bytes of data.
From 140.232.158.1 icmp_seq=3 Packet filtered

--- ww.yahoo.akadns.net ping statistics ---
3 packets transmitted, 0 received, +1 errors, 100% packet loss, time 2010 ms

Any ideas?

rk

fragglehorn 01-20-2004 04:38 PM

Okay, try this:

Hostname: backdrift
domain name: in
IP address: (use DHCP server)
Netmask: 255.255.255.0
Gateway: 140.232.158.1
Nameserver: 140.232.158.1

The broadcast address is already as it should be.

redkazan 01-20-2004 04:44 PM

fragglehorn:

How do I change my gateway/nameserver, while still letting DHCP handle my IP? When I run netconfig, if I select DHCP, it uses DHCP for *everything*.

Plus, what do you make of the fact that when using DHCP, I can kinda ping the outside world, but I get those 'packet filtered' errors?

Thanks,

rk

fragglehorn 01-21-2004 02:26 PM

Forget what I said about changing settings manually. Just let dhcp do everything, it's at least letting you talk to outside addresses.

The filtered packet is a little strange. You say you're back at school now? If you're living in a dorm and plugging into a school network, they could be running a firewall that doesn't like your box. Perhaps you're running services (http, smtp, etc) that they don't trust. Is this machine strictly a workstation?

t3___ 01-21-2004 02:52 PM

~~~~~~~~~~~~~~
Perhaps you're running services (http, smtp, etc) that they don't trust. Is this machine strictly a workstation?
~~~~~~~~~~~~~~

And its worth metioning that some Distros (im not sure about slackware) run these services (esp Apache/http) by default...

redkazan 01-21-2004 05:03 PM

Which services would be troublesome? How do I find/disable them?

Thanks guys,

rk

fragglehorn 01-22-2004 06:04 AM

As root, 'nmap localhost'. This will list your open ports.


All times are GMT -5. The time now is 05:27 AM.