LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-26-2010, 07:11 AM   #1
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Rep: Reputation: 15
Basic use case for discussion - kindly provide your inputs


While disucssing with my friend on basic internals on linux, we came across a scenario where:-

1. The phone(Linux) is connected to the PC(windows) , the phone is getting packets from Network and has to act like an router to redirect the packets to PC.

so its like:-

Network - - Sending packets to Phone(running on android) - -> Phone is connected to PC (usb connection)


The network will assign an IP adress to the phone for the continuos packet transfer, and there will be one IP adress of phone for the USB service.

so we can say instead of giving 1 IP address, we will be giving the IP address to the service itself.

Now what should be the best way for Phone to act like an router.

End goal is the packets which are coming from Network should reach PC.


(I assume there will be dedicated ports for the transfer)


YOur comments plz....
 
Old 07-26-2010, 11:41 PM   #2
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Anyone from Linux networking group? - - your comments!!
 
Old 07-27-2010, 10:02 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
DO NOT BUMP YOUR THREADS - this is in poor taste and against the rules.

Your "Basic Use Case" does not make a lot of sense and you need to work on writing clearly.

The easiest way to solve your problem is to use your phone as a modem (via something like Bluetooth) or alternately; create a private VLAN between your phone and PC. You then setup your phone to share its internet connection with your PC and that should work. This will obviously be very dependent on the phone itself - I've implemented on Blackberry - so I can't tell you if Android will work.
 
Old 07-27-2010, 10:35 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,077

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by sahil.jammu View Post
While disucssing with my friend on basic internals on linux, we came across a scenario where:-

1. The phone(Linux) is connected to the PC(windows) , the phone is getting packets from Network and has to act like an router to redirect the packets to PC.

so its like:-
Network - - Sending packets to Phone(running on android) - -> Phone is connected to PC (usb connection) The network will assign an IP adress to the phone for the continuos packet transfer, and there will be one IP adress of phone for the USB service.

so we can say instead of giving 1 IP address, we will be giving the IP address to the service itself.

Now what should be the best way for Phone to act like an router.
End goal is the packets which are coming from Network should reach PC.

(I assume there will be dedicated ports for the transfer)
YOur comments plz....
I agree with alli_yas...bumping your own thread (and cross-posting/duplicating), is pretty rude. Also, spell out your words.

And you don't give an IP address to a service, ever. You assign IP's to DEVICES. And you need to read up on what routing is, and how it works. If you want to route packets between two devices, they BOTH need addresses, with gateways, etc. If you have one address, that's very much like having one walkie-talkie....no one is on the other end to receive what you're sending.

You COULD write a custom module to use the phone as an IP device via USB serial...but as alli_yas said, you're far better off using it as a dial-up device, and using one of the built-in DUN tools (like wvdialconf), to establish a connection.
 
  


Reply

Tags
linux, port forwarding, route


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: Propose A Compelling Linux Business Case J_K9 LQ Articles Discussion 12 10-11-2010 10:34 PM
DISCUSSION: Setting up a PDF printer in CUPS (in my case in Slackware) Tinkster LinuxAnswers Discussion 7 11-18-2008 03:31 AM
Kindly provide a project idea lali.p Programming 17 12-23-2007 12:52 PM
DISCUSSION: A Sad Case of Divorce (not): My Very First Korean Konundrum Andrew Holmes LQ Articles Discussion 4 12-04-2007 04:44 PM
How to provide Keymaps support in a basic linux system in a simple way praveenya Linux - Software 0 06-05-2007 06:10 AM


All times are GMT -5. The time now is 08:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration