Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Monday, May 18, 2015

Linux add and delete route with gateway

1)
Add default gateway
$route add default gw 10.1.0.1

2)
Delete default gateway
$route add default gw 10.1.0.1

3)
Add new route with gateway
$route add -net 10.3.0.0 netmask 255.255.255.0 gw 10.1.0.1


4)
Delete route with gateway
$route add -net 10.3.0.0 netmask 255.255.255.0 gw 10.1.0.1


No comments:

Post a Comment