How to share internet with Windows XP Sp2

Asked by achkar on 2007-05-21

I have 2 lan cards. One is for my ISP (without settings) and other is for my parents computer on Windows XP SP2. How to share my internet to them?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-network Edit question
Assignee:
No assignee Edit question
Last query:
2007-05-21
Last reply:
2007-11-29

You can see the follow post at ubuntuforums.
http://ubuntuforums.org/showthread.php?t=91370

Massimo Forti (slackwarelife) said : #2

Thanks for your question, but I don't understant what do you want to do, If your problem is to see the xp using ubuntu or using ubuntu like a share server. let me know thanks many

Massimo, he say he want to share a Internet connection of one PC to other PC of her home.
it's is easy, active ip_forward and set the correct iptables to have NAT on the PC that has got Internet.

achkar (alachkar) said : #4

poseidon@poseidon-desktop:~$ ifconfig eth1 192.168.0.1
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied

I recieve this msg.

with sudo:
sudo ifconfig eth1 192.168.0.1
it will ask you for your password.

achkar (alachkar) said : #6

What sudo is? And how i can download and install it? I can't find it in Add/Remove

sudo is a command to use root (SuperUser) privileges.
you must put the last command on terminal like that:

poseidon@poseidon-desktop:~$ sudo ifconfig eth1 192.168.0.1

Then, the permission denied don't go out and do that you want.

achkar (alachkar) said : #8

and i should use sudo before every command?

You should use "sudo" before every command of that guide , and others guides when the prompt of command line finish on #

Example:

this is a prompt.
user@host patch $
----> it haven't administrative privileges.

user@host path # iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE
--> You must use sudo to execute it . THIS DON'T RUN
you may use some like that:
user@host path $ sudo iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

user @host path $ cat .bashrc
---> You don't use sudo.

"sudo" is only for administrative things.

shiku (amikarumba) said : #10

am using ubuntu and i want to print using hp laserjet 1018 give me the steps to download and install the printer

Can you help with this problem?

Provide an answer of your own, or ask achkar for more information if necessary.

To post a message you must log in.