nixCraft Linux Forum

nixCraft

Linux 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? ...


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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-21-2006, 11:12 PM
Member
User
 
Join Date: Jun 2005
Posts: 78
Rep Power: 0
jerry
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
Sponsored Links
  #2 (permalink)  
Old 06-22-2006, 01:38 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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
Member
User
 
Join Date: Jun 2005
Posts: 78
Rep Power: 0
jerry
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
My distro: Monta Vista
Posts: 2
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
Reply

Bookmarks


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 On

Similar Threads

Thread Thread Starter Forum Replies Last Post
unix find out ram usage command charvi Solaris/OpenSolaris 4 04-10-2008 02:22 AM
Unix command to check memory usage sweta HP-UX 2 12-07-2007 10:07 AM
unix ls command raj Getting started tutorials 0 08-20-2007 10:04 PM
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 06:20 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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