route after reboot


 
Thread Tools Search this Thread
Operating Systems Solaris route after reboot
# 1  
Old 12-02-2008
route after reboot

Hello,

I just added a route in solaris 10 system for host to use gateway.

Quote:
route add -host 192.168.100.70 192.168.100.5
I see that new route in the netstat command
Quote:
192.168.100.70 192.168.100.5 UGH 1 2
Will this stay after reboot or I have to make any provision for this? Please let me know

Thanks
# 2  
Old 12-02-2008
It wont stay that way you will have to add it to an onboot script. I dont know solaris so I cant help where to put it.
# 3  
Old 12-02-2008
create a file /etc/defaultrouter and append the ip in here.
# 4  
Old 12-02-2008
Quote:
Originally Posted by congngo
create a file /etc/defaultrouter and append the ip in here.
Thanks for the reply,

I already have the file on solaris10 machine with a default gateway IP in it. Actually machine for which route is being added is on same network as solaris10 machine but I want to route it through gateway, so could you please tell me what IPs should go in /etc/defaultrouter? 192.168.100.5 is already in file
# 5  
Old 12-02-2008
I'm not sure what you mean. Router and gateway mean the same thing.
You already have one default route. Do you need to access another network. If so do this
modify the /etc/rc0

route add 192.168.1.0 192.168.1.1
# 6  
Old 12-02-2008
# 7  
Old 12-02-2008
There you go , this link is very useful, there is a specific file meant for this purpose and command on solaris 10 to make changes persistent.

Well sometimes (in same network) machines also need to be routed through the gateway only so that incoming and outgoing routes remain same for that machine for specific services. that's the kind of setup I have here.

Thanks Seg and others.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Route get output

I'm having some trouble understanding the output of the route command. Specifically, the "route to" and "destination" fields. I'm guessing "route to: <address>" means when the queried host receives packets, it sends them to <address> by default, and "destination: <address>" means <address> is the... (2 Replies)
Discussion started by: Ultrix
2 Replies

2. Solaris

Delete route so it does not persist after reboot

Solaris 10 I am trying to delete a route using the command: route -p delete 192.0.0.0 192.1.3.254 The route gets delete but for some reason the route pops back up in the routing table after reboot. I also deleted the /etc/inet/static_routes file and the route still persists after reboot.... (6 Replies)
Discussion started by: jastanle84
6 Replies

3. IP Networking

Route to nowhere?

Hi, HP-UX 11iV2, but it's probably universal (tcp/ip) I have a production and a test server. The test server gets the application updated nightly from the production server software. The application accesses a set of process servers on a separate subnet (192.163.22.30,31,32), but reachable... (1 Reply)
Discussion started by: monroedoug
1 Replies

4. UNIX for Dummies Questions & Answers

Static Route

Hi, Request you to please tell me the command or the process to add the static route in redhat linux. Thanks in Advance. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

5. Solaris

Adding new Route

Hi, I am trying to add route command in SunOS machine but it is not successful : route add -host 10.31.251.47 -gateway 10.31.251.0 -interface ce0 this command fails with an error "lo0:1: bad value" I want to add a route to 10.31.251.47 that picks 10.31.251.0 as the gateway via the... (1 Reply)
Discussion started by: jaygamini
1 Replies

6. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

7. Solaris

SOLARIS does not route

hi, i installed solaris 9 on an SPARC server with two network interfaces. behind each interface is a small lan. i can reach every computer in every lan using one of the other interface when i am logged in the solaris. but if a computer from one lan has to connect to a computer on the other lan,... (4 Replies)
Discussion started by: bong02
4 Replies

8. UNIX for Dummies Questions & Answers

Disappearing route

I have a route that disappears when the server is rebooted. to get the route back I do: route add 65.x.x.x 10.0.x.x I go to cd /etc/inet vi config and the route is in place Anybody might know what is happening? (4 Replies)
Discussion started by: jrmontg
4 Replies

9. IP Networking

trace route ip

hi everybody , i have a solaris 5.6 box and i want to trace the route on an ip i treid traceroute but soalris 5.6 does not support it ... is there a command that can be used equivelent to traceroute ? thanks for your help (2 Replies)
Discussion started by: ppass
2 Replies

10. UNIX for Dummies Questions & Answers

no route to host

I not able to ping outside the internet. i am able to ping my 192. ip address. when i try to ping a 68. ip address i get no route to host. what should i do to correct this issue. I have sco openserver 5.05 (6 Replies)
Discussion started by: scoman2
6 Replies
Login or Register to Ask a Question