LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-28-2004, 05:44 PM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931

You first need to configure XP for internet connection sharing.
http://www.microsoft.com/windowsxp/u...nmore/ics.mspx
http://info.connect.com.au/docs/dial...CS/ics_xp.html

ICS automatically will configure the XPs IP address as 192.168.0.1. You can either setup a static IP address on the linux box or use DHCP.
 
Old 09-28-2004, 06:41 PM   #17
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
In addition to michaelk's post if you set up static ip's you'll probably need to edit /etc/resolv.conf and add you xp gateway as your nameserver in the following format.

nameserver xxx.xxx.xxx.xxx

Where xxx.xxx.xxx.xxx is the ip address of your xp machine.
good luck.
 
Old 09-29-2004, 10:59 AM   #18
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
like i said earlier, i am a very new user to linux...could u please be more specififc to how i would "edit /etc/resolv.conf"
 
Old 09-29-2004, 11:34 AM   #19
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
If you're using static ip addresses, open a terminal and swich to su -, then use pico or some other editor to edit the file and save changes. It'll look something like this.

$su -
password:

#pico /etc/resolv.conf


Once it's open you'll need to add the other machine in this format.

nameserver xxx.xxx.xxx.xxx

Where xxx.xxx.xxx.xxx is the ip address of your xp machine.
good luck.
 
Old 09-29-2004, 12:02 PM   #20
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
how do i find the network ip for my XP pc?

also, when i enter /etc/resolve.conf into the terminul under root it dispays the message "bash: /etc.resolv.conf: Permission denied"...what shall i do?

Last edited by alex_zcb; 09-29-2004 at 12:06 PM.
 
Old 09-29-2004, 12:11 PM   #21
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
From the xp machine open a command prompt and type.

ipconfig /all

It appears as if you have a syntax error. "/etc.resolv.conf" should be "/etc/resolv.conf"

good luck.
 
Old 09-29-2004, 12:19 PM   #22
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
the same error message comes up...

how do i find the network ip address on linux pc?
 
Old 09-29-2004, 12:25 PM   #23
sbrewer
Member
 
Registered: Jul 2004
Location: Huntsville, AL
Distribution: RedHat 9
Posts: 43

Rep: Reputation: 15
ifconfig
 
Old 09-29-2004, 12:28 PM   #24
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
when i type in that command i get a load of writing...which one is my network ip....
"inet6 addr:" or the "Bcast:" ???
 
Old 09-29-2004, 12:32 PM   #25
sbrewer
Member
 
Registered: Jul 2004
Location: Huntsville, AL
Distribution: RedHat 9
Posts: 43

Rep: Reputation: 15
You should see a line that begins with "inet addr:". If not, you are not receiving an IP address either statically or through DHCP. Below is what mine looks like...

eth0 Link encap:Ethernet HWaddr 00:06:5BE:8C:4F
inet addr:10.2.1.66 Bcast:10.2.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:449395235 errors:2 dropped:0 overruns:1 frame:2
TX packets:187210368 errors:0 dropped:0 overruns:0 carrier:187210368
collisions:0 txqueuelen:100
RX bytes:3647569984 (3478.5 Mb) TX bytes:4067031880 (3878.6 Mb)
Interrupt:11 Base address:0xec00
 
Old 09-29-2004, 12:56 PM   #26
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
i have done everything that was requested and the status of the connection on the linux pc still displays "not connected"

on linux pc boot up it still displays that "bringing up interface eth0 - FAILED" whilst displaying in verbose mode. Is this the problem? How can i fix this?
 
Old 09-29-2004, 02:01 PM   #27
Tekel
LQ Newbie
 
Registered: Sep 2004
Location: UK
Distribution: Slackware / Debian / RedHat
Posts: 12

Rep: Reputation: 0
Perhaps i should ask............ You say you have the network card of your XP box.. plugged into the one on your Linux box right?

Have you made sure your using a crossover cable and not a straight through network cable? - seems everyone failed to ask you that!

Best way to check is to take both ends of the network cable, and see if the colour sequenses match on each side, if they do you require a crossover cable!
 
Old 09-29-2004, 02:05 PM   #28
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
what is a crossover cable? the colour sequence dont match up exactly. when i plug the wires back in the light appears on the xp box but not on the linux box

Last edited by alex_zcb; 09-29-2004 at 02:07 PM.
 
Old 09-29-2004, 02:11 PM   #29
Tekel
LQ Newbie
 
Registered: Sep 2004
Location: UK
Distribution: Slackware / Debian / RedHat
Posts: 12

Rep: Reputation: 0
Hi,

Some network cards will light up, others wont (well old ones) - if theres no light at all on the linux box it suggests that there is indeed an issue with either the driver, or the network card its self.

Have you tried changing what PCI port the card is in on the linux machine? (White ports... usually 4 to choose from), also ensure that PNP OS support is disabled under your bios.


..and one last one... you are attempting to perform these commands as the 'root' user yeah?
 
Old 09-29-2004, 02:25 PM   #30
alex_zcb
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
yeah...how exactly would i do all of that?
 
  


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
Trouble networking two Linux computers (via crossover cable) lrt2003 Linux - Networking 3 06-29-2004 09:06 AM
Networking Two Home Computers !? SuseBoy Linux - Networking 4 08-20-2003 10:54 PM
Networking three computers srinuallada Linux - Networking 1 08-01-2002 04:31 PM
networking 2 computers Susan Linux - Networking 1 10-26-2001 03:23 PM
networking two computers dilberim82 Linux - Networking 6 05-21-2001 12:08 PM

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

All times are GMT -5. The time now is 07:02 AM.

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