LinuxQuestions.org
Visit Jeremy's Blog.
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 04-24-2006, 10:28 PM   #1
vrael
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Networking windows and ubuntu for internet


I need to connect my dads computer to mine for internet and i run ubuntu and he runs windows and i have them connected by a lan cable and the windows network is showing up in networks and i connect to the net work please help me get internet!!!!


P.S I am a complte lenux noob so go easy on me

Last edited by vrael; 04-24-2006 at 10:51 PM.
 
Old 04-24-2006, 10:50 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by vrael
I need to connect my dads computer to mine for internet and i run ubuntu and he runs windows and i have them connected by a lan cable and the windows network is showing up in networks and i connect to the net work please help me get internet!!!!
hi,
on which machine do you have the internet connection ??? on yrs or on your dad's ???

regards
 
Old 04-24-2006, 10:52 PM   #3
vrael
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
My dads computer
 
Old 04-24-2006, 11:20 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
ok.
in the network (local LAN) settings on windows machine, opt for the option that this (window) machine connects directly to the internet and other machines connect to the internet through this machine as gateway.
now obtain the DNS IP's from your window machines "internet" settings if its manually done othewise type #ipconfig on win machine to obtain that.

now come to linux machine
in the file /etc/resolv.conf enter the DNS IP's like:

Quote:
root@bond:~# cat /etc/resolv.conf
nameserver 202.56.230.6
nameserver 202.56.224.153
root@bond:~#
now you have to specify the "gateway" for you linux machine.
Here i can't help you b'coz i use slackware.
in slackware its /etc/rc.d/rc.inet1.conf
in redhat its /etc/sysconfig/network-scripts/ifcfg-eth0

so search for some file like this which works on ubuntu and add the default gateway entry (i.e the local IP address of your father's machine in this file).
re-run the network service of ubuntu and it should be up.

regards
 
Old 04-29-2006, 12:16 PM   #5
vrael
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
sry

Im sorry i need to connect to a windows network that is connected to the internet through a DSL Router We have Dynamic IP addresses
 
Old 04-29-2006, 12:31 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Search for help on the windows PC and the internet for Internet Connection Sharing (ICS). Once ICS is configured on the windows PC the IP address of the gateway on the windows box will be 192.168.0.1 and can not be changed. Configure your linux PC for DHCP and you should be good go.

http://www.annoyances.org/exec/show/ics

I missed your last post and somewhat confused as to how your networked.

Are you directly connected to the router or the windows PC? If directly connected to the router then again configure the linux PC for DHCP. If the router is configured in a bridge mode then you would need to setup the linux PC for rp-pppoe if your DSL line uses pppoe.

Last edited by michaelk; 04-29-2006 at 12:38 PM.
 
  


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
Ubuntu to Fedora Networking Problem BobNutfield Linux - Networking 4 03-20-2006 11:31 AM
/etc/hosts slows networking on Ubuntu 5.10 Elitist_Phoenix Linux - Networking 3 11-12-2005 11:02 AM
Networking with Windows (Hmmmm) and Ubuntu Linoman Ubuntu 4 11-06-2005 09:26 AM
Sharing my Internet Connection from Ubuntu to Windows (XP & 98SE) eminence Linux - Networking 4 05-19-2005 06:05 PM
Netgear router hangs and drops internet connection on Ubuntu but not Windows shodekiagari Linux - Networking 1 04-04-2005 08:27 PM

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

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