Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Gateway easily?< Next Oldest | Next Newest >
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Nov. 04 2007,20:35 QUOTE

I have a computer where's one wlan and and one lan card. And also a computer where's only one lan card.

I get internet connection only via wlan card.

I need to get two ips for my wlan card. One for that computer and another ip for second computer that is connected to that lan card.

I don't want to have local ip for that another computer that has only a lan card.

So basically:
internet --> modem --> wlan0 --> eth0 --> another computer's eth0

Is there any way to do this with only few commands?
I've found only howtos that are at least five pages long.
If it is that complicated is there a simple script that could to that?

Note: I'm not trying to do this with DSL. So I have all the latest Linux tools installed. And I can compile more if needed.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Nov. 05 2007,15:55 QUOTE

Hey, why would you want another ip through the wlan for the other comp?

I think there are two easy solutions:
- Add the ip, with either the old wlan0:0 & wlan0:1 thingy, or with ip's label command
- Bridge the eth0 to the wlan, so they appear to be on the same local network, with the other comp having it's own ip


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Nov. 05 2007,21:05 QUOTE

This is what I want.
Basically I need to make computer0's eth0 to act like the modem would.

I don't know much of those commands so I would like to have some kind of examples.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Nov. 06 2007,16:56 QUOTE

Again I wonder why you want this.. I can only think of one case where you want an own ip to the other comp = when the other comp is your server.. From your pic it would only seem you want to get to internet through the wlan.

Which one do you mean?


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Nov. 06 2007,17:33 QUOTE

I want to give an internet connection to my other computer (computer1) that has no wlan card.
Basically I need to set up my computer (computer0) as a wlan2lan adapter.
I don't want to set up a lenghty wire over three rooms to get connection to that old computer (computer1).
Anyway it's one of my projects. After it's finished I'll move it close to modem.
But now I need to work in a different room and I need an internet connection to it.

And best would be if that computer (computer1) could have own ip without NAT.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
19 replies since Nov. 04 2007,20:35 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: Gateway easily?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code