72 / 100

Have you ever been perplexed on the best way to configure AIX Networking?

Here are some of the Faq’s regarding AIX Networking

 

How do I record packets received or transmitted?

To record packets coming in and going out to any host on every interface, enter:

iptrace /tmp/nettrace

The trace information is placed in the /tmp/nettrace file.

To record packets received on an interface en0 from a remote host airmail over the Telnet port, enter:

iptrace -i en0 -p telnet -s airmail /tmp/telnet.trace

The trace information is placed in the /tmp/telnet.trace file.

How do I display routing table, interface, and protocol information?

To display routing table information for an Internet interface, type:

netstat -r -f inet

To display interface information for an Internet interface, type:

netstat -i -f inet

To display statistics for each protocol, type:

netstat -s -f inet

How do I deactivate a network interface?

For example, to deactivate the network interface tr0, run the command:

ifconfig tr0 down

How do I activate a network interface?

To activate the network interface tr0, run the command:

ifconfig tr0 up

How do I identify the network interfaces on my server?

Either of the following two commands will display the network interfaces:

lsdev -Cc if

ifconfig -a

To get information about one specific network interface, for example, tr0, run the command:

ifconfig tr0

How do I get the IP address of my machine?

Type one of the following commands:

ifconfig -a

host Fully_Qualified_Host_Name

For example, type the following command to get the IP address of the machine cyclop.austin.ibm.com:

host cyclop.austin.ibm.com

How can I display or set values for network parameters?

The no command sets or displays current or next boot values for network tuning parameters.

To display the maximum size of the mbuf pool, type:

no -o thewall

To change the default socket buffer sizes on your system, type:

no -r -o tcp_sendspace=32768

no -r -o udp_recvspace=32768

To use a system as an Internet work router over the Internet Protocol networks, type:

no -o ipforwarding=1

To list the current and reboot value, range, unit, type and dependencies of all tunable parameters that are managed by the no command, type:

no -L

AIX Networking FAQ

AIX Networking