First open the terminal, and then enter: route-e in the terminal to display the current route table of the host. at this time, if you want to add a destination network that is 10.0.2.0/24, the next hop IP address (Gateway) for Route table entry 10.0.1.1, you can enter: routeadd-net10.0.2.0netmask255.255.255.0gw10.0.1.1,
First, open the terminal and enter route-e in the terminal to display the current route table of the host.
If you want to add a route table entry whose destination network is 10.0.2.0/24 and whose next hop IP address (Gateway) is 10.0.1.1, enter: route add-net 10.0.2.0 netmask limit 255.0 gw 10.0.1.1. press enter to add route table entries. after that, you can enter route-e to check whether the route entry is successfully added.
If you want to delete the route table entry you just added, enter route del-net 10.0.2.0 netmask route 255.255.0 in the terminal, press enter, and enter route-e to check whether the deletion is successful.