ASYNC ROUTER AR-P, AR-5, AND SYNC ROUTER REFERENCE MANUAL

4.6 ifconfig

Name

Configure an interface

Syntax

ifconfig iface [address addr[/bits]] [broadcast addr]

[linkaddr directory_number [/SPID]] [metric [hops]]

[mtu size]

[netmask mask]

[peer addr [/bits]]

[rip [{active passive off}]] [speed [bps]]

[{up down}]

Description

The ifconfig command is used to assign an IP address to a network interface and/or to configure network interface parameters. ifconfig commands are generated from the Router’s config dialogue to define the network address of each interface present on the router. It may also be used at a later time to redefine other operating parameters. Used without options, ifconfig displays the current configuration of all interfaces.

For the Ethernet interface, the iface parameter is eth0. For the modem interfaces, the iface parameter is modem0, modem1,...modem4, depending on the model of your Router.

Addresses are expressed in the standard Internet dotted-quad notation. If the /bits parameter is appended to the address, then this is the number of contiguous bits that are used as a subnet netmask. If the number of bits is not specified, 32 bits are assumed as a default.

If the iface is currently up, you may only specify the down option.

Subcommands and parameters

ifconfig iface

ifaceeth0, modem0-4, sync0

address addr [/bits]]

Specify the address to use for this interface. This will also add a route to the routing table for this interface.

addr—Specify address for interface

/bits—Specify the number of contiguous bits to use as a subnet mask. If the number of bits is not specified, 32 bits are assumed as a default.

[broadcast addr]

addr—Specify the address to use to represent broadcasts on the network. The default broadcast address is the address with a host part of all 1’s. The address can be specified as a single hexadecimal number with a leading 0x or with a dot-notation address.

221

Page 221
Image 221
Black Box LRA001A-R2, LRS002A-R2, LRA005A-R2 manual 221