Cisco Router Dial On-Demand using Analog Modem
This connection use an analog modem over PSTN line as WAN link. A connection will created automatically when one of site need a communication to remote site. And disconnect automatically once meet idle times. This connection will reapeat every times communication inter site needed. Each site can initiate/create dialup connection.
Requirement:
- Cisco router with serial interface (support async mode).
- Analog modem (RS232 interface).
- Serial cable (DB60 to RS232).
- PSTN line.
ROUTER A
hostname Router-A
!
enable password cisco
!
username ciscouser1 password ciscopass
!
chat-script dial “” “atdtT” TIMEOUT 60 CONNECT c
!
interface Ethernet 0
ip address 10.0.33.250 255.255.255.0
!
interface Serial 0 <= plug modem here
physical-layer async
ip address 10.0.253.30 255.255.255.252
encapsulation ppp
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer idle-timeout 60
dialer wait-for-carrier-time 200
dialer map ip 10.0.253.29 name ciscouser1 modem-script dial +10218560620 <= remote number
dialer-group 1
peer default ip address 10.0.253.29
ppp authentication chap pap
!
router eigrp 1
network 10.0.0.0
!
no ip classless
ip route 10.0.2.0 255.255.255.0 10.0.253.29 150
access-list 103 deny eigrp any host 255.255.255.255
access-list 103 permit ip any any
dialer-list 1 protocol ip list 103
!
line con 0
line 2
exec-timeout 0 0
modem InOut
modem autoconfigure discovery
speed 115200
flowcontrol hardware
!
line vty 0 4
password cisco
login
!
end
===
ROUTER B
hostname Router-B
!
enable password cisco
!
username ciscouser2 password ciscopass
chat-script dial “” “atdtT” TIMEOUT 60 CONNECT c
!
interface Ethernet 0
ip address 10.0.2.251 255.255.255.0
!
interface Serial 0 <= plug modem here
physical-layer async
ip address 10.0.253.29 255.255.255.252
encapsulation ppp
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer idle-timeout 60
dialer wait-for-carrier-time 200
dialer map ip 10.0.253.30 name ciscouser1 modem-script dial +10218195240 <= remote number
dialer-group 1
peer default ip address 10.0.253.30
ppp authentication chap pap
!
router eigrp 1
network 10.0.0.0
!
no ip classless
ip route 10.0.33.0 255.255.255.0 10.0.253.30 150
access-list 103 deny eigrp any host 255.255.255.255
access-list 103 permit ip any any
dialer-list 1 protocol ip list 103
!
line con 0
line 2
exec-timeout 0 0
modem InOut
modem autoconfigure discovery
speed 115200
flowcontrol hardware
!
line vty 0 4
password cisco
login
!
end
Popularity: 16% [?]

1 Trackback(s)
You must be logged in to post a comment.