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 > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Route add probleme waterboy IP Networking 5 08-17-2007 12:20 PM
Add Route on HP-UX v10.x, help. efrenba HP-UX 4 04-06-2007 09:26 AM
SOLARIS does not route bong02 SUN Solaris 4 06-21-2006 04:58 AM
Do I need to add a route?? agoodrich IP Networking 6 07-06-2005 12:15 AM
route add cubicle^dweller AIX 6 10-05-2003 03:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-17-2008
sudhir_shet sudhir_shet is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 4
Question Route Add

Hi,
I am trying to add route command in Solaris 10 machine in the following fashion:

route add -host 10.8.112.10 180.144.1.250 -interface lo0:1

this command fails with an error "lo0:1: bad value"

I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the interface lo0:1. Could you help and guide me how this can be done?

The output of the "ifconfig -a" command is shown below:

root@hssce1> ifconfig -a
lo0: flags=20010008c9<UP,LOOPBACK,RUNNING,NOARP,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=20010088c9<UP,LOOPBACK,RUNNING,NOARP,MULTICAST,PRIVATE,IPv4,VIRTUAL> mtu 8232 index 1
inet 180.144.47.250 netmask ffffffff
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.10.10.111 netmask ffffff00 broadcast 10.10.10.255
ether 0:3:ba:2c:a5:ae
qfe0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
inet 180.144.253.217 netmask ffff0000 broadcast 180.144.255.255
groupname core
ether 0:3:ba:36:dc:60
qfe0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 180.144.121.1 netmask ffff0000 broadcast 180.144.255.255
qfe0:2: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu 1500 index 3
inet 180.144.253.220 netmask ffff0000 broadcast 180.144.255.255
qfe3: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 4
inet 180.144.253.218 netmask ffff0000 broadcast 180.144.255.255
groupname core
ether 0:3:ba:36:dc:63
ge0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 5
inet 172.16.1.1 netmask ffffff80 broadcast 172.16.1.127
ether 0:3:ba:2c:a5:af
ce0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 6
inet 172.16.0.129 netmask ffffff80 broadcast 172.16.0.255
ether 0:3:ba:3a:8:17
clprivnet0: flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4> mtu 1500 index 7
inet 172.16.193.1 netmask ffffff00 broadcast 172.16.193.255
ether 0:0:0:0:0:1


Thanks in advance..
  #2 (permalink)  
Old 01-17-2008
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
lo0 is your loopback, not a NIC. You can't route out of that.
  #3 (permalink)  
Old 01-19-2008
aliban83 aliban83 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 17
check the baner to find the interface.

check the baner to find the interface. after that you can use the interface on the command.
  #4 (permalink)  
Old 04-24-2008
s_sapronov s_sapronov is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 1
route add

You must use -ifp and forget about -interface
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 01:07 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