扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
13.4 同一终端同时使用多种业务
『需求』
终端0/1可以处理储蓄,对公,记账,外汇四项业务
终端2/3可以处理储蓄,对公,记账三项业务
终端4/5可以处理储蓄,记账两项业务
终端6/7可以处理储蓄业务
切换按键为ctrl+6,对应的anscii值为30
业务
虚终端
终端
chuxu duigong jizhang waihui
0 0 1 2 3
1 0 1 2 3
2 0 1 2
3 0 1 2
4 0 1
5 0 1
6 0
7 0
当前路由器提示视图 依次输入的配置命令,重要的命令红色突出显示 简单说明
! 适用版本vrp1.74及1.44
[Router] undo login hwtty
[Router] tty enable 使能终端接入服务功能
[Router] tty-app sender connection 0 10.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 110.0.1.1 9001 1 duigong
[Router] tty-app sender connection 210.0.1.2 9002 1 jizhang
[Router] tty-app sender connection 310.0.1.2 9003 1 waihui
[Router] tty-app sender connection 410.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 510.0.1.1 9001 1 duigong
[Router] tty-app sender connection 610.0.1.2 9002 1 jizhang
[Router] tty-app sender connection 710.0.1.2 9003 1 waihui
[Router] tty-app sender connection 810.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 910.0.1.1 9001 1 duigong
[Router] tty-app sender connection 1010.0.1.2 9002 1 jizhang
[Router] tty-app sender connection 1110.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 1210.0.1.1 9001 1 duigong
[Router] tty-app sender connection 1310.0.1.2 9002 1 jizhang
[Router] tty-app sender connection 1410.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 1510.0.1.2 9002 1 jizhang
[Router] tty-app sender connection 16 10.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 1710.0.1.2 9002 1 jizhang
[Router] tty-app sender connection 1810.0.1.1 9000 1 chuxu
[Router] tty-app sender connection 1910.0.1.1 9000 1 chuxu
!
[Router] interface Serial0
[Router-Serial0] link-protocol ppp
[Router-Serial0] ip address 10.0.0.1 255.255.255.0
!
[Router] interface Async0
[Router-Async0] undo modem
[Router-Async0] async mode tty 000 请注意数字颜色
[Router-Async0] async mode tty 011 紫色与下面ttyd.conf里对应
[Router-Async0] async mode tty 022 绿色与上面表格对应
[Router-Async0] async mode tty 033 蓝色与上面tty-app里的对应
[Router-Async0] tty menu-key 30
[Router-Async0] link-protocol ppp
!
[Router] interface Async1
[Router-Async1] undo modem
[Router-Async1] async mode tty 104
[Router-Async1] async mode tty 115
[Router-Async1] async mode tty126
[Router-Async1] async mode tty 137
[Router-Async1] tty menu-key 30
[Router-Async1] link-protocol ppp
!
[Router] interface Async2
[Router-Async2] undo modem
[Router-Async2] async mode tty 208
[Router-Async2] async mode tty 219
[Router-Async2] async mode tty 2210
[Router-Async2] tty menu-key 30
[Router-Async2] link-protocol ppp
!
[Router] interface Async3
[Router-Async3] undo modem
[Router-Async3] async mode tty 3011
[Router-Async3] async mode tty 3112
[Router-Async3] async mode tty 3 213
[Router-Async3] tty menu-key 30
[Router-Async3] link-protocol ppp
!
[Router] interface Async4
[Router-Async4] undo modem
[Router-Async4] async mode tty 4014
[Router-Async4] async mode tty 4115
[Router-Async4] tty menu-key 30
[Router-Async4] link-protocol ppp
!
[Router] interface Async5
[Router-Async5] undo modem
[Router-Async5] async mode tty 5 016
[Router-Async5] async mode tty 5117
[Router-Async5] tty menu-key 30
[Router-Async5] link-protocol ppp
!
[Router] interface Async6
[Router-Async6] undo modem
[Router-Async6] async mode tty 6018
[Router-Async6] link-protocol ppp
!
[Router] interface Async7
[Router-Async7] undo modem
[Router-Async7] async mode tty 7019
[Router-Async7] link-protocol ppp
!
[Router-Async7] quit
[Router] ip route-static 0.0.0.0 0.0.0.0 10.0.0.2 preference 60
!
『unix主机10.0.1.1储蓄』的ttyd1.conf内容:
severport 9000
mode 1
screen 1
sendsize 512
readsize 300
interval 200
nodelay 1
debug 0
ttyp50 10.0.0.1 0
ttyp51 10.0.0.1 1
ttyp52 10.0.0.1 2
ttyp53 10.0.0.1 3
ttyp54 10.0.0.1 4
ttyp55 10.0.0.1 5
ttyp56 10.0.0.1 6
ttyp57 10.0.0.1 7
『unix主机10.0.1.1对公』的ttyd2.conf内容:
severport 9001
mode 1
screen 1
sendsize 512
readsize 300
interval 200
nodelay 1
debug 0
ttyp60 10.0.0.1 0
ttyp61 10.0.0.1 1
ttyp62 10.0.0.1 2
ttyp63 10.0.0.1 3
『unix主机10.0.1.2记账』的ttyd1.conf内容:
severport 9002
mode 1
screen 1
sendsize 512
readsize 300
interval 200
nodelay 1
debug 0
ttyp70 10.0.0.1 0
ttyp71 10.0.0.1 1
ttyp72 10.0.0.1 2
ttyp73 10.0.0.1 3
ttyp74 10.0.0.1 4
ttyp75 10.0.0.1 5
『unix主机10.0.1.2外汇』的ttyd2.conf内容:
severport 9003
mode 1
screen 1
sendsize 512
readsize 300
interval 200
nodelay 1
debug 0
ttyp80 10.0.0.1 0
ttyp81 10.0.0.1 1
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者