LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-09-2003, 06:02 PM   #1
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Rep: Reputation: 15
Angry going insane trying to get internet sharing to work


ok, computer that connects to the internet is running windows XP, that connects to the linux computer running mandrake 9.0 with a crossover cable, network card to nework card.

i enabled ICS in XP but i am not getting anthing on the linux box

the linux box has a netgear fa311 network card that (i think) is working correctly

the XP box works fine, it says its connected, but its not sending or recieving any packets

ive been trying to get this working for three days, its driving me nuts

how can i:
1. check to see if my network card is working right
2. if it is, get ICS to work
3. if its not, how could i get it to work

sorry if this has been answered before, i couldnt find anything with the search
 
Old 05-09-2003, 06:06 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Are the PCs networked OK? ie - can they ping each other?
 
Old 05-09-2003, 06:07 PM   #3
david63
LQ Newbie
 
Registered: May 2003
Location: Lancashire, UK
Distribution: Mandrake 9.1
Posts: 27

Rep: Reputation: 15
Just been down this very same road and found that you need to configure the gateway. By default ICS uses 192.168.0.1 so first of all make sure your network cards do not use this address. I manually configured mine. Then on your Linux machine (Control Centre > Network - go int Expert Mode) and congiure the gateway to be 192.168.0.1 and all being well it should work!
 
Old 05-09-2003, 06:13 PM   #4
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Original Poster
Rep: Reputation: 15
i tried pinging the linux box from the xp box, no luck it timed out

i dont know how to ping in linux
 
Old 05-09-2003, 06:16 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Same as in windows:
ping ip.ad.dr.ess

What ip addresses are on the boxes?

Can you post the output of this on windows:
route print
ipconfig

And this on linux(you will need to be root):
ifconfig
route
 
Old 05-09-2003, 06:33 PM   #6
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Same as in windows:
ping ip.ad.dr.ess
ok did that, it said network is unreachable

Quote:

What ip addresses are on the boxes?
Linux is IP 1.2.3.4
XP is IP 5.6.7.8

subnet mask on both are 255.255.255.0

Quote:
Can you post the output of this on windows:
route print
ipconfig

And this on linux(you will need to be root):
ifconfig
route
where do i do this? *edit* nevermind

Last edited by the anti-riced; 05-09-2003 at 06:37 PM.
 
Old 05-09-2003, 06:41 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Linux is IP 1.2.3.4
XP is IP 5.6.7.8
Is that true? If so - no wonder it aint working! If that is you saying you aren't going to tell me then fine - I'm off to bed
 
Old 05-09-2003, 06:43 PM   #8
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Is that true? If so - no wonder it aint working! If that is you saying you aren't going to tell me then fine - I'm off to bed
no im being dead serious (im a network noob too ) so what should i change them too?

um, how do i change the IP address in linux?

Last edited by the anti-riced; 05-09-2003 at 06:45 PM.
 
Old 05-09-2003, 06:45 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make the windows box:
IP = 192.168.1.1
netmask = 255.255.255.0

Make the linux box:
IP = 192.168.1.2
netmask = 255.255.255.0
gateway = 192.168.1.1

That should eb all you need to do. You will need to restart the network services on windows and linux after the changes.
 
Old 05-09-2003, 06:46 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Also - the DNS settings on linux should be the ones assigned to your xp box by your ISP.

You can see them by running:
ipconfig /all
 
Old 05-09-2003, 06:48 PM   #11
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Original Poster
Rep: Reputation: 15
how do i change the ip addresses in linux?
 
Old 05-09-2003, 06:50 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
In Mandrake the there is a Tool called netconf.
1) Run "netconf".
2) Click on "Hostname and IP network devices".
3) Click on "Adaptor 1" then enter your network details.
4) Click "Accept" then "Routing and Gateways"
5) Click "Defaults" then enter then IP of your xp machine
6) Accept the changes and click "Do it"
7) Restart the network service "service network restart"
 
Old 05-09-2003, 07:08 PM   #13
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Original Poster
Rep: Reputation: 15
where do i run netconf?

logged in as root

i tried it in console, it says command not found

i tried it in the run on the main menu on KDE, i says could not run the specified command

Last edited by the anti-riced; 05-09-2003 at 07:10 PM.
 
Old 05-09-2003, 07:19 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try pressing "Ctrl + Alt + F1" then login as root and run:
netconf

Then press "Ctrl + Alt + F7" to get back to the GUI.
 
Old 05-09-2003, 07:26 PM   #15
the anti-riced
Member
 
Registered: May 2003
Location: Tinker AFB, OK
Distribution: Desktop:Windows XP Server:Nothing right now :(
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Try pressing "Ctrl + Alt + F1" then login as root and run:
netconf
nope it still says command not found
 
  


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
Why won't internet connection sharing work? djohn46972 Linux - Networking 3 05-30-2004 11:13 AM
Sharing Internet with two machines, ping doen't work sandrain Linux - Networking 7 02-24-2004 12:59 PM
can't get internet connection sharing to work? powerchord81 Linux - Networking 2 10-18-2003 04:39 PM
sharing internet through eth0 to sl0, iptables wont work Oxagast Linux - Networking 2 08-11-2003 07:36 PM
Interesting TCP/IP Problem? PosgreSQL and Internet Connection Sharing Don't Work iaypaa Linux - Networking 3 11-04-2002 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:41 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
Open Source Consulting | Domain Registration