LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-16-2010, 06:59 AM   #1
karthickk02
Member
 
Registered: Sep 2010
Posts: 46

Rep: Reputation: 0
Thumbs up How to shared my wired broadband internet connection to other system with 2 LAN card


I'm using RedHat Linux. In my friend system have Winxp. I have 2 LAN Cards. I'm using wired Broadband internet. So i want to share my internet connection to my friend system through another one LAN card. How can i do this
 
Old 09-16-2010, 08:33 AM   #2
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
So you have one LAN card (call it eth0) connected directly to your cable modem, and the other (eth1) to the internal LAN (or your friend's PC)?

Create a route for your internal LAN to make eth0 the default gateway (if it isn't already) using 192.168.0.1 as the internal facing IP of your cable modem:

Code:
route add default gw 192.168.0.1 eth0
enable routing, and point your friend's PC to your linux box's eth1 interface's IP to use as a gateway.

There's also a gui interface to set up all your networking parameters:

system-config-network
 
Old 09-16-2010, 08:48 AM   #3
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
btw:

Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
to enable routing for now.

add

Code:
FORWARD_IPV4=true
to /etc/sysconfig/network make it route when the OS boots.
 
  


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
how to connect to internet using wired LAN.....specify settings in connection manager psylar Linux - Newbie 4 05-20-2010 12:20 AM
How to share internet connection with Single LAN card shared over a switch!! anupamjamatia Linux - Networking 1 05-29-2008 07:28 AM
How to share internet connection with Single LAN card shared over a switch anupamjamatia Linux - Networking 1 05-29-2008 05:49 AM
LAN with static IP addresses and shared internet connection #2 Klas Linux - Networking 10 01-26-2004 10:43 AM
LAN with static IP addresses and shared internet connection Klas Mandriva 1 01-21-2004 07:14 PM

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

All times are GMT -5. The time now is 08:27 AM.

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