Add route gateway -> Restart !! Lose it


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Add route gateway -> Restart !! Lose it
# 1  
Old 02-08-2002
Question Add route gateway -> Restart !! Lose it

Smilie

Hi:

I donīt know how to add route gateway and when restart the machine lose this route and put other.

In SCO ver 5.6 Enterprise write:

etc\route delete gateway
route add gateway 199.199.1.1.

so , netstat -rn to see if has change -> all ok

Restart -> !!! Has lost Default gateway!!!

Could you explain that?
# 2  
Old 02-08-2002
Found on http://support.caldera.com/caldera/search

Description:

I have manually run the 'route add default' command to add
a default route to the route table. This route works
successfully, but I also want this route to be added to
the route table automatically whenever the system is rebooted.



Solution:

The 'route add default' statement should be added in the
/etc/rc2.d directory. In SCO Open Server 3.0, the route
add statement was included in /etc/tcp or /etc/rc.d/8/userdef.
However, in SCO OpenServer 5.0, some of the startup scripts
are executed in parallel which cause some timing issues.
Therefore it is recommended that a new file named S99route be
created in /etc/rc2.d which includes the route add statement.

# cd /etc/rc2.d
# vi S99route

echo "Setting default route"
/etc/route add default <IP#> (where <IP#> is the 'gateway' IP
address)

# chown root S99route
# chgrp sys S99route
# chmod 744 S99route
thehoghunter
# 3  
Old 02-08-2002
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. Linux

Unable to add route with a specific gateway IP

Hi, This is the routing table on a RHEL 7 server : # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.132.81.145 0.0.0.0 UG 100 0 0 eno49 10.132.81.144 0.0.0.0 255.255.255.240 U 100 0 0 eno49... (4 Replies)
Discussion started by: anaigini45
4 Replies

3. Red Hat

Set new gateway for route to internet

Hi all, i have a rhel 6.2 with a default gateway. This server is an Intranet office with no internet access. DNS are already configured and it's possible to resolve my target. My goal is to link my application (apache forward) only to http://mytarget.yyy through a new gateway (That does... (0 Replies)
Discussion started by: kamose
0 Replies

4. AIX

Lose default gateway

hello iv 2 AIX P720 machine aix 6.1 6100-02-03-0909 both , hacmp ver 6.1.0.0 both machine connect to the same switch. after networking fault , one of the machines lost his default gateway !!! what can be the reason ? thx (4 Replies)
Discussion started by: ariec
4 Replies

5. AIX

IBM Server doesn't ping gateway unless you put a static route

Just want to know if someone has a clue about what could be happening here: I have an AIX box with four NICs in Ether channel connected to a Cisco Switch. When I try to ping the default gateway, sometimes it works, but sometimes it doesn't work unless it has a defined static route. Thanks... (1 Reply)
Discussion started by: witt
1 Replies

6. IP Networking

route add

I have built a new linux server, via a iLo connection. and I am trying to connect via my desktop to the server I have just built to the management port eth0 via putty. Please could some one advise how to connect to this server from my desktop. Do i need to create add a route access on the... (0 Replies)
Discussion started by: venhart
0 Replies

7. Solaris

Route Add

Hi, I am trying to add route command in Solaris 10 machine in the following fashion: route add -host 10.8.112.10 180.144.1.250 -interface lo0:1 this command fails with an error "lo0:1: bad value" I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Discussion started by: sudhir_shet
3 Replies

8. Shell Programming and Scripting

script to change default route when primary gateway dies

Hello all! We have two fedora routers one at each site. What we are trying to do worked using freesco but not on fedora, i'm not very good at scripting and need a little guidence. Basicly what we are trying to do is if the primary line dies, the router will change it's routes to go through our... (0 Replies)
Discussion started by: slacker
0 Replies

9. IP Networking

Do I need to add a route??

I have two networks connected by cisco routers. My first subnet is 192.168.0.0 and my second is 192.168.1.0. My SCO unix machine is on the 192.168.1.0 subnet with an IP of 192.168.1.231. It can see the entire .1.0 subnet but nothing on the other network. My cicso router(gateway) to the other... (6 Replies)
Discussion started by: agoodrich
6 Replies

10. AIX

route add

Hello , We have 3 rs/6000 server's running aix on our local network, so each time I try to ping one of these servers we get a "network is down" error , I've been instructed to use to route add command which is ... #route add server.ip router.ip after this the ping command works fine ,... (6 Replies)
Discussion started by: cubicle^dweller
6 Replies
Login or Register to Ask a Question