Step 4: Creating the interfaces

 

To allow traffic between your virtual Ethernet network and the external network, you need to create several TCP/IP interfaces for your system.

To create the TCP/IP interfaces, complete these steps:

  1. Create and start an i5/OS® TCP/IP interface on partition B for general communication to and from the system. To create the interface, follow these steps:

    1. On the command line on partition B, type CFGTCP, and then press Enter to see the Configure TCP/IP panel.

    2. Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.

    3. Select Option 1 (Add), and then press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.

    4. At the Internet address prompt, type '10.1.1.2'.

    5. At the Line description prompt, type ETHLINE.

    6. At the Subnet mask prompt, type '255.255.255.0'.

    7. Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.

  2. Create and start another TCP/IP interface that connects to the external network. It should use the same line description as your existing external TCP/IP interface. This interface will eventually perform the address translation for your partition. To create the interface, follow these steps:

    1. On the command line on partition B, type CFGTCP, and then press Enter to see the Configure TCP/IP panel.

    2. Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.

    3. Select Option 1 (Add), and then press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.

    4. For the Internet address prompt, type '10.1.1.3'.

    5. For the Line description prompt, type ETHLINE.

    6. For the Subnet mask prompt, type '255.255.255.0'.

    7. Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.

  3. Create and start the i5/OS TCP/IP interface on partition A for the virtual Ethernet. To create the interface, follow these steps:

    1. On the command line on partition A, type CFGTCP, and press Enter to see the Configure TCP/IP panel.

    2. Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.

    3. Select Option 1 (Add), and press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.

    4. At the Internet address prompt, type '192.168.1.1'.

    5. At the Line description prompt, type VETH0.

    6. At the Subnet mask prompt, type '255.255.255.0'.

    7. Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.

  4. Create and start the i5/OS TCP/IP interface on partition B for the virtual Ethernet. To create the interface, follow these steps:

    1. On the command line on partition B, type CFGTCP, and press Enter to see the Configure TCP/IP panel.

    2. Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.

    3. Select Option 1 (Add), and press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.

    4. At the Internet address prompt, type '192.168.1.5'.

    5. At the Line description prompt, type VETH0.

    6. At the Subnet mask prompt, type '255.255.255.0'.

    7. Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.

 

Parent topic:

Network address translation method
Previous topic: Step 3: Turning on IP datagram forwarding