LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 07: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, 09: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, 09: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, 12:15 PM   #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, 02:10 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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, 02: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, 04:31 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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, 10: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, 11: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, 02: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, 12:32 PM   #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, 12:42 PM   #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, 03: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, 03: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


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


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