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 09-24-2005, 03:55 PM   #1
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Rep: Reputation: 0
Unhappy Internet connection sharing


how to

I must tried very very in this educational site in communion of the internet throughout the unix and i need to solve this ?????????!!!!!!!!!!!

i am trial from failure triales communion of the internet throughout another computer throughout the network

http://www.w6w.net/upload2/24-09-200...36931a5f9a.JPG
 
Old 09-25-2005, 02:57 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You want to set up a computer as a router.

Probably the easiest way for you to do this, would be to use dedicated router software like freesco.

Or you can buy a hardware router. Most ethernet switches come with one built in these days.

However, for anyone to give you specific advice, you need to say what linux distro you are using and where you are from (put this information in your user profile: My LQ > edit profile).

Last edited by Simon Bridge; 09-25-2005 at 03:01 AM.
 
Old 09-25-2005, 05:51 AM   #3
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
HOW CAN BE COMMUnion with the internet according to the shape and mention details???

that means i need to perform the method without any problem ?

why the communion process of the internet in the linux programme very difficult with i known it is dont a huge thing and it is easily in windows???!!!
"i need to set the server pc up with 2 network cards. "
"Look into NAT"
 
Old 09-25-2005, 06:38 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
HOW CAN BE COMMUnion with the internet according to the shape and mention details???

The details I wanted were your distro and location. You can tell me those by the same method as you write to me now.

(BTW: the english word "communion" implies worship. Perhaps you mean: "communication"? However, one does not communicate with the internet either - one "connects" to it.)

why the communion process of the internet in the linux programme very difficult with i known it is dont a huge thing and it is easily in windows???!!!
"i need to set the server pc up with 2 network cards. "
"Look into NAT"


Setting up a network to share an internet connection via a linux machine is much easier than with windows. Linux was designed for networking.

Without knowing what you are using for a distro, I cannot tell you any more than I have. Either use a hardware router (easiest - plug it in and it goes) or use a freesco - which is a linux which is already to do routing like this.

Your diagram shows a server pc with two network cards - that is why I've gone on about it. However, I am having great trouble understanding your english, so I could have got this wrong.
 
Old 09-25-2005, 07:07 AM   #5
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
how to details nat for linux and mention details ??
accordind to the clear shape down link:


http://www.w6w.net/upload2/24-09-200...36931a5f9a.JPG
 
Old 09-25-2005, 09:14 AM   #6
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
Connect to internet

Try this link. Very good details on how to connect to internet.

http://www.iwpcs.co.uk/info.html

and specifically

http://www.iwpcs.co.uk/simple_net_setup.html

it's in english I'm afraid but easy to follow. Other good stuff as well.

Last edited by turnbui; 09-25-2005 at 09:21 AM.
 
Old 09-25-2005, 03:40 PM   #7
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Re: Connect to internet

Quote:
Originally posted by turnbui
Try this link. Very good details on how to connect to internet.

http://www.iwpcs.co.uk/info.html

and specifically

http://www.iwpcs.co.uk/simple_net_setup.html

it's in english I'm afraid but easy to follow. Other good stuff as well.
thank

how can be control of many data to evey computer on the network according
so "bandwidth controller" for linux??
 
Old 09-25-2005, 04:35 PM   #8
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
Bandwidth Control / Traffic Shaping is not easy to set up... you have to compile support for that into the kernel and configure it properly. http://www.lartc.org is probably a good place to start; there's a script called Wondershaper there. A shaping script designed for NAT would be for example http://www.metamorpher.de/fairnat/, but these scripts as well require much more know-how than the point-and-click method provided by windows.

Maybe some Windows-alike distributions (like SuSE, ...) offers some easy way of configuring things... I wouldn't know.
 
Old 09-27-2005, 02:35 PM   #9
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Re: Connect to internet

Quote:
Originally posted by turnbui
Try this link. Very good details on how to connect to internet.

http://www.iwpcs.co.uk/info.html

and specifically

http://www.iwpcs.co.uk/simple_net_setup.html

