Custom Search

Ubuntu route del command guide

Ubuntu route del command is used to delete a route from Ubuntu routing table. Here is a route del step by step guide:


First, print current routing table with route command to check which route to be removed.


luzar@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.44.0 * 255.255.255.0 U 0 0 0 eth0
10.21.35.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.44.2 0.0.0.0 UG 100 0 0 eth0
luzar@ubuntu:~$

Next, let's delete the network route in blue. Below is an example of Ubuntu route del command used to remove a route from network:



luzar@ubuntu:~$ sudo route del -net 10.21.35.0 netmask 255.255.255.0
dev eth0

luzar@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
default mygateway1.ar7 0.0.0.0 UG 100 0 0 eth0luzar@ubuntu:~$

4 comments:

  1. who i can add Ip's on route table?
    please told me something about this soon ;)
    tanks

    ReplyDelete
  2. who i can add Ip's on route table?
    please told me something about this soon ;)
    tanks

    ReplyDelete
  3. in my computer i did like this way:
    sudo route add -net 193.136.205.104 netmask 255.255.255.0

    and...nothing :S
    help me

    ReplyDelete
  4. Perhaps this post has the answer that you are looking:

    http://linuxservertutorials.blogspot.com/2008/11/ubuntu-route-add-command-guide.html

    ReplyDelete

Please keep comment relevant and strictly no spam will be tolerated. Thank you.