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
Multiple LAN Interfaces Docboyeee AIX 2 12-16-2006 12:23 PM
DHCPD, Multiple interfaces, Single Subnet vertigo23 IP Networking 0 10-26-2005 06:42 PM
how to add default routes in SCO tayyabq8 SCO 1 08-31-2005 11:35 AM
Multiple Default routes rramanuj AIX 2 06-27-2005 08:35 AM
multiple interfaces with apache? cerberusofhnsg UNIX for Dummies Questions & Answers 2 08-09-2003 12:32 AM

Closed Thread
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 06-14-2001
diemos diemos is offline
Registered User
  
 

Join Date: Jun 2001
Location: S.C
Posts: 2
Multiple Interfaces and Routes

I have a Unix box with 2 network interfaces on the same IP subnet and would like to add a host route via a specific interface. Any assistance would be greatly appreciated.
  #2 (permalink)  
Old 06-14-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Check the man page for 'route' as the syntax varies between different versions of Unix. On Linux, for example, you would do something like:

route add -host <I>X.X.X.X</I> netmask <I>X.X.X.X</I> gw <I>X.X.X.X</I> dev <I>interface</I>


replace the X's as apparopriate with your target, netmask, and gateway values.
  #3 (permalink)  
Old 06-14-2001
diemos diemos is offline
Registered User
  
 

Join Date: Jun 2001
Location: S.C
Posts: 2
I'm running SunOs 5.8 and have read through the 'man' pages and couldn't find any reference to the interface specific options. Thanks for your assistance.
  #4 (permalink)  
Old 06-22-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,654
Most route commands have the interface as one of the last options. This is because you can specify routes based on the interface. Can you do a man on your route command and post the results?
Sponsored Links
Closed Thread

Bookmarks

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 12:13 PM.


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