LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 04-30-2005, 06:21 AM   #1
FishBoy
Member
 
Registered: Nov 2004
Distribution: SuSE 10.2
Posts: 56

Rep: Reputation: 15
Smile Linux through windows


Hey guys I need help with a little someting, my computer connects through the other computer we have in order to connect to the internet (ie: the other computer is the gateway and has a shared connection) my computer is SuSE 9.1 just installed and the other computer is Windows XP SP2, i went into YaST and setup all the IPs and stuff for my NIC and i can see the otehr computer's files through smb:/

my computer (suse 9.1):
IP: 192.168.0.2
Gateway: 192.168.0.1
mask: 255.255.255.0

theOther (windows xp):
IP: 192.168.0.1
SubNet mask: 255.255.255.0

Thanks,

FishBoy
 
Old 04-30-2005, 08:05 AM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
And what is it you need help with?
I can think of dozens of problems, one of which may be your particular issue, but maybe not.
cheers
 
Old 04-30-2005, 08:18 AM   #3
FishBoy
Member
 
Registered: Nov 2004
Distribution: SuSE 10.2
Posts: 56

Original Poster
Rep: Reputation: 15
I need to know how to configure my computer to connect through the other XP computer which has a shared connection
 
Old 04-30-2005, 11:15 AM   #4
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
Originally posted by FishBoy
I need to know how to configure my computer to connect through the other XP computer which has a shared connection
Personally, I would $NEVER let a windows box act as a router/firewall for a linux box at all.......windows can't be trusted with all the script kiddies in the world today!!

BUT, pppoe........"ppp over ethernet" is the program you might read up on.........
 
Old 04-30-2005, 01:10 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Is your XP configured for Internet Connection Sharing?

Is the linux PC using a static IP or DHCP?

If using a static IP address you will need to set the gateway address as 192.168.0.1 and add the DNS info from XP to the /etc/resolv.conf file.

If using DHCP then make sure the gateway address is set correctly and the DNS nameserver info is in the /etc/resolv.conf file.

This thread will get better exposure if moved to networking.
 
Old 04-30-2005, 01:42 PM   #6
FishBoy
Member
 
Registered: Nov 2004
Distribution: SuSE 10.2
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by freakyg
Personally, I would $NEVER let a windows box act as a router/firewall for a linux box at all.......windows can't be trusted with all the script kiddies in the world today!!

BUT, pppoe........"ppp over ethernet" is the program you might read up on.........
lol sorry i can't coz the main connection is only through the windows box and we'll have to drill another hole to get the main connection to the linux box :s

Quote:
Originally posted by michaelk
Is your XP configured for Internet Connection Sharing?

Is the linux PC using a static IP or DHCP?

If using a static IP address you will need to set the gateway address as 192.168.0.1 and add the DNS info from XP to the /etc/resolv.conf file.

If using DHCP then make sure the gateway address is set correctly and the DNS nameserver info is in the /etc/resolv.conf file.

This thread will get better exposure if moved to networking.
yea both computers are static IPs i did specify they IPs above
yea i did set the gateway to 192.168.0.1 on my linux box and i saw a couple of icons starting with 'DNS.....' on YaST can't i configure it from there? or the only way is through the /etc/resolv.conf file?
 
Old 04-30-2005, 03:31 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I'm not real familar with yast but it is quite easy to add an entry to resolv.conf file.

Write down the info from widows and edit the file (need to be root). Add
nameserver xxx.xxx.xxx.xxx
 
Old 04-30-2005, 09:03 PM   #8
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
why not set up the linux box as the connected one, and have the windows box behind it?
 
Old 04-30-2005, 10:42 PM   #9
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
Yea, he already said that would involve another hole in the wall.

On the windows machine, I'm assuming there are two NICs, one for internet access, one connecting to the linux box? (I did this for a long time before I broke down and bought a wireless router... windows machine = not portable, linux laptop = portable :-/)

Anyway, when you share the connection on the XP machine, you can tell it to act as a DHCP server (I think this is the default setting, but even if it isn't I know there's a way because I had it working.)

Once that's set up you can configure your linux NIC to use automatic DHCP, and the Windows box oughta give you an IP address and recognize you for ICS.

good luck!
 
Old 05-01-2005, 01:19 AM   #10
FishBoy
Member
 
Registered: Nov 2004
Distribution: SuSE 10.2
Posts: 56

Original Poster
Rep: Reputation: 15
yea the windows machine has 2 adapters one to the internet and one connected to my computer
ok so i went to the internet conection on the windows machine and went to settings under ICS and selected both DHCP boxes and then restarted and then i went to the linux box and i set it to get everything automatically from DHCP and the gateway to 192.168.0.1 and then i added the line 'nameserver 192.168.0.1' to the resolv.conf
i'm just making sure im diong it right because when i open knoqueror it doesn't open anything i still dont get a connection no it, did i do anything wrong? :s
 
Old 05-01-2005, 11:32 AM   #11
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
Seems like you did everything ok... after you change the config, try running

dhcpcd -k
dhcpcd eth0

You'll probably have to run these as root, and it should get you a new ip for your NIC. --Simply rebooting might even solve it if you haven't tried that already.. the machine needs time to re-parse the config files
 
Old 05-01-2005, 11:42 AM   #12
Deeze
Member
 
Registered: Dec 2004
Distribution: Debian - Sarge -- Slackware 10.1 - Dropline
Posts: 154

Rep: Reputation: 30
Spend the $50 to get a router/hub. Connect everything to it. Problem solved.
 
Old 05-02-2005, 02:14 AM   #13
FishBoy
Member
 
Registered: Nov 2004
Distribution: SuSE 10.2
Posts: 56

Original Poster
Rep: Reputation: 15
hmm i'll see i'll talk to parents about getting a router coz it does sound a little better and i dont really like how my computer is suposed to connect to the internet, i'll let you guys know what happened thx everyone
 
Old 05-02-2005, 02:26 AM   #14
FishBoy
Member
 
Registered: Nov 2004
Distribution: SuSE 10.2
Posts: 56

Original Poster
Rep: Reputation: 15
oh btw i just tried the 2 commands pokemaster said to use and the dhcpcd -k outputed ******* : dhcpcd not running
and the dhcpcd eth0 game me a new line and the cursor was just sitting htere doing nothing
 
  


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
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM
Vnc only works linux to windows not windows to linux mbdayton Linux - Networking 2 04-16-2005 06:36 PM
Red Hat Linux 9 + Windows Server 2003 + Windows XP + Fedora in same domain wolfy339 Linux - Networking 5 03-02-2005 06:03 AM
Samba - Linux box can see Windows, but WIndows can't see Linux Korff Linux - Networking 1 06-02-2003 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 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