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 05-26-2004, 10:10 AM   #1
lphlee
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
Lan connection crapped with Windows XP as Internet Gateway


Can anyone help? I installed Mandrake Linux v10.0 community distribution on my laptop with the profile as follow.

PIIIM 1Ghz
I830 Graphic Chipset
27GB Harddisk
Realtek 8139 Ethernet Interface Card

I can't get an IP from my Windows XP Desktop running Internect Connection Sharing.
Thus, I set the static IP but it just prompt up saying the IP is not in correct format. (192.168.0.7) Hence I do it in console:

ifconfig eth0 192.168.0.6 netmask 255.255.255.0 up

And I do ifconfig and got this:

eth0 Link encap:Ethernet HWaddr 00:E0:18:7D:17:3E
inet addr: 192.168.0.6 Bcast 192.168.0.255 Mask: 255.255.255.0
inet6 addr: fe80::2e0::18ff:fe7d:173e/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 1831 errors: 0 dropped: 0 overruns:0 frame:0
TX packets: 99 errors:0 dropped:0 overruns: 0 carrier:0
collisions:0 txqueuelen:1000
RX bytes: 228402 (233.0kb) TX bytes: 15004 (14.6Kb)
Interrupt: 10 Base address: 0xd000

But stil, I cant get the browser to browse any website. And when I get into the Mandrake control center, in the "Monitor connections", it just say "Not connected". How can I configure it so it can surf the internet properly? or it doesnt support windows xp as an internet gateway?
 
Old 05-26-2004, 01:03 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 168Reputation: 168
you need to set your gateway, and nameserver.

route add default gw xxx.xxx.xxx.xxx

then edit /etc/resolv.conf, add

nameserver xxx.xxx.xxx.xxx

make sure you don't have a firewall problem. to make the gateway permanent i believe you need to edit /etc/sysconfig/network-scripts/ifconf-eth0.
hope that helps.
good luck.
 
Old 05-27-2004, 09:48 AM   #3
lphlee
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I have tried to set the default gateway and static ip in the etc/sysconfig/network-scripts/ifcfg-eth0 file
with the following context:

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.7
NETMASK=255.255.255.0
NETWORK=192.168.0.1
ONBOOT=yes
MII_NOT_SUPPORTED=yes
NEEDHOSTNAME=no

But the system is unable to load any web page stil. I have successfully ping the IP of the other computer within the same network but not any outside web url.
I tried to ping www.yahoo.com but it returns
ping: unknown host www.yahoo.com

is there something to deal with dns setting or else?
 
Old 05-27-2004, 06:20 PM   #4
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 168Reputation: 168
check your firewall settings on the xp machine. did you edit your resolv.conf?
 
  


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
Setting up gateway to share internet for private LAN muru Linux - Networking 6 09-17-2005 09:08 PM
How to connect to a network using Windows and use a internet(LAN) connection JulianS Slackware 5 03-06-2004 02:51 PM
How can I share my Internet connection with other LAN ms windows users emiliofil Linux - Networking 1 02-21-2004 11:01 AM
LAN machines unable to connect to Internet through (firewall on )gateway nishi_k_79 Linux - Security 1 11-13-2003 02:30 PM
Windows Internet Gateway on LAN Turin Linux - Newbie 1 08-17-2003 08:45 PM


All times are GMT -5. The time now is 09:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration