LinuxQuestions.org
Review your favorite Linux distribution.
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 11-06-2007, 06:02 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Rep: Reputation: 30
Sharing an XP net connection with a Ubuntu box - Ubuntu config query.


I'm trying to share my XP net connection with a Ubuntu box.
The 2 machines are linked via a crossover patch cable and I can ping / SSH into the Ubuntu from XP with no problems.
Just got a second NIC for the XP box so I want to share the net connection.
the IP of the Ubuntu box is 192.168.0.1 and I've read that if Internet Connection Sharing is enabled on the XP machine, the latter gets assigned that address, so I will have to reconfigure the Ubuntu to have address 192.168.0.2. Also DHCP needs to be setup on Ubuntu. Is this a simple matter of editing the /etc/network/interfaces file or does additional software need to be installed ? I'm running Ubuntu server 7.04. What adjustments would I have to make ?
If a successful net connection is achieved, how safe / secure would the Ubuntu box be ? Would any additional security measures be advisable on the Ubuntu end ?

Thanks again !

Uncle-C
 
Old 11-06-2007, 08:37 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
http://achinghead.com/archive/57/sha...nection-linux/

Hope this helps.
 
Old 11-06-2007, 10:09 AM   #3
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Original Poster
Rep: Reputation: 30
Thanks a lot for the reply BD. I have Ubuntu server 7.04 running as the linux box and with no X, so everything has to be done via command line.
The IP of the Ubuntu box was 192.168.0.1, but I had to alter this because when ICS is enabled on XP the XP Box automatically assigns that to itself.

Ubuntu Box :
Code:
 
 # ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up
I also altered my /etc/network interfaces file


# The primary network interface
Code:
auto eth0
iface eth0 inet dhcp (replaced static )
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
When I go into windows to set the "Network Connections" the NIC which is connected to the net
I allow to "obtain address automatically" but should I fill in any other fields ?
The NIC which is connected to the Linux box I am unsure of. Should I set it's IP address as 192.168.0.1, netmask 255.255.255.0.
The ultimate goal is to logon to my Ubuntu box from XP using Putty SSH and then use the ICS facility to use wget to d/l files and the "apt-get" install features to install software on my Ubuntu box.

Thanks,
Uncle

Last edited by uncle-c; 11-06-2007 at 10:13 AM.
 
  


Reply

Tags
dhcp, ics, sharing, ubuntu, xp


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
Help !!! Ubuntu Internet Connection Sharing PopaBogdan Linux - Networking 4 01-02-2007 08:43 PM
ubuntu 5.10 post update net connection help ShadowShuriken Ubuntu 2 05-30-2006 09:14 AM
Sharing Printer attached to Ubuntu Box jmikeneedham Linux - Networking 1 05-17-2006 09:02 PM
how do i connect to the net in ubuntu hoary thru dial-up connection??? akshay_jp Linux - Networking 1 09-17-2005 05:16 PM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM

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

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