5.6.2. User mode networking

User mode networking emulates a built-in IP router and DHCP server, and routes TCP and UDP traffic between the guest and host, and uses the user mode socket layer of the host to communicate with other hosts. This allows the use of a significant number of IP network services without requiring administrative privileges, or the installation of a separate driver on the host on which the model is running.

To set up and use user mode networking:

  1. Install the Fast Models package to obtain the TPIP for the images.

  2. Start a model with Linux from the TPIP package. For example, use:

    • Model: FVP_VE_Cortex-A15x1

    • Kernel: FVP_VE_CLI_VE_V7_LPAE/FVP_VE_CLI_VE_V7_LPAE.axf

    • Image: FVP_VE_CLI_VE_V7_LPAE/armv5t_min_VE_V7_LPAE.image.

  3. To enable user mode networking, run the model with the following additional CADI parameters:

    -C motherboard.hostbridge.userNetworking=true
    -C motherboard.smsc_91c111.enabled=true
    
  4. To map a host port to a model port, run the model with the following additional CADI parameters:

    -C motherboard.hostbridge.userNetPorts="8022=22"
    

    This example maps port 8022 on the host to port 22 on the model.

Note

You can use only TCP and UDP over IP. ICMP (ping) is not supported.

DHCP is only supported within the private network.

You can only make inward connections by mapping ports on the host to the model. This is common to all implementations that provide host connectivity using NAT.

Operations that require privileged source ports, for example NFS in its default configuration, do not work.

If setup fails, or the parameter syntax is incorrect, there is no error reporting.

Copyright © 2008-2013 ARM. All rights reserved.ARM DUI 0423O
Non-ConfidentialID060613