Monday, May 4, 2009

AIX- Network - Assign Gateway to Network

AIX- Network - Assign Gateway to Network

Using route command we can assign gateway to network

#route add 0 192.168.0.1 (To make 192.168.0.1 as default gateway for entire network)

#route add 192.168.0.1 192.168.1.1 (To make 1.1 as gateway for 0.1 network)

Like this we can assign the gateway for network

AIX - Network - Trace Host

AIX - Network - Trace Host

Using traceroute command we can trace the route to the host

#traceroute ServerA (To trace the route to ServerA)

AIX - Network -Changing the HOST Name

AIX - Network -Changing the HOST Name

Using hostname command we can change the host name

#hostname (It will display existing host name)
ServerA

#hostname ServerB

#hostname ServerB

ServerA host name is changed to ServerB
Or
Using chdev command to change the hostname for inet0

#chdev –l inet0 –a hostname=ServerB

AIX - Network - Check the Network Statistics

AIX - Network - Check the Network Statistics


Using netstat command we can check the network statistics

#netstat –a (To show the state of all sockets)

#netstat –c (To show the network buffers cache)

#netstat –D (To show the net drops of packets)

#netstat –i (To display interface statistics)

#netstat –rn (To show routing table – ip will be given instead of host names)

#netstat –s (To show statistics of the protocols)

AIX - Network -Check the NIC device status

AIX - Network -Check the NIC device status

#entstat en0 (To display the status of Ethernet device en0)
#entstat –d en0 (To display detailed information about Ethernet device en0)

AIX - Network - Check status of the NIC

AIX - Network - Check status of the NIC

Using ifconfig command we can check the status of the NIC
#ifconfig –a (To show status of all network interfaces for IP)

AIX - Network - Remove IP Address

AIX - Network - Remove IP Address

Using ifconfig command we can remove network interface from network list
#ifconfig en0 detach (Removes en0 card from the network interface list)

Sunday, May 3, 2009

AIX - Network - Enable IP address

Enable IP address

#ifconfig en0 up (Turns on network card en0)

AIX - Network - Disable IP address

AIX - Network - Disable IP address

Using ifconfig command we can disable the IP address
#ifconfig en0 down (Turns off network card en0)

AIX - Network - Assign IP address to NIC

Assign IP address to NIC

Using mktcpip or smitty tcpip command we can assign IP address to NIC

#smitty tcpip

It will ask following details

Hostname –
IP address –
Subnet mask –
DNS server –
DNS Server name –
Gateway –
#
Or
#ifconfig en0 inet 192.168.1.1 netmask 255.255.255.0 up (Configure en0 starts Immediately)


After finishing this process ip address assigned to NIC

Or

We can assign one more IP address to same network card

#ifconfig en0 192.168.1.33 alias (adding alias IP to en0)
#ifconfig –en0 192 168.1.33 –alias (Removing alias IP from en0)