how do i make a route entry permanent in the routing table on solaris 8?


 
Thread Tools Search this Thread
Operating Systems Solaris how do i make a route entry permanent in the routing table on solaris 8?
# 1  
Old 03-29-2010
how do i make a route entry permanent in the routing table on solaris 8?

how do I make sure that the entry in the routing table on Solaris 8 stay permanent after rebooting the server.
For example
route add 172.20.1.60 -netmask 255.255.255.0 172.20.255.253
Each time the server reboots the entry disappears when using the command netstat -nr
# 2  
Old 03-29-2010
Add the route in your init script, create a init script for the routes
eg:
vi /etc/rc2.d/S76static-routes
chmod 755 /etc/rc2.d/S76static-routes

Reboot and check the routes are added or not
# 3  
Old 03-29-2010
Add the route in your init script, create a init script for the routes
eg:
vi /etc/rc2.d/S76static-routes
chmod 755 /etc/rc2.d/S76static-routes

Reboot and check the routes are added or not [U]


which entry i should add in the file.the below command should i add or should i create a emp.ty file.

suppose if i create a empty file how it will recognized the 172.20.1.60 .

route add 172.20.1.60 -netmask 255.255.255.0 172.20.255.253
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

iptables / ip route packet routing with multiple gateways

Hi all. Linux noob here. I was hoping someone could help me with configuring some routing rules on my router, an Asus AC68. The router is connected to two gateways, wan0_gateway and wan1_gateway. I have rules set up in the router gui that will push all traffic from every IP other than my own... (0 Replies)
Discussion started by: Bishi
0 Replies

2. Solaris

how to make IP address permanent.

Greetings, I am using solaris10 x86 OS. I configured IP address using the command. >ifconfig e1000g0 plumb >ifconfig e1000g0 200.200.0.1 up How to make this configured IP as permanent.. to solaris os. (2 Replies)
Discussion started by: bhargav90
2 Replies

3. UNIX for Advanced & Expert Users

Solaris 10 routing table issues

Hello Hope someone can help with this problem. We are running Solaris 10 with a current kernel patch of 142900-09. We appear to be getting a serious issue with the routing table as shown below: Output from netstat -rnv Destination ....Mask ............Gateway ........Device... (2 Replies)
Discussion started by: gregsih
2 Replies

4. Solaris

Solaris zone routing table

Does anyone know how to delete a an ip off the routing table ? i tried route delete 10.0.0.0 and gateway but it still comes back. i have 2 zones sharing one interface. help... (4 Replies)
Discussion started by: 23patrick
4 Replies

5. IP Networking

Adding an extra route to the ip routing table

In my college dorm, there is a file sharing network in the entire building. Problem is, there is only a manual for windows with the settings on how to connect... :mad: They say that you have to give the following command in cmd in windows: route add 172.16.71.0 mask 255.255.255.0... (2 Replies)
Discussion started by: Japie89
2 Replies

6. Solaris

permanent route

How do I make a route permanent, other than default route on a Solaris server? (1 Reply)
Discussion started by: jontom
1 Replies

7. AIX

Permanent Default Route

Hi, We are running AIX 5.2. Our default gateway used to be IP Address A. Our new default gateway is IP Address B. A netstat revealed that our default route was IP address A. We manually added default route with IP address B and removed the default route with IP address A. However,... (3 Replies)
Discussion started by: DenD
3 Replies

8. IP Networking

unnecessary route entry?

Good day :) I recently checked some stuff on my gateway and discovered what I believe is an unneeded route entry. # route -n Kernel IP routing table Destination Gateway Genmask ... Iface 287.265.45.0 0.0.0.0 255.255.255.0 ... eth0 192.168.0.0 0.0.0.0 ... (3 Replies)
Discussion started by: J.P
3 Replies

9. IP Networking

Permanent ip routing

I am trying to add a permanent route on my server, but whenever i reboot it dissapears. Please does anyone know the correct command to use. route add XXX.XXX.XXX.XXX DDD.DDD.DDD.DDD the above is what i have done. ednut:) using IRIX SGI software. (2 Replies)
Discussion started by: Ednut
2 Replies
Login or Register to Ask a Question