设为首页收藏本站language 语言切换
查看: 3206|回复: 0
收起左侧

[书籍] 华为Modem调制解调器管理配置

[复制链接]
 成长值: 63385
发表于 2022-4-25 10:19:55 | 显示全部楼层 |阅读模式
Modem简介
Modem又称为调制解调器,所谓调制,就是把数字信号转换成电话线上传输的模拟信号;解调,即把电话线上传输的模拟信号转换成数字信号。
Modem的概念
传统的数据通信系统是通过公共电话网进行通信的,公共电话网中传输的信号是模拟信号。随着Internet的迅速发展,目前,基于IP网络的通信系统得到了广泛的发展及应用。IP网络及终端中传输的信号是数字信号。在不改变原有公共电话网的基础上,为了实现IP网络与公共电话网的互通,出现了一种网络设备—调制解调器(Modem)。Modem的作用是实现模拟信号与数字信号的相互转换。
Modem是目前使用广泛的一种网络设备,但是由于Modem的厂家众多而且类型各异,虽然都支持业界标准的AT命令集,但在具体的实现和命令的细节上存在着或多或少的差别,这样给用户管理Modem带来了很大的困惑。为了方便管理,工业路由交换一体机提供了配置Modem功能,实现对Modem的良好管理和控制。

Modem的应用场景如图6-1所示,RouterA和RouterB通过Modem连接到PSTN网络,分别在RouterA和RouterB上配置Modem功能,可以实现Router在PSTN网络中的互通。当RouterA作为主叫方需要与RouterB进行数据传输时,RouterA会向ModemA下发AT指令来触发ModemA拨号,ModemA拨打对端号码,路由器B收到呼入信号后根据配置Modem是否自动应答来决定是否下发AT指令使ModemB摘机应答。图6-1  Modem组网图

                               
登录/注册后可看大图