it's in english I'm afraid but easy to follow. Other good stuff as well.
the Internet connection sharing problem the set


"""" Let's get started then:

Edit /etc/sysconfig/network-scripts/ifcfg-eth0 - This is the main config file for the first (internet facing) interface.
It should read : (you can leave out anything on a line after #)

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes

Edit /etc/sysconfig/network-scripts/ifcfg-eth1 - This is the main config file for the second (LAN facing) interface.
It should read :

DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.3.1
NETMASK=255.255.255.0
NETWORK=192.168.3.0
BROADCAST=192.168.3.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes
/etc/resolv.conf should contain the nameserver address(es) - put the address of your ISPs nameserver right at the top. eg:

nameserver 195.20.224.165You can have multiple nameserver xxx.xxx.xxx.xxx lines - the resolver will try them all in turn if one fails

The default gateway and your hostname go in /etc/sysconfig/network:

HOSTNAME=localhost
NETWORKING=yes
GATEWAY=192.168.1.1


We then need to set up packet forwarding:
Put the following command at the beginning of /etc/sysctl.conf

net.ipv4.ip_forward=1

Then 'turn off' the redirection to squid:
Install iptables - type "urpmi iptables" as root, or use the package manager in the start menu or mcc

Add the following code to the bottom of /etc/rc.d/rc.local.

iptables -t nat -D PREROUTING -i eth0 -j loc_dnatThis will delete a rule from your firewall - later, when you understand more, you can change shorewall and remove this line, but for now we'll keep it simple.


Reboot."""""""""


why problem

 
Old 09-27-2005, 02:48 PM   #10
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
ICS ??

Does this mean you are having a problem??

If you are what Linux distro are you using?

Which NIC is connected to your Modem or router and what is its IP?
192.168.1.2
What NIC is connected to your other computer and what is its IP address?
192.168.3.1
If these are correct can you PING each computer from the other?

What is the IP of the second computer ??
192.168.3.???

type in the command

ifconfig

Are the IPs of eth0 and eth1 correct??

Last edited by turnbui; 09-27-2005 at 02:56 PM.
 
Old 09-27-2005, 03:35 PM   #11
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Re: ICS ??

Quote:
Originally posted by turnbui
Does this mean you are having a problem??

If you are what Linux distro are you using?

Which NIC is connected to your Modem or router and what is its IP?
192.168.1.2
What NIC is connected to your other computer and what is its IP address?
192.168.3.1
If these are correct can you PING each computer from the other?

What is the IP of the second computer ??
192.168.3.???

type in the command

ifconfig

Are the IPs of eth0 and eth1 correct??
no problem connected

< the problem Internet Explorer cliant >
 
Old 09-27-2005, 03:37 PM   #12
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
ICS ??

I do not understand.

What specifically is the problem.
 
Old 09-27-2005, 03:51 PM   #13
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Re: ICS ??

Quote:
Originally posted by turnbui
I do not understand.

What specifically is the problem.
sorry

the problem found me only that the internet not found on th client comuter

why ??!!!

(( not found in the client browser ))

i connect with anther parts without any prblem , but not found the internet on this client computer .
 
Old 09-27-2005, 03:58 PM   #14
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
Please do NOT keep QUOTE the prev message - just say prev post from turnbui or whoever replied to you.


Now from the client computer can you

ping 192.168.3.1 and
ping 192.168.1.1 ?

What is the client computer? Linux [What distro Mandrake SUSe or ???] or Windows XP or Home
or what??
 
Old 09-27-2005, 04:01 PM   #15
fdawy
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Windows XP

ping ok
 
  


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
Internet Connection Sharing explorer Mandriva 1 03-17-2005 06:25 PM
Internet connection sharing mark_booze Linux - Newbie 22 01-02-2004 12:37 AM
internet connection sharing Sathe Linux - Newbie 4 12-05-2001 08:59 PM
internet connection sharing Danobri Linux - Networking 14 07-21-2001 11:50 PM
Internet Connection Sharing qsilver Linux - Networking 1 07-19-2001 01:31 AM

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

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