Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Edit: Cross-posted in the networking forum and Slack forums. Please excuse the multiple posts.
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.
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 for the response. I did as you suggested, and the settings do indeed match XP's. My IP address is the same, at least (184.108.40.206). Bcast is set at 220.127.116.11 (should this match my gateway? In XP my gateway is 18.104.22.168).
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:
domain name: in
IP address: (use DHCP server)
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:
redkazan@backdrift:~$ ping -c 3 www.yahoo.com
PING www.yahoo.akadns.net (216.109. 118.71) 56(84) bytes of data.
From 22.214.171.124 icmp_seq=3 Packet filtered
--- ww.yahoo.akadns.net ping statistics ---
3 packets transmitted, 0 received, +1 errors, 100% packet loss, time 2010 ms
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?