Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-06-2007, 06:02 AM   #1
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 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 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 !

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

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356

Hope this helps.
Old 11-06-2007, 10:09 AM   #3
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, but I had to alter this because when ICS is enabled on XP the XP Box automatically assigns that to itself.

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

# The primary network interface
auto eth0
iface eth0 inet dhcp (replaced static )
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, netmask
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.


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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration