Interface Commands

Interface commands attach drivers and configure interfaces between the NAT and the physical networks. These commands are some of the most complex, and must be completed before the NAT can communicate on its network interfaces.

Interface Naming Conventions

While this is not a major issue, we encourage the use of predictable interface names for particular interface types. Recommended names are:

Attaching Drivers to an Interface

The hardware drivers constitute the glue between the hardware interface and the NAT processes. Before the NAT can use the hardware driver, it must be "attached" to the NAT's logical interface. The attach command actually creates the logical interface.

Command Syntax for Network Drivers

  attach packet [int #] [int name] [# bufs] [buf size]
Where: Example values for the attachment of a first (or only) driver to NAT interface "en0" are shown here:
  attach packet 0x60 en0 5 1500
This attaches a packet driver on software interrupt vector 0x60 (96 decimal) to interface "en0" and allocates five 1500-byte buffers.

Possible responses are:


Command Syntax for Async Drivers

  attach asy [i/o] [irq] ppp [name] [window] [buf] [speed] [opt]
Where: Example values for the attachment of a first (or only) ASYNC driver to NAT interface "pp0" at 230,400bps using a 16650 are shown here:
  attach asy 0x3f8 4 ppp pp0 8092 1500 230400 6
This attaches a PPP driver to interface "pp0" using a StarTech/Exar 16650 on COM1.

Possible responses are:


Configuring the NAT Logical Interface

The ifconfig command sets the interface parameters for the logical interface created by the attach command shown previously. These parameters include:

Command Syntax

Set the IP Address of the Interface

This sets the primary IP Address, which is the one that the NAT will use:
  ifconfig [int name] ipaddress [ip address]
Where: Response will be "Interface xxx unknown" if the specified interface has not been created with an attach command. There will be no response if the command was successful.

Set the Broadcast IP Address of the Interface

This sets the broadcast IP Address, which is the one that all devices on the attached network listen to, including the NAT.
  ifconfig [int name] broadcast [ip address]
Where: Response will be "Interface xxx unknown" if the specified interface has not been created with an attach command. There will be no response if the command was successful.

Set the Netmask of the Interface

The Netmask is a 32-bit mask used by all workstations, hosts and routers to determine whether two IP Addresses are in the same logical network. It should be set to the same value for all devices on a given network segment. The NAT does not support "comb" style netmasks. All one-bits in the netmask must be contiguous.
  ifconfig [int name] netmask [hex netmask]
Where: Response will be "Interface xxx unknown" if the specified interface has not been created with an attach command. There will be no response if the command was successful.

Designate the Interface as Public or Private

A "public" network uses IP Addresses that the rest of the world, or the rest of an Enterprise may know about. A "private" network may use any addresses, preferably the never-to-be-issued addresses from RFC 1597. The NAT hides the addresses on the private network by translating them to public addresses on the public side. We call the public version of the address an "apparent address," and the private version the "actual address."

Two directly-attached private networks may communicate through the NAT without any address translation, if desired.

  ifconfig [int name] private [0|1|2]
Where: Response will be "Interface xxx unknown" if the specified interface has not been created with an attach command. There will be no response if the command was successful.

Display Status Of
The NAT Logical Interface

Use of the ifconfig command with no arguments will display summary status and counts of all defined interfaces. Use of the ifconfig command with the name of an interface as the lone parameter will display the current status and counts of the specified interface.
This page was last modified on 1 October, 1995.

This information is proprietary to Network Safety Corporation. Network Safety, WebElite, DialNAT and NetNAT are trademarks of Network Safety Corporation. For information on our products and services, please contact our sales department.

This page was prepared using WebElite, our professional editor for the Web.