filmov
tv
How to Add and delete routes in centOS 7

Показать описание
Please find the below commands for adding and deleting the routes
ADD:
route add -net destination ip address netmask destination network mask gw local machine gateway
Example: route add -net 192.168.2.30 netmask 255.255.255.255 gw 192.168.1.1
DELETE:
route delete -net destination ip address netmask destination network mask gw local machine gateway
Example: route delete -net 192.168.2.30 netmask 255.255.255.255 gw 192.168.1.1
Checking routes:
Command: route -n
ADD:
route add -net destination ip address netmask destination network mask gw local machine gateway
Example: route add -net 192.168.2.30 netmask 255.255.255.255 gw 192.168.1.1
DELETE:
route delete -net destination ip address netmask destination network mask gw local machine gateway
Example: route delete -net 192.168.2.30 netmask 255.255.255.255 gw 192.168.1.1
Checking routes:
Command: route -n