The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to assign MAC address to N/W interface in solaris sunray SUN Solaris 4 07-02-2009 05:09 AM
EvE Online IGB - PHPBB Interface: PHPBB3 Interface Beta 1 iBot Software Releases - RSS News 0 10-15-2008 09:30 PM
how to detect ip address based location using PHP siftin-com Shell Programming and Scripting 2 07-29-2008 09:59 PM
selecting only few lines from many based on a common pattern damansingh Shell Programming and Scripting 2 05-28-2008 06:29 AM
Obtaining IP address from both my network interface citiz3n IP Networking 2 05-28-2008 02:57 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-23-2009
vijaypdp2006 vijaypdp2006 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 9
Smile Selecting Interface based on Destination IP address

Hi all,

How an interface is selected based on the destination ip address.


Thanks in advance........
  #2 (permalink)  
Old 07-23-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
this only works if the two interfaces are in the same subnet and the other is not.
  #3 (permalink)  
Old 07-23-2009
vijaypdp2006 vijaypdp2006 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 9
hai duke,

i don't think so, for example a host has two interfaces one is connected to lan and the other to internet, then how will select the right interface to reach u r destination.
  #4 (permalink)  
Old 07-23-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
for this the "defaultrouter" or "defaultgateway" setting is used... if you ping an address in your lan, the interface in your lan will be used. if you use a internet ip (and the defautroute points to your router) the other interface will be used...

have a look here:
http://en.wikipedia.org/wiki/Routing
  #5 (permalink)  
Old 07-23-2009
vijaypdp2006 vijaypdp2006 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 9
if u r default interface is selected as lan interface and if u want to send the packet to the internet(destination outside the lan) then which interface will be selected.(source address is 0.0.0.0 -----binding is not done)
  #6 (permalink)  
Old 07-23-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
Hello,

Per our forum rules, all users must write in English, use semi-formal or formal English language and style, and correct spelling errors.

The reason for this is that most software and operating systems are written in English and these are software related technical forums.

In addition, nearly 95% of all visitors to this site come here because they are referred by a search engine. In order for future searches on your post (with answers) to work well, you need to spell correctly!

So, as a benefit and courtesy to current and future knowledge seekers, please be careful with your language, check your spelling and correct your spelling errors. You might receive a forum infraction if you don't pay attention to this.

Also, do not write in cyberpunk or abbreviated chat style under any circumstances and do not use profanity. This is not a chat room, it is a formal knowledge base to serve you and everyone, of all ages and cultural backgrounds.

Thanks!

The UNIX and Linux Forums
Reply

Bookmarks

Tags
interface selection

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0