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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

route add help

Status
Not open for further replies.

nitinkgoud

IS-IT--Management
Jun 28, 2006
87
US
Hi Guys,
This is a weird one, i was sent this command by another team

"For example a server with a BDT address of 10.244.101.11 would have a route add 10.244.64.0 255.255.192.0 10.244.101.1"

Now can you please translate this for me in solaris?

 
Do you want to know how to enter it in Solaris or what it means?

Basically it is everything on the 10.244.64.0 network and it specifies the netmask with 255.255.192.0 use router address 10.244.101.1. On Solaris you can probably just do this:

Code:
echo  "10.244.64.0 255.255.192.0" >> /etc/netmasks
route add net 10.244.64.0 10.244.101.1
 
#route add net 10.244.64.0 10.244.101.1
add net 10.244.64.0: gateway 10.244.101.1: Network is unreachable

I think that the network might be unreachable.

What do you think?
 
No.Actually i got the command from my senoir after lot of proding.

#route add -net 10.244.64.0 10.244.xxx.1 255.255.192.0 1

xxx takes relative values

Now take a look bellow at the op of nersta -rn before and after this command.
_____________________BEFORE____________________________

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.206.4.0 10.206.4.13 U 1 229917 bge0
10.206.6.0 10.206.6.17 U 1 17 ce0
10.244.116.0 10.244.116.12 U 1 2 bge3
224.0.0.0 10.206.4.13 U 1 0 bge0
default 10.206.4.1 UG 117369877
127.0.0.1 127.0.0.1 UH 13 784645 lo0

********************************************************************** AFTER
**********************************************************************
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.206.4.0 10.206.4.13 U 1 229920 bge0
10.206.6.0 10.206.6.17 U 1 17 ce0
10.244.116.0 10.244.116.12 U 1 3 bge3
10.244.64.0 10.244.116.1 UG 1 3
224.0.0.0 10.206.4.13 U 1 0 bge0
default 10.206.4.1 UG 117370369
127.0.0.1 127.0.0.1 UH 13 784647 lo0


Can you please tell me what the command syntax really means ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top