### wan

Use the wan command to

- Initiate and control PPP, SLIP, CSLIP, and frame relay connections

- Display the status of current connections

Anybody can issue the wan command to display the status of WAN connections. Root privileges are required to initiate or control WAN connections.

Also see the set modem command.

#### Command Syntax

##### Initiate and Control Syntax

Enter the wan command as shown below to initiate and control WAN connections:

> `wan [close=filtername] [initmodem=range]` `[start=filtername] [testmodem=range]` `[verify={all|username}]`

##### Display Syntax

Enter the wan command as shown below to display the status of current WAN connections:

> `wan [range=range]`

#### Command Fields

Command Field | Description
close | Closes an outbound connection. The connection is identified by the name of the filter (see the set filter command) used to bring up the connection.
initmodem | Executes the modem initialization script associated with the port or ports specified.
range | Specifies a port or range of ports.
start | Places the connection in the start-up condition. The connection is identified by the name of filter (see the set filter command) used to bring the connection up.
testmodem | Executes the modem test script associated with the port or ports specified. See the discussion on the set modem command for information on test scripts.
verify | all - verifies that that all connections are associated with real users, that is, users that are defined in the configuration. wanname - verifies that the user has been defined in the configuration. Note: Only incorrectly configured WAN interfaces produce a message in response to this command. If WAN interfaces are configured correctly, no message is returned.

#### Command Examples

##### Closing a WAN Interface

In this example, the wan command closes a WAN connection.

> `wan close=filter-ppp01`

##### Starting a WAN Interface

In this example, the wan command initiates a WAN connection.

> `wan start=filter-ppp01`

##### Displaying WAN Status Information

In this example, the wan command displays the status of the connection on port 2.

> `wan range=2`