设备提供的Modem管理功能
设备提供的Modem管理功能如下:
  • 配置Modem的呼入和呼出权限
  • 配置Modem的应答方式
  • 通过手工输入AT命令配置Modem
  • 配置设备通过Modem拨号接入PSTN示例组网需求
    如图6-2所示,RouterA和RouterB通过Modem连接到PSTN网络中。
    两公司需要通过现有的PSTN网络进行互联,双方都可以向对方请求连接,并且在有通信需求的时候才建立连接以节省费用。
    图6-2  配置设备通过Modem拨号接入PSTN示例组网图

                                   
    登录/注册后可看大图




    配置思路
    思路配置如下:
    • 在RouterA上配置接口Async2/0/0的IP地址、轮询DCC以及Modem的呼入呼出权限及应答方式等,实现RouterA可以向RouterB发起和接收呼叫连接。
    • 在RouterB上配置接口Async2/0/0的IP地址、轮询DCC以及Modem的呼入呼出权限及应答方式等,实现RouterB可以向RouterA发起和接收呼叫连接。







  • 操作步骤
    配置RouterA
    # 配置物理接口。

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] interface async 2/0/0
    [RouterA-Async2/0/0] async mode protocol
    [RouterA-Async2/0/0] ppp timer negotiate 10
    [RouterA-Async2/0/0] ip address 10.1.1.1 255.255.255.0
    [RouterA-Async2/0/0] quit
    [RouterA] ip route-static 20.1.1.1 32 async 2/0/0
    # 使能轮询DCC并配置DCC拨号控制列表以及与接口的关联。

    [RouterA] dialer-rule
    [RouterA-dialer-rule] dialer-rule 1 ip permit
    [RouterA-dialer-rule] quit
    [RouterA] interface async 2/0/0
    [RouterA-Async2/0/0] dialer enable-circular
    [RouterA-Async2/0/0] dialer-group 1
    [RouterA-Async2/0/0] dialer number 600152
    [RouterA-Async2/0/0] dialer timer wait-carrier 300
    [RouterA-Async2/0/0] quit
    # 查看物理接口对应的TTY用户接口编号。

    [RouterA] display user-interface
    Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int
      0    CON 0    9600       -     15    -           N     -
       9   TTY  9   9600       -     0     -           N     2/0/0
      10   TTY 10   9600       -     0     -           N     2/0/1
      11   TTY 11   9600       -     0     -           N     2/0/2
      12   TTY 12   9600       -     0     -           N     2/0/3
      13   TTY 13   9600       -     0     -           N     2/0/4
      14   TTY 14   9600       -     0     -           N     2/0/5
      15   TTY 15   9600       -     0     -           N     2/0/6
      16   TTY 16   9600       -     0     -           N     2/0/7
    + 129  VTY 0               -     15    4           N     -
      130  VTY 1               -     15    -           N     -
      131  VTY 2               -     15    -           N     -
      132  VTY 3               -     15    -           N     -
      133  VTY 4               -     15    -           N     -
      145  VTY 16              -     0     -           P     -
      146  VTY 17              -     0     -           P     -
      147  VTY 18              -     0     -           P     -
      148  VTY 19              -     0     -           P     -
      149  VTY 20              -     0     -           P     -
      150  Web 0    9600       -     15    -           A     -
      151  Web 1    9600       -     15    -           A     -
      152  Web 2    9600       -     15    -           A     -
      153  Web 3    9600       -     15    -           A     -
      154  Web 4    9600       -     15    -           A     -
      155  XML 0    9600       -     0     -           A     -
      156  XML 1    9600       -     0     -           A     -
      157  XML 2    9600       -     0     -           A     -
    UI(s) not in async mode -or- with no hardware support:
    1-32  41-128
      +    : Current UI is active.
      F    : Current UI is active and work in async mode.
      Idx  : Absolute index of UIs.
      Type : Type and relative index of UIs.
      Privi: The privilege of UIs.
      ActualPrivi: The actual privilege of user-interface.
      Auth : The authentication mode of UIs.
          A: Authenticate use AAA.
          N: Current UI need not authentication.
          P: Authenticate use current UI's password.
      Int  : The physical location of UIs.  
    # 配置Modem管理功能以实现路由器间互通。

    [RouterA] user-interface tty 9
    [RouterA-ui-tty9] shell
    [RouterA-ui-tty9] modem both
    [RouterA-ui-tty9] modem auto-answer
    [RouterA-ui-tty9] modem timer answer 60
    配置RouterB
    # 配置物理接口。

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] interface async 2/0/0
    [RouterB-Async2/0/0] async mode protocol
    [RouterB-Async2/0/0] ppp timer negotiate 10
    [RouterB-Async2/0/0] ip address 20.1.1.1 255.255.255.0
    [RouterB-Async2/0/0] quit
    [RouterB] ip route-static 10.1.1.1 32 async 2/0/0
    # 使能轮询DCC并配置DCC拨号控制列表以及与接口的关联。

    [RouterB] dialer-rule
    [RouterB-dialer-rule] dialer-rule 2 ip permit
    [RouterB-dialer-rule] quit
    [RouterB] interface async 2/0/0
    [RouterB-Async2/0/0] dialer enable-circular
    [RouterB-Async2/0/0] dialer-group 2
    [RouterB-Async2/0/0] dialer number 600151
    [RouterB-Async2/0/0] dialer timer wait-carrier 300
    [RouterB-Async2/0/0] quit
    # 查看物理接口对应的TTY用户接口编号。

    [RouterB] display user-interface
    Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int
      0    CON 0    9600       -     15    -           N     -
       9   TTY  9   9600       -     0     -           N     2/0/0
      10   TTY 10   9600       -     0     -           N     2/0/1
      11   TTY 11   9600       -     0     -           N     2/0/2
      12   TTY 12   9600       -     0     -           N     2/0/3
      13   TTY 13   9600       -     0     -           N     2/0/4
      14   TTY 14   9600       -     0     -           N     2/0/5
      15   TTY 15   9600       -     0     -           N     2/0/6
      16   TTY 16   9600       -     0     -           N     2/0/7
    + 129  VTY 0               -     15    4           N     -
      130  VTY 1               -     15    -           N     -
      131  VTY 2               -     15    -           N     -
      132  VTY 3               -     15    -           N     -
      133  VTY 4               -     15    -           N     -
      145  VTY 16              -     0     -           P     -
      146  VTY 17              -     0     -           P     -
      147  VTY 18              -     0     -           P     -
      148  VTY 19              -     0     -           P     -
      149  VTY 20              -     0     -           P     -
      150  Web 0    9600       -     15    -           A     -
      151  Web 1    9600       -     15    -           A     -
      152  Web 2    9600       -     15    -           A     -
      153  Web 3    9600       -     15    -           A     -
      154  Web 4    9600       -     15    -           A     -
      155  XML 0    9600       -     0     -           A     -
      156  XML 1    9600       -     0     -           A     -
      157  XML 2    9600       -     0     -           A     -
    UI(s) not in async mode -or- with no hardware support:
    1-32  41-128
      +    : Current UI is active.
      F    : Current UI is active and work in async mode.
      Idx  : Absolute index of UIs.
      Type : Type and relative index of UIs.
      Privi: The privilege of UIs.
      ActualPrivi: The actual privilege of user-interface.
      Auth : The authentication mode of UIs.
          A: Authenticate use AAA.
          N: Current UI need not authentication.
          P: Authenticate use current UI's password.
      Int  : The physical location of UIs.  
    # 配置Modem管理功能以实现路由器间互通。

    [RouterB] user-interface tty 9
    [RouterB-ui-tty9] shell
    [RouterB-ui-tty9] modem both
    [RouterB-ui-tty9] modem auto-answer
    [RouterB-ui-tty9] modem timer answer 60
    验证配置结果
    # RouterA和RouterB可以互相ping通。以RouterA为例,ping RouterB,有如下结果。

    [RouterA] ping 20.1.1.1
      PING 20.1.1.1: 56  data bytes, press CTRL_C to break
        Reply from 20.1.1.1: bytes=56 Sequence=1 ttl=255 time=90 ms
        Reply from 20.1.1.1: bytes=56 Sequence=2 ttl=255 time=50 ms
        Reply from 20.1.1.1: bytes=56 Sequence=3 ttl=255 time=50 ms
        Reply from 20.1.1.1: bytes=56 Sequence=4 ttl=255 time=40 ms
        Reply from 20.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms
      --- 20.1.1.1 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 30/52/90 ms
    配置文件
    RouterA的配置文件

    #
    sysname RouterA
    #                                                                     
    user-interface tty 9  
    shell
    modem both                  
    modem auto-answer                                                              
    modem timer answer 60                                                         
    #     
    interface Async2/0/0
    link-protocol ppp         
    ppp timer negotiate 10   
    ip address 10.1.1.1 255.255.255.0
    dialer enable-circular
    dialer-group 1   
    dialer number 600152
    dialer timer wait-carrier 300
    #                           
    dialer-rule
    dialer-rule 1 ip permit  
    #     
    ip route-static 20.1.1.1 255.255.255.255 Async2/0/0     
    #     
    return
    RouterB的配置文件

    #
    sysname RouterB
    #                                                                     
    user-interface tty 9  
    shell
    modem both                  
    modem auto-answer                                                              
    modem timer answer 60                                                         
    #     
    interface Async2/0/0
    link-protocol ppp         
    ppp timer negotiate 10   
    ip address 20.1.1.1 255.255.255.0
    dialer enable-circular
    dialer-group 2   
    dialer number 600151
    dialer timer wait-carrier 300
    #                           
    dialer-rule
    dialer-rule 2 ip permit  
    #     
    ip route-static 10.1.1.1 255.255.255.255 Async2/0/0     
    #     
    return




游客,如果您要查看本帖隐藏内容请回复






您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-1 19:39 , Processed in 0.083060 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表