kernel-small-debug-shell-net-telnet.md 3.2 KB
Newer Older
D
duangavin123 已提交
1
# telnet<a name="EN-US_TOPIC_0000001179845941"></a>
W
wenjun 已提交
2

N
NEEN 已提交
3 4
-   [Command Function](#section3551830123913)
-   [Syntax](#section14897133233918)
D
duangavin123 已提交
5
-   [Parameters](#section977718353392)
N
NEEN 已提交
6 7 8 9
-   [Usage](#section134991538183916)
-   [Example](#section1097414426398)
-   [Output](#section11846624191310)

W
wenjun 已提交
10 11 12 13 14 15 16 17
## Command Function<a name="section3551830123913"></a>

This command is used to enable or disable the Telnet server service.

## Syntax<a name="section14897133233918"></a>

telnet \[_on | off_\]

D
duangavin123 已提交
18
## Parameters<a name="section977718353392"></a>
W
wenjun 已提交
19

D
duangavin123 已提交
20
**Table  1**  Parameter description
W
wenjun 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

<a name="table2844mcpsimp"></a>
<table><thead align="left"><tr id="row2850mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p2852mcpsimp"><a name="p2852mcpsimp"></a><a name="p2852mcpsimp"></a><strong id="b980352831178"><a name="b980352831178"></a><a name="b980352831178"></a>Parameter</strong></p>
</th>
<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p2854mcpsimp"><a name="p2854mcpsimp"></a><a name="p2854mcpsimp"></a><strong id="b385431525416"><a name="b385431525416"></a><a name="b385431525416"></a>Description</strong></p>
</th>
<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p2856mcpsimp"><a name="p2856mcpsimp"></a><a name="p2856mcpsimp"></a><strong id="b19001516841178"><a name="b19001516841178"></a><a name="b19001516841178"></a>Value Range</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="row2857mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p2859mcpsimp"><a name="p2859mcpsimp"></a><a name="p2859mcpsimp"></a>on</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p2861mcpsimp"><a name="p2861mcpsimp"></a><a name="p2861mcpsimp"></a>Enables the Telnet server service.</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p2863mcpsimp"><a name="p2863mcpsimp"></a><a name="p2863mcpsimp"></a>N/A</p>
</td>
</tr>
<tr id="row2864mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p2866mcpsimp"><a name="p2866mcpsimp"></a><a name="p2866mcpsimp"></a>off</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p2868mcpsimp"><a name="p2868mcpsimp"></a><a name="p2868mcpsimp"></a>Disables the Telnet server service.</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p2870mcpsimp"><a name="p2870mcpsimp"></a><a name="p2870mcpsimp"></a>N/A</p>
</td>
</tr>
</tbody>
</table>

## Usage<a name="section134991538183916"></a>

-   Before enabling Telnet, ensure that the network driver and network protocol stack have been initialized and the NIC of the board is in the  **link up**  state.
-   Currently, multiple clients \(Telnet + IP\) cannot connect to the development board at the same time.

D
duangavin123 已提交
53
    >![](../public_sys-resources/icon-notice.gif) **NOTICE:** 
D
duangavin123 已提交
54
    >Telnet is used for debugging and disabled by default. Do not use it in formal products.
W
wenjun 已提交
55 56 57 58


## Example<a name="section1097414426398"></a>

D
duangavin123 已提交
59
Run  **telnet on**.
W
wenjun 已提交
60 61 62 63

## Output<a name="section11846624191310"></a>

**Figure  1**  Output of  **telnet on**<a name="fig127221042155418"></a>  
D
duangavin123 已提交
64
![](figure/output-of-telnet-on.png "output-of-telnet-on")
W
wenjun 已提交
65