Find the answer to your Linux question:
Results 1 to 2 of 2
Hi! 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 Code: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    1

    I'm not able to add new routes


    Hi!
    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
    Code:
    #route add -net 127.0.0.0
    SIOCADDRT: Invalid argument

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

    What could be wrong?

    Tanks.

  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Location
    Barrie, Ontario
    Posts
    219
    Look at the man page for route -- your syntax isn't correct.
    Code:
    route add default gw 0.0.0.0 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
  •