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:
- 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:
- On the command line on partition B, type CFGTCP, and then press Enter to see the Configure TCP/IP panel.
- Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.
- Select Option 1 (Add), and then press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.
- At the Internet address prompt, type '10.1.1.2'.
- At the Line description prompt, type ETHLINE.
- At the Subnet mask prompt, type '255.255.255.0'.
- Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.
- 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:
- On the command line on partition B, type CFGTCP, and then press Enter to see the Configure TCP/IP panel.
- Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.
- Select Option 1 (Add), and then press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.
- For the Internet address prompt, type '10.1.1.3'.
- For the Line description prompt, type ETHLINE.
- For the Subnet mask prompt, type '255.255.255.0'.
- Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.
- Create and start the i5/OS TCP/IP interface on partition A for the virtual Ethernet. To create the interface, follow these steps:
- On the command line on partition A, type CFGTCP, and press Enter to see the Configure TCP/IP panel.
- Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.
- Select Option 1 (Add), and press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.
- At the Internet address prompt, type '192.168.1.1'.
- At the Line description prompt, type VETH0.
- At the Subnet mask prompt, type '255.255.255.0'.
- Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.
- Create and start the i5/OS TCP/IP interface on partition B for the virtual Ethernet. To create the interface, follow these steps:
- On the command line on partition B, type CFGTCP, and press Enter to see the Configure TCP/IP panel.
- Select Option 1 (Work with TCP/IP Interfaces), and then press Enter.
- Select Option 1 (Add), and press Enter to see the Add TCP/IP Interface (ADDTCPIFC) panel.
- At the Internet address prompt, type '192.168.1.5'.
- At the Line description prompt, type VETH0.
- At the Subnet mask prompt, type '255.255.255.0'.
- Start the interface. On the Work with TCP/IP Interfaces panel, select Option 9 (Start) by the interface.
Parent topic:
Network address translation methodPrevious topic: Step 3: Turning on IP datagram forwardingNext topic: Step 5: Verifying network communications