To configure initial TCPIP setup:
# mktcpip -hostname vios1 -inetaddr 192.168.10.55 -interface en0 -netmask 255.255.255.0 -gateway 192.168.10.1 -nsrvdomain mydomain.com -start
To list stored tcpip configuration:
# lstcpip -stored
To list ethernet adapters on the server:
# lstcpip -adapters
To show system hostname:
# lstcpip -hostname
To show dns servers:
# lstcpip -namesrv
To display routing table:
# lstcpip -routtable
To display routing table in numbers:
# lstcpip -num -routtable
To list all open inet sockets:
# lstcpip –sockets –family inet
To show the state of all configured network interfaces:
# lstcpip –state
To flush (remove) all tcpip settings:
# rmtcpip -all
To unconfigure a network interface:
# rmtcpip -interface en0
To clean up routing table:
# rmtcpip –f -routing
To remove DNS information:
# rmcpip –namesrv
To unconfigure tcpip information on en0 during next reboot:
# rmtcpip –f –interface en0 -nextboot
To add an entry to /etc/hosts:
# hostmap -addr 192.168.10.34 -host alpha
To list the contents of hosts file:
# hostmap -ls
To remove a specific entry on hosts files:
# hostmap -rm 192.168.10.34
To enable / start all network services:
# startnetsvc ALL
To disable / stop all network services:
# stopnetsvc ALL
To enable telnet on a VIO Server:
# startnetsvc telnet
To enable ftp on a VIO ServerL
# startnetsvc ftp
To enable ldap daemon:
# startnetsvc ldap
To enable xntpd:
# startnetsvc xntpd
To enable cimserver:
# startnetsvc cimserver
To send CLI tracing info to system log:
# startnetsvc tracelog
To send system error log to the system log:
# startnetsvc errorlog
To list the start of ftp daemon:
# lsnetsvc ftp
To add a domain name entry:
# cfgnamesrv -add -dname abc.aus.century.com
To add a name server entry:
# cfgnamesrv –add -ipaddr 192.9.201.1
To list all resolv.conf entries:
# cfgnamesrv -ls
To display statistics on a network interface:
# entstat en0
To reset statistics on a network interface:
# entstat –reset ent0
To trace a route:
# traceroute nis.nsf.net
Welcome to the AIX World
Tuesday, July 9, 2013
Virtual Optical Device, Virtual Optical Drive and Virtual Media Library
1. To create a virtual media repository:
# mkrep -sp rootvg -size 10G
Above command will create a filesystem called /var/vio/VMLibrary.
2. To create an iso from from AIX DVD:
# dd if=/dev/cd0 of=/cg/AIX61-1.iso bs=1m
You can copy the iso file to /var/vio/VMLibrary.
3. To list the contents of virtual media repository:
$ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
10198 5828 rootvg 139776 110592
Name File Size Optical Access
AIX61_1.iso 3679 vtopt0 rw
AIX61_2.iso 691 None rw
4. To create a Virtual Optical device :
# mkvdev -fbo -vadapter vhost0
5. To create a virtual optical media from a downloaded ISO image:
# mkvopt -ro -name aix61 -file /home/padmin/aix61.iso
6. To remove a virtual optical media:
# rmvopt -name aix61
7. To list all the virtual optical devices:
# lsvopt
8. To load the virtual optical media on a virtual optical device:
# loadopt -vtd vtopt0 -disk linux
9. To load an ISO file on a virtual optical device:
# loadopt -vtd vtopt0 -disk AIX61_1.iso
10. To check if the ISO was loaded correctly:
# lsmap -vadapter vhost0
11. To unload the virtual media from virtual optical device:
# unloadopt -vtd vtopt0
12. To force remove the virtual media:
# unloadopt -vtd vtopt0 -release
# mkrep -sp rootvg -size 10G
Above command will create a filesystem called /var/vio/VMLibrary.
2. To create an iso from from AIX DVD:
# dd if=/dev/cd0 of=/cg/AIX61-1.iso bs=1m
You can copy the iso file to /var/vio/VMLibrary.
3. To list the contents of virtual media repository:
$ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
10198 5828 rootvg 139776 110592
Name File Size Optical Access
AIX61_1.iso 3679 vtopt0 rw
AIX61_2.iso 691 None rw
4. To create a Virtual Optical device :
# mkvdev -fbo -vadapter vhost0
5. To create a virtual optical media from a downloaded ISO image:
# mkvopt -ro -name aix61 -file /home/padmin/aix61.iso
6. To remove a virtual optical media:
# rmvopt -name aix61
7. To list all the virtual optical devices:
# lsvopt
8. To load the virtual optical media on a virtual optical device:
# loadopt -vtd vtopt0 -disk linux
9. To load an ISO file on a virtual optical device:
# loadopt -vtd vtopt0 -disk AIX61_1.iso
10. To check if the ISO was loaded correctly:
# lsmap -vadapter vhost0
11. To unload the virtual media from virtual optical device:
# unloadopt -vtd vtopt0
12. To force remove the virtual media:
# unloadopt -vtd vtopt0 -release
Monday, June 24, 2013
IP Alias
You can set IP alias on any network interface (such as en0, en1,..) temporarily (using ifconfig command) or permanently (by adding entry in ODM) in AIX. Here are some commands which you may refer whilst working on this concept.
To temporarily add IP alias :
You can use the below command to set IP alias temporarily ie., the alias will be lost after a server reboot.
#ifconfig en0 alias 192.168.1.2 netmask 255.255.255.0 up
To permanently add IP Alias :
Below command will amend the ODM entry, so the alias will be available even after a server reboot.
# chdev -l en0 -a alias4=192.168.1.2,255.255.255.0
To remove a temporary IP alias :
This would remove the alias from the current ip table, but it would not remove from the ODM. If you like to erase it from ODM, then use the "chdev" or "smitty".
# ifconfig en0 delete 192.168.1.2
To remove IP alias permanently :
This command will work only if IP alias was added in ODM using smitty or chdev command. If you have added using "ifconfig" command, then it is set temporarily, so this command would not work.
#chdev -l en0 -a delalias4=192.168.1.2,255.255.255.0
To display current IP table including IP alias :
# ifconfig -a
To display permanently added IP alias :
# lsattr -El en0
To temporarily add IP alias :
You can use the below command to set IP alias temporarily ie., the alias will be lost after a server reboot.
#ifconfig en0 alias 192.168.1.2 netmask 255.255.255.0 up
To permanently add IP Alias :
Below command will amend the ODM entry, so the alias will be available even after a server reboot.
# chdev -l en0 -a alias4=192.168.1.2,255.255.255.0
To remove a temporary IP alias :
This would remove the alias from the current ip table, but it would not remove from the ODM. If you like to erase it from ODM, then use the "chdev" or "smitty".
# ifconfig en0 delete 192.168.1.2
To remove IP alias permanently :
This command will work only if IP alias was added in ODM using smitty or chdev command. If you have added using "ifconfig" command, then it is set temporarily, so this command would not work.
#chdev -l en0 -a delalias4=192.168.1.2,255.255.255.0
To display current IP table including IP alias :
# ifconfig -a
To display permanently added IP alias :
# lsattr -El en0
Subscribe to:
Posts (Atom)