Arthur is the local router on e0 , with ISDN connection to
Jerom.


Arthur is advertising the LAT services
fred1
fred2
jerom1

jerom also happens to be on the same ethernet but is advertising
the service jerom so does not interfere with the proto translate.



Arthur takes lat connections destined for fred1, fred2 and jerom1 then
translates them to tcp, opens the isdn link, then jerom receives
the tcp connection , translates them to lat, then opens a lat
connection to the (locally defined on vty line) service jerom.



arthur config


Current configuration:
!
version 11.2
service timestamps debug uptime
service udp-small-servers
service tcp-small-servers
!
hostname arthur
!
enable password 
!
username wiske password 7 060506324F41
username jerom password 7 0605002F5E4F0D
isdn switch-type basic-net3
!
interface Ethernet0
 description ip address 171.68.143.98 255.255.255.0
 ip address 171.68.143.98 255.255.255.0
 lat enabled				<--- so that we see Lat services.
!
interface Serial0
 no ip address
 shutdown 
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
interface BRI0
 ip address 141.245.42.2 255.255.255.0 secondary
 ip address 141.245.41.2 255.255.255.0
 encapsulation ppp
 dialer map ip 141.245.42.1 name jerom 212    <-- '42.1' is "over there"
 dialer-group 1
 no cdp enable
 ppp authentication chap
!
no ip classless
ip route 141.245.42.1 255.255.255.255 BRI0
ip route 141.245.42.3 255.255.255.255 141.245.42.1 10 <--- '42.3' is via '42.1'
ip rsvp isi-flowspec				
!
snmp-server community public RO
dialer-list 1 protocol ip permit
!         
translate lat FRED1 tcp 141.245.42.3 port 4001
translate lat FRED2 tcp 141.245.42.3 port 4002
translate lat JEROM1 tcp 141.245.42.3 port 4003
!
! The above statements take Lat packets, strip out the user data, wrap it 
! in TCP packets, then forward them to the respective IP addresses and ports.
! I tend to use a non-existant IP address, whose subnet belongs to the remote
! router. This forces the remote router to actually look at the packetss
! instead of just fast switching them out onto the ethernet.
!
line con 0
line aux 0
line vty 0 4
 login
!
end



Jerom config


Current configuration:
!
version 11.2
service timestamps debug uptime
service udp-small-servers
service tcp-small-servers
!
hostname jerom
!
enable password 
!
username arthur password 7 104D0617171616
no ip domain-lookup
isdn switch-type basic-net3
!
interface Ethernet0
 ip address 171.68.143.99 255.255.255.0
 lat enabled			<---- We too can "do" lat
 no mop enabled
!
interface Serial0
 no ip address
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
interface BRI0
 ip address 141.245.42.1 255.255.255.0 secondary  <---- subnet '42' exists
 ip address 141.245.41.1 255.255.255.0			on this router.
 encapsulation ppp
 dialer map ip 141.245.42.2 name arthur 213
 dialer-group 1
 ppp authentication chap
!
no ip classless
ip route 141.245.42.2 255.255.255.255 BRI0
ip route 171.68.0.0 255.255.0.0 171.68.143.1
ip route 192.135.243.0 255.255.255.0 171.68.143.1
ip rsvp isi-flowspec
lat service JEROM rotary 1
lat service JEROM enabled
!
snmp-server community public RO
dialer-list 1 protocol ip permit
!
translate tcp 141.245.42.3 port 4001 lat FRED node FRED1
translate tcp 141.245.42.3 port 4002 lat FRED node FRED2
translate tcp 141.245.42.3 port 4003 lat JEROM
!
! If we get a TCP packet destined for '42.3 , which terminates on this
! router, we strip out the userdata and encapsulate it into a Lat 
! packet, then make a Lat connection to the specified service and node
!
banner motd ^C
--------------------------------------------------------------------
routername : jerom
model      : 2503
location   : REMOTE
ip E0      : 171.68.143.99
bri nr.    : 212
--------------------------------------------------------------------
^C
!
line con 0
 exec-timeout 0 0
line aux 0
line vty 0 2
 password 
 login
 rotary 1
line vty 3 4
 password 
 login
!
end
 



debug sample with debug

dialer
proto translate



arthur#show lat servi
Service Name     Rating   Interface  Node (Address)
FRED1                 5   Local
FRED2                 5   Local
JEROM                 3   Ethernet0  JEROM (0000.0c31.b4a6)
JEROM1                5   Local
arthur#debug dialer
Dial on demand events debugging is on
arthur#debug translate 
Protocol Translation debugging is on
arthur#lat jerom1
Trying JEROM1...Open
Trying 141.245.42.3, 4003 ... 
15:29:32: lattcp2: fork 38 started
15:29:32: BRI0: Dialing cause ip (s=141.245.41.2, d=141.245.42.3)
15:29:32: BRI0: Attempting to dial 212
%LINK-3-UPDOWN: Interface BRI0:1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to up
%ISDN-6-CONNECT: Interface BRI0:1 is now connected to 212 jeromOpen
Trying JEROM...Open
 
--------------------------------------------------------------------
routername : jerom
model      : 2503
location   : REMOTE
ip E0      : 171.68.143.99
bri nr.    : 212
--------------------------------------------------------------------
 
 
User Access Verification
 
Password: 
jerom>
jerom>


and on jerom


jerom#debug dialer
Dial on demand events debugging is on
jerom#debug trans
Protocol Translation debugging is on
jerom#
%LINK-3-UPDOWN: Interface BRI0:1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to up
%ISDN-6-CONNECT: Interface BRI0:1 is now connected to 213 arthur
15:29:44: tcplat2: fork started
15:29:44: tcplat2: queuemax = 30
jerom#