[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
AIX Version 4.3 Commands Reference, Volume 3
mktcpip Command
Purpose
Sets the required values for starting TCP/IP on a host.
mktcpip { -S Interface | -h HostName -a Address -i Interface [ -s ] [ -m SubnetMask ]
[ -r RingSpeed ] [ -t CableType ] [ -g Gateway ] [ -n NameServerAddress [ -d Domain ] ]
[ [ -c Subchannel ] -D Destination ] }
Description
The mktcpip command sets the required minimal values required for using TCP/IP on a host machine. These values are written to the configuration database. The basic functions of the mktcpip command include:
- Setting the host name in both the configuration database and the running machine.
- Setting the IP address of the interface in the configuration database.
- Making entries in the /etc/hosts file for the host name and IP address.
- Setting the domain name and IP address of the nameserver, if applicable.
- Setting the subnetwork mask, if applicable.
- Adding a static route to both the configuration database and the running machine, if applicable.
- Starting the specified TCP/IP daemons.
You can use the Web-based System Manager Network application
(wsm network fast path) to run this
command. You could also use the System Management Interface
Tool (SMIT) smit mktcpip fast path to run this command.
Flags
-a Address |
Sets the Internet address of the host. Specify the address in dotted decimal notation. Each network interface on the host should have a unique Internet address. The following is the standard format for setting the Internet address:
127.10.31.2 |
-c Subchannel |
Specifies the subchannel address for a System/370 channel adapter. |
-D Destination |
Sets the destination address for a static route. Specify the address in dotted decimal notation. The following is the standard format for setting the destination address for a static route:
192.9.52.1 |
-d Domain |
Specifies the domain name of the name server the host should use for name resolution, if any. The domain name should be in the following format:
subdomain.subdomain.rootdomain |
-g Gateway |
Sets the gateway address for a static route. Specify the address in dotted decimal notation. The following is the standard format for setting the gateway address for a static route:
192.9.52.0 |
-h Hostname |
Sets the name of the host. If using a domain naming system, the domain and any subdomains must be specified. The following is the standard format for setting the host name:
hostname
The following is the standard format for setting the host name in a domain naming system:
hostname.subdomain.subdomain.rootdomain |
-i Interface |
Specifies a particular network interface, for example:
tr0 |
-m SubnetMask |
Specifies the mask the gateway should use in determining the appropriate subnetwork for routing. The subnet mask is a set of 4 bytes, as in the Internet address. The subnet mask consists of high bits (1s) corresponding to the bit positions of the network and subnetwork address, and low bits (0s) corresponding to the bit positions of the host address. |
-n NameserverAddress |
Specifies the Internet address of the name server the host uses for name resolution, if applicable. The address should be entered in dotted decimal notation, as follows:
127.1.0.1 |
-r RingSpeed |
Specifies the ring speed for a token-ring adapter. Valid values for the RingSpeed variable are either 4- or 16-Mbps. |
-S Interface |
Retrieves information for System Management Interface Tool (SMIT) display. |
-s |
Starts the TCP/IP daemons. |
-t CableType |
Specifies cable size for Standard Ethernet or IEEE 802.3 Ethernet networks. Valid values for the CableType variable are dix for thick cable, bnc for thin cable, or N/A for Not Applicable. The -t CableType flag should be used only for Standard Ethernet (en) and IEEE 802.3 Ethernet (et) interfaces. |
Examples
To set the required values for starting TCP/IP enter:
mktcpip -h fred.austin.century.com -a 192.9.200.4 -i en0 \
-n 192.9.200.1 -d austin.century.com -s
Related Information
The hostname command, hostent command.
The resolv.conf file format.
Naming in AIX Version 4.3 System Management Guide: Communications and Networks.
TCP/IP Addressing in AIX Version 4.3 System Management Guide: Communications and Networks.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
System Management Interface Tool (SMIT): Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.
The SMIT Interface for TCP/IP in AIX Version 4.3 System Management Guide: Communications and Networks.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]