HOME statement

Use the HOME statement to provide the list of home IPv4 addresses and associated link names.

Restriction:
  • The HOME statement applies only to IPv4 interfaces that are defined with DEVICE and LINK statements. Specify the home IP address on the INTERFACE statement for the following interfaces:
    • An IPv6 interface.
    • An IPv4 interface that is defined by using the INTERFACE statement for QDIO Ethernet, HiperSockets™, or static VIPA.
    See Summary of INTERFACE statements for more information.

Syntax

Rule: Specify the parameters in the order shown here.

Read syntax diagramSkip visual syntax diagram
         .------------------------------.   
         V                              |   
>>-HOME----+--------------------------+-+----------------------><
           '-internet_addr--link_name-'     

Parameters

internet_addr
The IP address valid for this host. The IP address can be associated with a physical or VIPA link.

Requirement: The IP address must be specified in dotted decimal form.

link_name
The name of the link defined in a previous LINK statement (or the reserved name LOOPBACK) that is associated with the home address.

Steps for modifying

To modify the HOME statement, use a VARY TCPIP,,OBEYFILE command with a data set that defines a new HOME statement.

Rules:
  • If you use the HOME statement to change the IP addresses of any links, you should stop and restart the affected devices. Furthermore, if the OSPF dynamic routing protocol is being used over an affected interface, you should wait between stopping and restarting the device to enable the OSPF protocol to fully propagate the deletion of the old IP address. The duration of this wait should be at least three times the dead router interval configured for the interface.
  • The first HOME statement of each configuration data set that is set replaces the existing HOME list with the new list. Subsequent HOME statements in the same data set add entries to the list; however, dynamically defined HOME list entries created by XCF dynamics, by a VIPADEFINE statement, or by an application binding to an IP address in a currently valid VIPARANGE statement are not deleted by a new HOME statement. You can display dynamically created HOME list entries with the Netstat HOME/-h command. A dynamic XCF HOME list entry has the link name EZASAMEMVS or begins with EZAXCF. A dynamic VIPA HOME list entry has a link name that begins with VIPL, followed by the hexadecimal value of its IP address.
  • If the first HOME statement of a profile contains no entries, then all IP addresses that were specified in a HOME statement from a previous profile are removed from the HOME list.
  • If you change the IP address of a link that was used by previously specified default routes and you want to maintain those default routes, you must include your GATEWAY or BEGINROUTES statements in the VARY TCPIP,,OBEYFILE command data set that contains the new HOME list. If you do not include your GATEWAY or BEGINROUTES statements, the static routes using that link are deleted.
  • If you had previously specified the PRIMARYINTERFACE statement and want to preserve the primary interface that was previously specified, you must include your PRIMARYINTERFACE statement in the VARY TCPIP,,OBEYFILE command data set that contains the new HOME list. If you do not include the original PRIMARYINTERFACE statement, the primary interface is reset to the first entry in the new HOME list.

Usage notes

Examples

This example shows a HOME statement that defines the IP addresses of each link in the host.
HOME
   151.4.1.2      TR2 
   192.1.1.1      VIPA1
   130.50.75.1    TR1
   193.5.2.1      ETH1
   192.2.1.1      VIPA2
   9.67.43.110    FDDI1
   193.7.2.1      SNA1

VIPA1 and VIPA2 are examples of static VIPA links associated with static VIPA addresses, the other values are examples of physical links associated with physical IP addresses. If you specify SOURCEVIPA on the IPCONFIG statement, VIPA1 serves as the VIPA address for TR1 and ETH1, and VIPA2 for links FDDI1 and SNA1. Because there is no VIPA definition preceding TR2 in the HOME list, it is not affected by SOURCEVIPA. The VIPA addresses are used in the outbound IP datagrams. For more information, see IPCONFIG statement.

The following example shows the definition of an additional LOOPBACK address:
HOME  9.67.113.105   CTCD00   ; CTC IP address for this system
      127.0.0.2      LOOPBACK ; additional LOOPBACK address
 

If using the SOURCEVIPA option for the outbound datagrams originating at a z/OS TCP/IP stack, see the following example for details:

HOME                                                
  172.2.1.1     VIPA1  ; <-- Source for ETH1 and TR1
  151.2.3.1     ETH1                                
  151.4.1.1     TR1                                 
  172.2.1.2     VIPA2  ; <-- Source for ETH2 and TR2
  151.2.3.2     ETH2                                
  151.4.1.2     TR2                                 

Select a VIPA address in the HOME statement to provide as the local address. The address that closely precedes a physical IP address is used as the local address. For example:

Optionally, additional VIPA addresses can be defined to associate a group of interfaces and serve as local addresses. In this example, VIPA1 is associated with ETH1 and TR1, and VIPA2 is associated with ETH2 and TR2.

If an outbound datagram is not to contain a SOURCEVIPA address for a particular interface (that is, use a physical IP address), then use the following example:

HOME                                                          
  151.4.1.1     TR1    ; <-- No SOURCEVIPA for outbound on TR1
  172.2.1.1     VIPA   ; <-- Source for ETH1 and TR2          
  151.2.3.1     ETH1                                          
  151.4.1.2     TR2                                           

If traffic over an interface should not use a source VIPA address, put the HOME entry for that interface before all VIPA addresses in the HOME list.

Related topics