LinuxQuestions.org
Visit Jeremy's Blog.
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 06-26-2015, 01:50 PM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post How Routing happening?


Hello.
How routing happening a network? In a network with an Internet gateway and lot of computers, How an external computer find me for connecting?
For example, my Network with 200 computers just have an static Internet IP and when I share my IP with other person in the world and he ssh to me, How him ssh understand that must connect to my Linux box and not other Linux PC in the network?

Thank you.
 
Old 06-26-2015, 02:29 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,890
Blog Entries: 13

Rep: Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934
Quote:
Originally Posted by hack3rcon View Post
How routing happening a network? In a network with an Internet gateway and lot of computers, How an external computer find me for connecting?
For example, my Network with 200 computers just have an static Internet IP and when I share my IP with other person in the world and he ssh to me, How him ssh understand that must connect to my Linux box and not other Linux PC in the network?
Talk to your network administrator and ask them if your system can be given a publicly visible address. If it cannot, which would purely be a matter of their policy, then it cannot. Otherwise, they'll configure it and advise you as to what the system host name would appear as to an outside system.

A full explanation of routing is a lengthy explanation which I'm not going to cover and I don't suggest someone else do that either. You'll likely have a lengthy list of questions. Either you have a network administrator or you don't. If you're configuring this on your own, then lookup the instructions for your particular router.
 
Old 06-26-2015, 02:34 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Internet IPs have to be unique. Another person in the world finds you because the IP range is assigned to whoever provides you internet service (e.g. your ISP for home users and small commercial users, your carrier for larger commercial purposes). They in turn assign you an IP (or a range of IPs) from those they own.

Internal IPs can be duplicated outside your network by others (e.g. 10.x.x.x and/or 192.x.x.x are used by most organizations internally (or even your home router). It might be exactly the same internal IP as hundreds of others use on their internal network but it isn't a problem because these IPs are not allocated on the internet.

On occasion you need someone in the world to reach something that has an "internal" IP but they reach it on an "internet" IP and that is using done by doing something called address translation (e.g. NAT) in whatever device you have on the internet (router) that tells any traffic reaching it on the "internet" IP to go to your "internal" IP.

Additionally DNS is used for associating names with IPs on the internet and that is a whole subject itself.

This is a fairly complicated subject and not one you're going to really get by asking a global question such as you did. You can look for networking tutorials online and start working your way through them. Alternatively you usually don't need to know the entire structure of the internet to solve a specific question. If you have a specific issue you're trying to troubleshoot asking a question directly about that issue would likely get you a better answer.
 
1 members found this post helpful.
Old 06-26-2015, 07:40 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,455
Blog Entries: 28

Rep: Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175
If you want to learn how routing works, this is the best tutorial I've seen. Don't be fooled by the Web 1.0 appearance; it's clearly written and easy to understand. When I first read it, I was completely new to the world of networking and it helped me immensely.

When I first stumbled over it, it was on an *.edu site (University of Colorado in Boulder, Colorado, USA, I think). My guess is that the author retired or changed professions and just ported the existing tutorial to a personal site.
 
2 members found this post helpful.
  


Reply


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
[SOLVED] Routing boot time fsck not happening - Ubuntu Server 12.04 taylorkh Linux - Server 2 01-31-2014 01:38 PM
VPN not routing through server but still local routing pptpd narnie Linux - Server 1 01-21-2014 06:03 PM
Application specific routing (not routing p2p over vpn) tkalfaoglu Linux - Networking 1 06-15-2013 06:33 AM
Mutiple IPs and network cards routing (source policy routing?) shogun1234 Linux - Networking 1 01-17-2013 12:09 AM
Dynamic routing isn't done; static routing works for about 2 seconds for wireless gregorian Linux - Networking 7 02-19-2010 06:43 AM

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

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