LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-14-2007, 09:20 PM   #1
sierhuis
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
ICS on LINUX


I do not need any specific help yet just to know if it is possible to
Configuring network interfaces in linux to have one network interfaces
say my wifi connection on my laptop to get an ip address from the dhcp server running on my router and then with or with out a crossover cable configure a second network interfaces the ethernet jack on the laptop to plug in to another pc and give it an ip of sorts so it can connect to the wifi network through the laptop they have this for windows it is called ICS but I am having no luck finding the information on the subject for linux, I have not actually been looking just but from what I remember a while back I could not find out it there is a way to do it

yes or no awnser is fine i just wanna know if it can be done

Last edited by sierhuis; 03-14-2007 at 10:10 PM.
 
Old 03-15-2007, 12:41 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, it can be done.
 
Old 03-15-2007, 09:01 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234


In GNU/Linux I believe it's just called "routing" & is so commonplace it doesn't need a fancy FUD name. There is a chance that M$ ICS is actually bridging, & while that is not so commonplace, it still doesn't need a sheeple oriented name.

I have never gotten ICS to work, but then it wasn't a high priority -- I have always run the boxen on my LAN to the 'Net through a router/firewall with wire. I don't think I have ever run one through another on the way to the main router.

If ICS passes DHCP requests through to the main router, then (I believe) that is bridging. The key Q is whether the both the ICS providing PC & the 1 connected to it wind up on the same sub-net.


I assume:
  1. This is what you're trying to do:
    Router ~ ~ ~ ~ ~ Laptop===PC
    ('~' = radio, '=' = cable)

  2. (The router NATs & therefore also functions as your firewall.)

  3. The PC is located where it's not convenient to run an ethernet cable to the Router.

Because you will engage 2 interfaces on the Laptop, it will also acting as a router xor a bridge; albeit between 2 very simple networks. From the point of view of network topology, it would be much simpler to wire P directly to R, but (3) makes that impractical.

If you route, the one thing that I know is crucial in your situation is to turn on port forwarding on L:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
This code must be executed at each boot & should be put in the appropriate init script. This advice may or may not apply to bridging.

Here is a link to help you w/ bridging:
www. google. com/linux? q =linux+%22bridge+mode%22
I also ran an LQ search on '"bridge mode"', you might want to do that too. One of the most promising threads I saw was: www. linuxquestions. org/questions/showthread.php ?t=467967&highlight=bridge+mode.
While the thread itself turned out to be be not really on point to your Q, the 5 "Similar Threads" list at the bottom had some promising looking leads.


Post back w/ what you do & how it works out, it's an interesting problem.


Last edited by archtoad6; 03-15-2007 at 09:27 AM.
 
Old 03-15-2007, 09:21 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
This duplicates: http://www.linuxquestions.org/questi...hreadid=537591

Please don't double post -- read the rules
 
Old 03-15-2007, 02:02 PM   #5
mr-roboto
Member
 
Registered: Aug 2006
Location: NYC in the US of A
Distribution: Slax, FreeBSD, PCLinuxOS, Ubuntu, TurnkeyLinux
Posts: 51

Rep: Reputation: 16
Quote:
Originally Posted by sierhuis

yes or no awnser is fine i just wanna know if it can be done

This is a router. You only need a DHCP server daemon and the correct firewall (IPTABLES) script, to do NATting. I've done it w/ two different distros, as this is the exact type of Internet connection I use on a daily basis....Jet
 
Old 03-17-2007, 01:13 AM   #6
sierhuis
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
ok I found a tutorial on iptables

firestarter is what I need to use is does exactly what I want but I think I need a cross over cable

MR roboto do you use a cross over cable

Last edited by sierhuis; 03-17-2007 at 04:13 PM.
 
Old 03-19-2007, 07:15 PM   #7
sierhuis
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
I think that reading a novel on routing it a waste for the simple thing I want to do, I just decided to buy a second wificard
 
  


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
ICS with linux help biojayc Linux - Networking 1 06-25-2005 03:42 AM
Help with Linux ICS ??? hongman Linux - Networking 2 03-03-2005 07:55 AM
Ics With Linux? Frelov Linux - Networking 7 09-09-2003 09:05 PM
XP ICS and Linux Sakayume Linux - Networking 1 09-23-2002 05:00 PM
ICS - XP box has ICS enabled, Linux box to connect, how? Thymox Linux - Networking 16 12-11-2001 09:18 AM

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

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