December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to connect two serial devices through an IP network.
STUN provides the ability to emulate an SDLC circuit through an IP network. To simply connect two SDLC or two HDLC ports on different routers, you can use the following:
Stun-A#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Stun-A(config)#interfaceStun-A(config-if)#Loopback0ip addressStun-A(config-if)#10.1.15.5 255.255.255.252exitStun-A(config)#stun peer-nameStun-A(config)#10.1.15.5stun protocol-group1basicStun-A(config)#interfaceStun-A(config-if)#Serial1encapsulation stunStun-A(config-if)#nrzi-encodingStun-A(config-if)#clock rateStun-A(config-if)#19200stun groupStun-A(config-if)#1stun route all tcpStun-A(config-if)#10.1.15.9exitStun-A(config)#endStun-A#
And this router would connect this serial port to a port on a second router that is configured as follows:
Stun-B#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Stun-B(config)#interfaceStun-B(config-if)#Loopback0ip addressStun-B(config-if)#10.1.15.9 255.255.255.252exitStun-B(config)#stun peer-nameStun-B(config)#10.1.15.9stun protocol-group1basicStun-B(config)#interfaceStun-B(config-if)#Serial1encapsulation stunStun-B(config-if)#nrzi-encodingStun-B(config-if)#clock rateStun-B(config-if)#19200stun groupStun-B(config-if)#1stun route all tcpStun-B(config-if)#10.1.15.5exitStun-B(config)#endStun-B#
You can also do more interesting things with STUN. ...