How do I add a network route permanently using "route add" command in linux.



Hi,

I have added the following route on a RHEL AS4 server. How do I make this
route a permanent one. In other words, how do I add a route that persists
after reboot.

route add -net 0.0.0.0 netmask 0.0.0.0 gw 172.22.40.1 dev eth0

Thanks & Regards,
-GnanaShekar-
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Railroad vs Railway?
    ... race route. ... In my limited understanding, "way" is a prescribed but not neccessarily ... built route whereas a "road" is a formed route. ... The 'permanent' would appear to refer to 'way' rather than to the formed ...
    (rec.models.railroad)
  • Re: Thinking about a GPS
    ... I set waypoints for just about everywhere I go that I'm likely to ever ... The other feature I want someday is to be able to create permanent ... changes to the maps based on the actual route driven. ... I drive on a new road (not on the map), I'd like to be able to tell it ...
    (rec.outdoors.rv-travel)
  • Re: going from dhcp to assigned
    ... > failure. ... Neither seemed to help enter a permanent ip address, mask, ... > route was to enter route add default to same file. ...
    (comp.sys.sun.admin)
  • Re: /etc/sysconfig/static-routes file missing
    ... >If I add route with route add command that is not permanent. ... It also has a note re Redhat config which seems to be in ...
    (comp.os.linux.networking)
  • Route Command in Pocket PC
    ... I would like to know how can I use the "Route Add" command and it can be ... added permanent? ... sudden disappear after the pocket pc go to the sleep mode. ...
    (microsoft.public.windowsce.embedded)