Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Monday, March 16, 2009

AIX using chdev to add/change/remove routing

# route delete default <IP>
# lsattr -El inet0 -a route
# chdev -l inet0 -a delroute="net,,0,<IP that is listed above>"
# chdev -l inet0 -a route="net,,0,<IP that it should be>"
# lsattr -El inet0 -a route
# netstat -nr

After updating the routing, you need to use mkdev to refresh it.

# mkdev -l inet0

No comments:


Blog Archive