Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route 1

Status
Not open for further replies.

mauromarchi

Technical User
Mar 12, 2001
2
BR
HI

I need to see my routes that are defined in SCO-UNIX, similar the command "route print" in windows. Does anybody
knows the command syntax?

tanks
Marc
 


netstat -nr will give you what you want

netstat
-r Show the routing tables.
-n Show network addresses as numbers



-Danny
techie@snoboarder.net






 
On my machine I get the following:
netstat -nr
Routing tables
Destination Gateway Flags Refs Use Interface
default 10.6.0.1 UGS 0 0 net0
10.2/16 10.6.0.7 UG 7 2135 net0
10.6/16 10.6.0.6 UC 1 0 net0
10.6.0.6 127.0.0.1 UGHS 4 33897 lo0
10.127.199.2 10.6.0.7 UGH 0 0 net0
127.0.0.1 127.0.0.1 UH 2 718441 lo0
224/8 10.6.0.6 UGS 1 4 net0
What does the 10.2/16 mean, and how can I change the 10.6.0.7 in that line to 10.6.0.1 ?
 
It means that it's a 16 bit netmask: 255.255.0.0

See faq58-1436 for how to change your default route or set other routes. What you need to do is just NOT set a route to 10.2
Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top