How Do I Config Static Route Permanent On Fedora

Discussion in 'Linux Networking' started by mpanlop, Apr 15, 2004.

  1. mpanlop

    mpanlop Guest

    I want to add routing path permanent on linux but when linux restart
    or service network restarted my routing path was deleted. How do I
    config it permanent everytime
    service network was restarted. please advise me which files I can add
    command to setup my routing path.
    mpanlop, Apr 15, 2004
    1. Advertisements

  2. create a /etc/sysconfig/network-scripts/route-eth0
    with the following content:


    This will add the static route for host over gw

    (if the interface is any other than eth0, ppp0 for example, the file
    should be named /etc/..../route-ppp0)
    David Lesaffre, Apr 15, 2004
    1. Advertisements

  3. mpanlop

    vom Guest

    FYI, it also supports this format:

    # <prefix/bits> via <gateway> via

    vom, Apr 15, 2004
  4. Indeed, it does.
    And it looks a lot cleaner too.
    David Lesaffre, Apr 15, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.