Issue Description
there's requirement to test PAD over XoT in X.25 envirnoment , the topolgoy is shown on attached . there's Huawei1812 router with version V1.74 , X.25 switching and XoT function enabled .
customer hope PAD from C*****3 via XoT to C*****1, but not with exactly X.25 address .
for instance , C*****1 can use X.25 address with prefix address 111* , C*****3 can PAD it with any one address from scope of 1110-1119 ,
but actually failed .
the accossiated configuration sample is like below :
C*****1:
Building configuration...
Current configuration : 782 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Cisco1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$WNs5$sZ52quLxF.5rX79SOc/Cf0
!
aaa new-model
!
!
aaa authentication login default local
!
aaa session-id common
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
ip cef
!
x25 routing
username admin secret 5 $1$Cr9j$e/U0nxxreX81AKhqLRVR6/
!
!
controller E1 0
!
controller E1 1
!
!
!
interface FastEthernet0
no ip address
speed auto
!
interface Serial0
no ip address
encapsulation x25 dce
x25 address 1112
clock rate 9600
!
no ip http server
!
!
!
!
!
x25 route 555 interface Serial0
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
Huawei1812:
[Router]dis cur
Now create configuration...
Current configuration
!
version 1.74
info-center console
firewall enable
aaa-enable
aaa authentication-scheme login default none
login-method authentication-mode con 1
aaa accounting-scheme optional
x25 switching
!
interface Aux0
async mode flow
flow-control none
link-protocol ppp
!
interface Ethernet0
ip address 10.10.10.1 255.255.255.252
!
interface Serial0
clock DTECLK1
link-protocol x25 dte ietf
x25 x121-address 11
!
interface Serial1
link-protocol ppp
!
quit
x25 switch svc .* xot 10.10.10.2
x25 switch svc 111* interface Serial 0
C****2
sh run
Building configuration...
Current configuration : 821 bytes
!
version 12.4
service pad to-xot
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname c*****2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$0YRm$y6URn1pp7fJl36NDsFu3j/
!
aaa new-model
!
!
aaa authentication login default local
!
aaa session-id common
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
ip cef
no ip domain lookup
!
x25 routing
username admin secret 5 $1$nBGO$BAqx6y6e7IPpZ53mji9Tt.
!
!
!
!
interface FastEthernet0
ip address 10.10.10.2 255.255.255.252
speed auto
!
interface Serial0
no ip address
encapsulation x25 dce
clock rate 9600
!
no ip http server
!
!
!
!
!
x25 route 555 interface Serial0
x25 route 111* xot 10.10.10.1
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
end
c*****3#sh run
Building configuration...
Current configuration : 1094 bytes
!
version 12.4
service pad to-xot
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname cisco3
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$iUcc$TNQybttRz6vzjYlbx760y/
!
aaa new-model
!
!
aaa authentication login default local
!
aaa session-id common
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
ip cef
!
x25 routing
username admin secret 5 $1$neP0$G0ym8m5ALBXckh.N/Ylu01
!
!
interface Ethernet0
no ip address
half-duplex
!
interface FastEthernet0
ip address 172.12.10.20 255.255.255.0
speed auto
!
interface Serial0
no ip address
!
interface Serial1
no ip address
encapsulation x25
x25 address 555
!
no ip http server
!
!
!
!
!
x25 route 1112 interface Serial1
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
Handling Process
according the manual description of pattern rule for X.25 , it's found custerm has misunderstood sybmol "*"
the pattern rule is like below:
* The asterisk (*) wildcard matches zero or more occurrences of the preceding character. for example: fo* fo, foo, fooo
. The dot (.) matches any single character.for example l.st last, lbst, lost
so the right symbol meet requirement should be "." not "*".
with the suggestion , cusotmer achieved their requirement .
Root Cause
before this problem , it worked properly if c*****3 pad c*****1 with eactly x.25 address configured . so the problem is mainly caused by pattern rule configured among huawei and C routers .
and customer used command "X.25 switch svc 111* serial 0"
Suggestions
normally we just follow the common understand as first sight ,
for example , "*" in BGP regular expression means any character and from zero or more bits . but in huawei X.25 envirnoment , it means the character of preceding one and from zero or more bits .
so while such problem ocurred , operation manual is good guide to solve it.