13.3 不同终端使用同一unix主机上的不同业务
『需求』
对公储蓄业务均在一台unix主机上运行;终端0/1/2应用对公业务,终端3/4/5/6/7应用储蓄业务
【Router】
当前路由器提示视图 |
依次输入的配置命令,重要的命令红色突出显示 |
简单说明 |
|
! |
适用版本vrp1.74及1.44 |
[Router] |
undo login hwtty |
|
[Router] |
tty enable |
使能终端接入服务功能 |
[Router] |
tty-app sender connect 0-2 10.0.1.1 9001 1 duigong |
0-2对公 |
[Router] |
tty-app sender connect 3-7 10.0.1.1 9000 1 chuxu |
3-7储蓄 |
|
! |
|
[Router] |
interface Serial0 |
|
[Router-Serial0] |
clock DTECLK1 |
|
[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 0 0 0 16000 |
请注意数字颜色 |
[Router-Async0] |
link-protocol ppp |
紫色与下面ttyd.conf里对应 |
|
! |
红色就写0 |
[Router] |
interface Async1 |
蓝色与上面tty-app里的对应 |
[Router-Async1] |
undo modem |
|
[Router-Async1] |
async mode tty 1 0 1 16000 |
|
[Router-Async1] |
link-protocol ppp |
|
|
! |
|
[Router] |
interface Async2 |
|
[Router-Async2] |
undo modem |
|
[Router-Async2] |
async mode tty 2 0 2 16000 |
|
[Router-Async2] |
link-protocol ppp |
|
|
! |
|
[Router] |
interface Async3 |
|
[Router-Async3] |
undo modem |
|
[Router-Async3] |
async mode tty 3 0 3 16000 |
|
[Router-Async3] |
link-protocol ppp |
|
|
! |
|
[Router] |
interface Async4 |
|
[Router-Async4] |
undo modem |
|
[Router-Async4] |
async mode tty 4 0 4 16000 |
|
[Router-Async4] |
link-protocol ppp |
|
|
! |
|
[Router] |
interface Async5 |
|
[Router-Async5] |
undo modem |
|
[Router-Async5] |
async mode tty 5 0 5 16000 |
|
[Router-Async5] |
link-protocol ppp |
|
|
! |
|
[Router] |
interface Async6 |
|
[Router-Async6] |
undo modem |
|
[Router-Async6] |
async mode tty 6 0 6 16000 |
|
[Router-Async6] |
link-protocol ppp |
|
|
! |
|
|
interface Async7 |
|
[Router] |
undo modem |
|
[Router-Async7] |
async mode tty 7 0 7 16000 |
|
[Router-Async7] |
link-protocol ppp |
|
|
! |
|
|
quit |
|
[Router] |
ip route-static 0.0.0.0 0.0.0.0 10.0.0.2 preference 60 |
|
|
! |
|
|
return |
|
『unix主机10.0.1.1储蓄』的ttyd1.conf内容:
severport 9000
mode 1
sendsize 512
readsize 300
interval 200
nodelay 1
debug 0
ttyp50 10.0.0.1 3
ttyp51 10.0.0.1 4
ttyp52 10.0.0.1 5
ttyp53 10.0.0.1 6
ttyp54 10.0.0.1 7
『unix主机10.0.1.1对公』的ttyd2.conf内容:
severport 9001
mode 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