Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.6.pdf
Скачиваний:
43
Добавлен:
23.08.2013
Размер:
2.64 Mб
Скачать

Editing ARM Networking .nv Files

B.2 Primary .nv file parameters

This section describes parameters that are used in the primary .nv file. These parameters are categorized according to the products that they support. These products are:

TCP/IP

DNS Client

DHCP Server

PPP

Modem

SNMP

Webserver.

The parameter names are self-explanatory to experienced TCP/IP programmers.

B.2.1 TCP/IP

For TCP/IP, the following parameters are needed for each of the interfaces:

Net interface: 0 IP address: 10.0.0.1 subnet mask: 255.0.0.0 gateway: 0.0.0.0

DHCP Client: NO

Note

The Net interface: parameter specifies the interface to which the following parameters apply. If the IP address has to be dynamically assigned via a DHCP Server, the DHCP Client must have the value YES.

B.2.2 DNS Client

To use the DNS Client, you initialize the following fields. Each parameter contains the IP address of a DNS Server.

DNS server: 1 - 204.156.128.1

DNS server: 2 - 204.156.128.10

DNS server: 3 - 204.156.128.20

The maximum number of DNS servers is defined by MAXDNSSERVERS in dns.h.

B.2.3 B.2.3 DHCP Server

To use the DHCP Server, you set the following parameter:

ARM DUI 0144B

Copyright © 1998-2001 ARM Limited. All rights reserved.

B-3

Editing ARM Networking .nv Files

Be local DHCP server: YES

This activates the DHCP Server. DHCP Server then picks the rest of the initialization values from the file dhcpsrv.nv as described in Secondary .nv file parameters on page B-6.

The DHCP Server also needs the file dhcprecs.nv for data storage, as described in

Secondary .nv file parameters on page B-6.

B.2.4 B.2.4 PPP

To use PPP, you set the following parameters:

PPP Console Logging: YES

PPP File Logging: NO

PPP keepalive: 0

PPP client timeout: 60

If VJ Compression is enabled in the source code, set:

PPP VJ request: YES

If CHAP is enabled in the source code, set:

CHAP secret: secret_words require CHAP: NO

If PAP is enabled in the source code, set:

require PAP: NO

B.2.5 Modem

To use the modem code, set the following values:

Phone Number: your_isp User Name: your_name

Password: your_password

Modem Init: AT&D2&C1 Idle line timeout: 600 login file: login.nv

log server file: server.nv

B-4

Copyright © 1998-2001 ARM Limited. All rights reserved.

ARM DUI 0144B

Editing ARM Networking .nv Files

B.2.6 SNMP

If SNMP agent is enabled, the following system parameters are needed:

SNMP Get Community: public

SNMP Set Community: public

SNMP sysContact: Somebody

SNMP sysName: ARM_networking_print_server

SNMP sysLocation: Lab

SNMP Trap target1: 10.0.0.85

SNMP Trap Community1: public

B.2.7 Webserver

Webserver needs to know the directory where HTML content is located:

http root: /

ARM DUI 0144B

Copyright © 1998-2001 ARM Limited. All rights reserved.

B-5