Skip to content

AIX - Interface

Commands

Config interface with smit:

smitty tcpip

Config network interface:

chdev -l en0 -a netaddr={ip-address} -a netmask={mask} -a state=up
# Ex: chdev -l en0 -a netaddr=10.2.5.6 -a netmask=255.255.248.0 -a state=up

Add default gateway:

chdev -l inet0 -a hostname={hostname} -a route=net,-hopcount,0,,0,{gateway}
# Ex: chdev -l inet0 -a hostname=srv-1 -a route=net,-hopcount,0,,0,10.2.5.1

List route of inet0:

lsattr -El inet0
Back to top