Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Mapping the External Network Configuration of a Node

This section describes how to create a map of the external network configuration of a peer node.

For further information about external addresses, see "External Addressing and Networking" in Netra High Availability Suite Foundation Services 2.1 6/03 Overview.

ProcedureTo Examine Interfaces Configured for External Communication

Use this procedure to determine whether a node is configured for external communication.

  1. Log in to the node whose network interfaces you want to examine.

  2. Run the ifconfig command:

    # ifconfig -a

    The ifconfig command displays configuration information about the network interfaces of a node. The following output is for a diskless or a dataless node using the class C addressing scheme, and configured for external communication through additional logical interfaces.

    hme0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 \
    index 1
            inet 10.250.1.30 netmask ffffff00 broadcast 10.250.1.255
            ether 8:0:20:f9:b4:b0 
    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 2
            inet 127.0.0.1 netmask ff000000 
    hme0:100: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 \
    index 2
            inet 172.36.128.51 netmask ffffff00 broadcast 172.36.128.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
            inet 10.250.2.30 netmask ffffff00 broadcast 10.250.2.255
            ether 8:0:20:f9:b4:b1 
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
            inet 10.250.3.30 netmask ffffff00 broadcast 10.250.3.255
            ether 0:0:0:0:0:0 

  3. Search in the output of Step 2 for an interface to an external network.

    In this example, the logical interface hme0:100 is an additional interface configured for external addressing.

Mapping the Floating Address Triplet of the Master Node

The master node and vice-master node have three interfaces for the floating address triplet. For example, NIC0:1, NIC1:1, and cgtp0:1. The interfaces are assigned to the master node and vice-master node, but are configured as up on the master node only. If a switchover or failover occurs, the floating address triplet is configured down on the old master node and up on the new master node. For more information, see "Cluster Addressing and Networking" in the Netra High Availability Suite Foundation Services 2.1 6/03 Overview.

ProcedureTo Map the Floating Address Triplet of the Master Node

  1. Log in to a peer node.

  2. Identify the master node:

    # nhcmmstat all

    The nhcmmstat command also displays information in the console window about each peer node.

  3. Log in to the master node as superuser.

  4. Run:

    # ifconfig -a

    For a node using the class C addressing scheme, output similar to this is displayed:

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
             inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
             inet 10.98.1.11 netmask ffffff00 broadcast 10.98.1.255
             ether 8:0:20:da:7d:9c
    hme0:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 2
             inet 10.98.1.1 netmask ffffff00 broadcast 10.98.1.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
             inet 10.98.2.11 netmask ffffff00 broadcast 10.98.2.255
             ether 8:0:20:da:7d:9d
    hme1:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 3
             inet 10.98.2.1 netmask ffffff00 broadcast 10.98.2.255
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
             inet 10.98.3.11 netmask ffffff00 broadcast 10.98.3.255
             ether 0:0:0:0:0:0
    cgtp0:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 4
             inet 10.98.3.1 netmask ffffff00 broadcast 10.98.3.255

    The floating address triplet has the logical interfaces hme0:1, hme1:1, and cgtp0:1. Note the IP addresses and netmask of the interfaces for the floating address triplet.

  5. Log in to the vice-master node as superuser.

  6. Repeat Step 4.

    Output similar to this is displayed:

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv> mtu 8232 index 1
             inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 \
    index 2
             inet 10.98.1.10 netmask ffffff00 broadcast 10.98.1.255
             ether 8:0:20:da:8f:c6
    hme0:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu \
    1500 index 2
             inet 10.98.1.1 netmask ffffff00 broadcast 10.98.1.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
             inet 10.98.2.10 netmask ffffff00 broadcast 10.98.2.255
             ether 8:0:20:da:8f:c7
    hme1:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu \
    1500 index 3
             inet 10.98.2.1 netmask ffffff00 broadcast 10.98.2.255
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
             inet 10.98.3.10 netmask ffffff00 broadcast 10.98.3.255
             ether 0:0:0:0:0:0
    cgtp0:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu \
    1500 index 4
             inet 10.98.3.1 netmask ffffff00 broadcast 10.98.3.255


    Note - Note that the hme0:1, hme1:1, and cgtp0:1 interfaces of the vice-master are configured but are not marked UP.


Mapping the Floating External Address of the Master Node

The Node State Manager (NSM) assigns an external IP address to one interface on the master node. This address is called the floating external address. To examine the floating external address, perform the following procedure.

ProcedureTo Map the Floating External Address of the Master Node

  1. Log in to a peer node.

  2. Identify the master node:

    # nhcmmstat all

    The nhcmmstat command also displays information about each peer node to the console window.

  3. Log in to the master node.

  4. Verify that the NSM has been configured in the nhfs.conf file.

    For a node using the class C addressing scheme, the NSM configuration is like this:

    NSM.Exec.Masterdir=/opt/SUNWcgha/actions/master
    NSM.Exec.Vicemasterdir=/opt/SUNWcgha/actions/vicemaster
    NSM.Log.Masterdir=/var/adm/log/SUNWcgha/nsm_master
    NSM.Log.Vicemasterdir=/var/adm/log/SUNWcgha/nsm_vicemaster
    NSM.External.Master.Address=172.36.128.5
    NSM.External.Master.Nic=hme0:101

    In this example, a floating external address is configured on the master node. The floating external address is assigned to the logical interface hme0:101, and has the external IP address 172.36.128.5. After failover or switchover, the floating external address is configured on the new master node.

  5. Run the ifconfig command on the master node:

    # ifconfig -a

    Output similar to this is displayed:

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000 
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 10.250.1.20 netmask ffffff00 broadcast 10.250.1.255
            ether 8:0:20:f9:b3:6a 
    hme0:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 2
            inet 10.250.1.1 netmask ffffff00 broadcast 10.250.1.255
    hme0:101: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> \
    mtu 1500 index 2 
    			inet 172.36.128.5 netmask ffffff00 broadcast 172.36.128.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
            inet 10.250.2.20 netmask ffffff00 broadcast 10.250.2.255
            ether 8:0:20:f9:b3:6b 
    hme1:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 3
            inet 10.250.2.1 netmask ffffff00 broadcast 10.250.2.255
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
            inet 10.250.3.20 netmask ffffff00 broadcast 10.250.3.255
            ether 0:0:0:0:0:0 
    cgtp0:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 4
            inet 10.250.3.1 netmask ffffff00 broadcast 10.250.3.255

    This output shows the hme0:101 interface as configured in the nhfs.conf file.

  6. Run the ifconfig command on the vice-master node:

    # ifconfig -a

    Output similar to this is displayed:

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv> mtu 8232 index 1
             inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
             inet 10.98.1.10 netmask ffffff00 broadcast 10.98.1.255
             ether 8:0:20:da:8f:c6
    hme0:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu \
    1500 index 2
             inet 10.98.1.1 netmask ffffff00 broadcast 10.98.1.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
             inet 10.98.2.10 netmask ffffff00 broadcast 10.98.2.255
             ether 8:0:20:da:8f:c7
    hme1:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu \
    1500 index 3
             inet 10.98.2.1 netmask ffffff00 broadcast 10.98.2.255
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
             inet 10.98.3.10 netmask ffffff00 broadcast 10.98.3.255
             ether 0:0:0:0:0:0
    cgtp0:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu \
    1500 index 4
             inet 10.98.3.1 netmask ffffff00 broadcast 10.98.3.255

    This output shows that there is no floating external address on the vice-master node.

Previous Previous     Contents     Index     Next Next