LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Routing traffic command not working (https://www.linuxquestions.org/questions/linux-networking-3/routing-traffic-command-not-working-4175698566/)

pipobravo 08-01-2021 12:49 AM

Routing traffic command not working
 
Hello

I want to route traffic to 192.168.1.100, I have found the two commands below in an other post but non of them works, why ?

OS: Ubuntu 18.04.5

Code:

sudo route delete *
sudo route add 0.0.0.0 mask 0.0.0.0 192.168.1.100


Ser Olmy 08-01-2021 04:43 AM

The syntax of the command is incorrect. See man route.

Also, please post the exact error message(s) you're getting. Even when a command is syntactically correct, a number of other factors relating to your particular setup could cause it to fail.


All times are GMT -5. The time now is 12:48 PM.