|Non-Confidential||PDF version||ARM DUI0835I|
|Home > Getting Started with Fast Models > Requirements, installation, and uninstallation > Networking gateways|
This section describes how to route packet traffic with user mode networking or the HostBridge component.
Emulate a built-in IP router and DHCP server, route TCP and UDP traffic between the guest and host, and communicate with other hosts through the user mode socket layer of the host.
User mode networking allows the use of IP network services without administrative privileges, or a separate driver on the host of the model.
Run the model with additional CADI parameters.
-C motherboard.hostbridge.userNetworking=true -C motherboard.smsc_91c111.enabled=true
This example maps port 8022 on the host to port 22 on the model.
This Programmer’s View (PV) model is a networking gateway. It exchanges Ethernet packets with the TAP device on the host, and forwards packets to NIC models.
This TAP/TUN method is an alternative to user mode networking.
The HostBridge component has configuration options:
Specifies an optional port number mapping between listening ports on the host and listening ports
on the model. The syntax is a comma-separated list of items in the form
[host-ip:]hostport=[model-ip:]modelport. For example,
5022=22,5080=80 causes sshd and httpd services on the model to
listen on ports 5022 and 5080 on the host machine. You can use the optional
model-ip to select a specific interface
for the mapping, for example
127.0.0.1. The default is to accept
connections on any interface
Presents a range of subnet network addresses to the model, in the
ip-address/significant-bits syntax, for example
10.0.0.0/8. Omitting trailing
zero octets is acceptable, for example
192.168/16. The default subnet
172.20.51.0/24, taken from the RFC1918 private-use area.
true, the outgoing Ethernet packets of the model go to a proxy router that
translates them into host socket calls. If
false (default) the model
attempts to open a TAP/TUN device.