Aix: network configuration, media speed configuration of network card in aix


1  .lsdev | grep -i ether   # see Ethernet devices and drirver.
                                      # entX = h/w card.
                                      # enX  = ethernet (DIX II framing) for IP 
                                      # etX  = ethernet (IEEE 802.3) for SNA, don't bother :)
 
2   lsattr -R  -l ent0 -a media_speed       # show capabilities of ent0
3.  lsattr -EH -l ent0 -a media_speed      # show current settings
4.  lsattr -D  -l ent0                                   # show all def val for Eth dev.
5.  chdev -P -l ent0 -a media_speed=100_Full_Duplex    # change to forced full 100
6.  chdev -P -l ent0 -a media_speed=Auto_Negotiation    # change to auto negotiate for speed duplex
                                                                                           # effective after reboot !!!
 

7.   /usr/sbin/mktcpip 
                  -h'HOSTNAME' 
                  -a'HOST.IP'
                  -m'HOST.IP.NETMASK'
                  -i'NIC'                 # eg en0, "standard network interface"
                  -n'DNS.SERVER.IP'       # may want to add more to /etc/resolv.conf
                  -d'DNS.DOMAIN.NAME'     # eg titaniumleg.com
                  -g'DEF.GATEWAY.IP'
                  -A'no'                  # Start now?  no or yes  # just omit it.
 
---> Ex-
a)  
       # mktcpip -h'aix01' -a'10.215.11.101' -m'255.255.255.0'
                   -i'en0' -n'10.215.2.1' -d'titaniumleg.com' -g'10.215.11.1' 

b).   # chdev -l en1 -a netaddr=192.168.1.1 -a netmask=255.255.255.0
 
8. <<<<<<<Permanently Set the hostname>>>>>>
      # chdev -l inet0 -a hostname=hts
 
9.  <<<<<< To add the permanently IP Alias: >>>>
      #  chdev -l <interface> -a alias4=<IP-Address>,<Netmask>
ex- #  chdev -l en0 -a alias4=192.168.0.2,255.255.255.0
 
10. <<<<<<< To Delete the permanently IP Alias:>>>>>>> 
      #   chdev -l <interface> -a delalias4=<IP-Address>,<Netmask>
ex- #   chdev  -l en0 -a delalias4=192.168.0.2,255.255.255.0

11. <<<<<<< To Temporarily add the IP Alias by ifconfig >>>>>>>>
      #    ifconfig  <interface> alias <IP-Address> netmask <netmask> up
ex   #   ifconfig   en0 alias 192.168.2.3 netmask 255.255.255.0 up 
or   #   ifconfig  en0 192.168.2.5  netmask 255.255.255.0 alias
 
12. <<<<<<< To Remove the Temporarily IP Alias by ifconfig >>>>>>>>>
      #    ifconfig <interface> delete <IP-Address>
ex  #    ifconfig en0 delete 192.168.2.5 
 
 
 
 
 
 
 

Comments

Post a Comment

Thank you for visiting my blog.

Popular posts from this blog

Defining Audit Rules

AIX Install packages, upgrade, patching commands

Oracle Database Quick Installation steps 11g Release 2 for Linux x86-64