route after reboot


 
Thread Tools Search this Thread
Operating Systems Solaris route after reboot
# 8  
Old 12-16-2008
Quote:
Originally Posted by congngo
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
Or you can just add 2 ip's to the /etc/defaultrouter file ...
# 9  
Old 12-17-2008
Quote:
Originally Posted by Cass67
Or you can just add 2 ip's to the /etc/defaultrouter file ...
There can be only 1 default gateway.
# 10  
Old 12-17-2008
Quote:
Originally Posted by seg
There can be only 1 default gateway.
No, there can be one for each network ....
# 11  
Old 12-17-2008
Quote:
Originally Posted by Cass67
No, there can be one for each network ....
That's not what 'default' means. You can set gateways for each network yes, but there can only be 1 default gateway.
# 12  
Old 12-17-2008
Im not sure what you mean here ... you add multiple entries to the /etc/defaultrouter file and reboot, do a netstat -rn and you will see multiple default gateways ... You can also do a

route -f add default 10.1.0.1
route add default 10.2.0.1
route add default 10.3.0.1

etc .... to flush all curent routes and add 3 default gateways for the 3 interfaces on 3 subnets configured on my imaginary box...

This defines default gateways for each subnet that is configured on the box ...

root[bash]@imaginary# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
127.0.0.1 127.0.0.01 UG 1 4504755
10.1.0.0 10.1.0.5 U 1 100 bge0
10.2.0.0 10.2.0.5 U 1 200 bge1
10.3.0.0 10.3.0.5 U 1 300 bge2
default 10.1.0.1 UG 1 500
default 10.2.0.1 UG 1 501
default 10.3.0.1 UG 1 502


You can also add multiple default gateways in on the same subnet in the same way, they will be used in a round robin manner ...
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