how to delete a static route
Description
To delete a static route:
# route delete [ net | host ] destination gateway [args]
To delete a static route for network 1x2.26.13.0/24 via 172.26.13.1:
# route delete net 1x2.26.13.0 172.26.13.1
To delete a static route to host 1x2.26.14.5 via 172.26.13.1:
# route delete host 1x2.26.14.5 172.26.13.1
Example
route delete net 1x2.26.13.0 1x2.26.13.1
adding a route :
route add net 1x.36.113 netmask 255.255.255.0 1x.36.112.1 1
route add default 1x.36.112.1 1 source 1x.36.113.244
route add default 1x.36.112.1 1 source 1x.36.113.244
No comments:
Post a Comment