X.25 PAD configuration example
Network requirements
As shown in Figure 149, configure X.25 PAD so that Router B could place X.25 PAD calls to log in to Router A and then configure Router A.
Figure 149: Network diagram
![](images/image145.png)
Configuration procedure
Configure Router A:
# Add a PAD user.
<RouterA> system-view [RouterA] local-user pad1 [RouterA-luser-pad1] password simple pad1 [RouterA-luser-pad1] service-type pad [RouterA-luser-pad1] quit
# Access a user interface, and on it configure authentication mode and protocol type.
[RouterA] user-interface vty 0 4 [RouterA-ui-vty0-4] authentication-mode scheme [RouterA-ui-vty0-4] protocol inbound pad [RouterA-ui-vty0-4] quit
# Configure domain user X.25 to use the local authentication scheme.
[RouterA] domain x25 [RouterA-isp-x25] authentication ppp local [RouterA-isp-x25] quit
# Configure the link layer protocol of the interface Serial 2/0 as X.25. Configure the interface to operate in DTE mode.
[RouterA] interface serial 2/0 [RouterA-Serial2/0] link-protocol x25 dte
# Assign an X.121 address for the interface.
[RouterA-Serial2/0] x25 x121-address 1
Configure Router B:
# Configure the link layer protocol of the interface Serial 2/0 as X.25. Configure the interface to operate in DCE mode.
<RouterB> system-view [RouterB] interface serial 2/0 [RouterB-Serial2/0] link-protocol x25 dce
# Assign an X.121 address for the interface.
[RouterB-Serial2/0] x25 x121-address 2 [RouterB-Serial2/0] quit [RouterB] quit
# Place an X.25 PAD call to Router A.
<RouterB> pad 1 Calling 1 ... OK ****************************************************************************** * Copyright (c) 2004-2010 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ****************************************************************************** Login authentication Username:pad1 Password: <——Input password pad1