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

    add static route with ip command

    Hi, im a newbie and i have a question:

    On the Linux, using the ip command, how do you add a static route to subnet using next-hop

    best regards

  2. #2
    Linux Engineer
    Join Date
    Jan 2005
    Saint Paul, MN
    you use the "route" command:
    route add -net gw eth0
    of course your network device may be different than "eth0" (mine is br0).

  3. #3
    ip route add dev eth0

    ip route add default via

    Hope above examples help

  4. $spacer_open

Posting Permissions

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