Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    I'm not able to add new routes

    I have next problem.
    When I try to add a new route or delete a route to my Linux Server 2.4.21-20.EL i686 i386 GNU/Linux
    I get next error
    #route add -net
    SIOCADDRT: Invalid argument

    [root@webdev root]# route del -net
    SIOCDELRT: Invalid argument

    What could be wrong?


  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Barrie, Ontario
    Look at the man page for route -- your syntax isn't correct.
    route add default gw dev eth0
    is the proper syntax to add a default gateway for your first NIC (as an example).
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts