nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Unix route command view

This is a discussion on Unix route command view within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; I want to show or manipulate the IP routing table under UNIX. How do i use route command? any idea? ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > UNIX operating systems > Solaris/OpenSolaris

Linux answers from nixCraft.


Solaris/OpenSolaris Discuss all about the SUN Solairs/OpenSolaris. You are free to talk about any issues related to Solaris administration, networking, services and other stuff, share information or ask doubts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2006, 11:12 PM
Senior Member
User
 
Join Date: Jun 2005
Posts: 137
Thanks: 21
Thanked 4 Times in 3 Posts
Rep Power: 5
jerry is on a distinguished road
Default Unix route command view

I want to show or manipulate the IP routing table under UNIX. How do i use route command? any idea?

thaks
Reply With Quote
  #2 (permalink)  
Old 06-22-2006, 01:38 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

To display route use command:
Code:
netstat -rn
To display route with netmask:
Code:
netstat -rvn
Verifying a route to a specfic network:
Code:
route -n get aaa.bbb.ccc.0
To add route:
Code:
route add DEST-IP GATEWAY-IP
Reply With Quote
  #3 (permalink)  
Old 06-24-2006, 04:28 PM
Senior Member
User
 
Join Date: Jun 2005
Posts: 137
Thanks: 21
Thanked 4 Times in 3 Posts
Rep Power: 5
jerry is on a distinguished road
Default

thank you very much. I was looking for netstat command to display route
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 01:24 PM
Junior Member
User
 
Join Date: Feb 2008
OS: Monta Vista
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Madhu is on a distinguished road
Default

Hi ,

I have a basic doubt reg the last command

To Add route:
route add DEST-IP GATEWAY-IP

Here, the eth interface is not given explicitly. But still the command works by automatically fetching the correct interface. Can you explain me the logic behind this... i'm looking for this for quiet sometime... was trying to have a look at the sourcecode of route command also, but dont know where i can get that in the net.

your help on this will be very helpful to me..

For more info see my thread : http://nixcraft.com/linux-software/1...-new-post.html

Thanks.
Madhu
Reply With Quote
  #5 (permalink)  
Old 04-16-2009, 05:40 PM
Junior Member
User
 
Join Date: Apr 2009
OS: Ubuntu Studio
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jeyB7even is on a distinguished road
Exclamation routing

Hello to all.
I have a problem:
i have 2 networks and 1 server connected to both of them. i need to set the routing on server to allow the computers from one of the networks to ping (to see) the other computers from the another network.

Any idea?
Thanks
Reply With Quote
Reply

Tags
networking , route , static routes , unix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Unix command to check memory usage sweta HP-UX 3 02-24-2010 10:54 PM
unix ls command raj Getting started tutorials 2 08-20-2009 03:44 PM
unix find out ram usage command charvi Solaris/OpenSolaris 4 04-10-2008 02:22 AM
Unix sending file attachment command sweta Solaris/OpenSolaris 1 08-10-2007 08:19 PM
UNIX and Linux command for DNS chiku Getting started tutorials 1 04-29-2007 04:36 PM


All times are GMT +5.5. The time now is 08:48 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38