This chapter covers the following topics:
In order to configure TCP/IP you need some type of networking hardware. With QNX TCP/IP, your networking choices include:
To configure your machine to be a client on an Ethernet, Token Ring, or FDDI network, follow these steps:
If Net isn't configured before Socket is started, then Socket won't be able to access the network. |
Socket mymachine &
Typically the string mymachine comes from the /etc/hosts file.
ifconfig en1 192.9.200.1 ifconfig lo0 localhost
In the above example, the identifier en1 refers to an Ethernet interface on logical LAN 1 in a QNX network.
For setups involving two QNX machines, it's easiest to configure QNX networking first. |
The following table gives the QNX LAN interface IDs for the various hardware protocols supported:
For this protocol | Use this interface: |
---|---|
Ethernet | enx |
FDDI | fddix |
PPP | pppx |
SLIP | slx |
Token Ring | trx |
The value of x is simply the logical LAN running the selected hardware (i.e. the argument of the -l option to the Net.driver or the index of the PPP or SLIP device). For more information, see Net.driver in the QNX OS Utilities Reference.