Friday, 6 September 2013

AIX-ADDING/DELETING A STATIC ROUTE USING COMMAND LINE



chdev -l inet0 -a route=net,-netmask,<your-mask-here>,-static,<net address here>,<Gateway here>    ==>To add route
chdev -l inet0 -a delroute=net,-netmask,<your-mask-here>,-static,<net address here>,<Gateway here> ==>To del route


(a)For example to create a static route for destination 10.0.0 through 192.168.0.1

#chdev -l inet0 -a route=net,-netmask,255.255.255.0,-static, 10.0.0.0, 192.168.0.1

(b)For example to remove a static route for destination 10.0.0 through 192.168.0.1

#chdev -l inet0 -a delroute=net,-netmask,255.255.255.0,-static, 10.0.0.0, 192.168.0.1

No comments:

Post a Comment