aux-to-console
---------------
connect the aux to the con with a blue (null modem) cisco cable
r1: primary router connects its aux to r2s console
r2: secondary connected from its console to r1s aux
r1(aux) <----> r2(con)
on r1
int lo0
ip address 1.1.1.1 255.255.255.255
no shut
line aux 0
transport input telnet
sh line | include AUX
take the first number and add it to 2000
then telnet to the lo0 ip on that port
example:
r1#sh line | include AUX
1 AUX 9600/9600 - - - - - 4 0 0/0 -
r1#telnet 1.1.1.1 2001
Trying 1.1.1.1, 2001 ... Open
r2#
magic times
aux-to-aux
----------
again with cisco blue null modem cable
connect their auxs together
r1:
r1(config)#int async 1
r1(config-if)#ip address 2.2.2.1 255.255.255.252
r1(config-if)#encapsulation ppp
r1(config-if)#async dynamic routing
r1(config-if)#async mode dedicated
r1(config-if)#exit
r1(config)#line aux 0
r1(config-line)#modem inout
r1(config-line)#transport input all
r1(config-line)#speed 38400
r1(config-line)#flowcontrol hardware
r1(config-line)#^Z
r1#copy run start
r2:
r2(config)#int async 1
r2(config-if)#ip address 2.2.2.2 255.255.255.252
r2(config-if)#encapsulation ppp
r2(config-if)#async dynamic routing
r2(config-if)#async mode dedicated
r2(config-if)#exit
r2(config)#line aux 0
r2(config-line)#modem inout
r2(config-line)#transport input all
r2(config-line)#speed 38400
00:26:16: %LINK-3-UPDOWN: Interface Async1, changed state to up
r2(config-line)#flowcontrol hardware
00:26:18: %LINEPROTO-5-UPDOWN: Line protocol on Interface Async1, changed state to up
r2(config-line)#^Z
r2#ping 2.2.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/75/76 ms
dialers, aux, async interfaces and other convaluded chaos
---------------------------------------------------------
erased config from aux-to-aux, but keep the aux ports connected
via the blue cisco null modem cable aux-to-aux and....
r1 config:
r1#sh run
Building configuration...
Current configuration : 1073 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname r1
!
!
username r2 password 0 cisco
ip subnet-zero
!
chat-script vmodem ""
!
!
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
no fair-queue
!
interface Serial1
no ip address
shutdown
!
interface Async1
no ip address
encapsulation ppp
no ip route-cache
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no fair-queue
ppp authentication chap
!
interface Dialer0
ip address 172.16.1.1 255.255.255.0
encapsulation ppp
dialer pool 1
dialer remote-name r2
dialer string 5551212
dialer-group 1
ppp authentication chap
!
ip classless
ip route 0.0.0.0 0.0.0.0 Async1
ip http server
!
dialer-list 1 protocol ip permit
!
!
line con 0
logging synchronous
line aux 0
exec-timeout 0 0
script dialer vmodem
modem Host
transport input all
speed 38400
flowcontrol hardware
line vty 0 4
login
!
end
r2 config:
r2#sh run
Building configuration...
Current configuration : 961 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname r2
!
!
username r1 password 0 cisco
ip subnet-zero
!
chat-script vmodem ""
!
!
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
no fair-queue
!
interface Serial1
no ip address
shutdown
!
interface Async1
no ip address
encapsulation ppp
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
ppp authentication chap
!
interface Dialer0
ip address 172.16.1.2 255.255.255.0
encapsulation ppp
dialer pool 1
dialer remote-name r1
dialer string 5551212
dialer-group 1
ppp authentication chap
!
ip classless
ip http server
!
dialer-list 1 protocol ip permit
!
!
line con 0
logging synchronous
line aux 0
exec-timeout 0 0
script dialer vmodem
modem Dialin
transport input all
speed 38400
flowcontrol hardware
line vty 0 4
login
!
end
the fun times:
r1#debug dialer
Dial on demand events debugging is on
r1#ping 172.16.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:
00:55:04: As1 DDR: rotor dialout [priority]
00:55:04: As1 DDR: Dialing cause ip (s=172.16.1.1, d=172.16.1.2)
00:55:04: As1 DDR: Attempting to dial 5551212
00:55:04: CHAT1: Attempting async line dialer script
00:55:04: CHAT1: Dialing using Modem script: vmodem & System script: none
00:55:05: CHAT1: process started
00:55:05: CHAT1: Asserting DTR
00:55:05: CHAT1: Chat script vmodem started
00:55:05: CHAT1: Chat script vmodem finished, status = Success.
00:55:07: %LINK-3-UPDOWN: Interface Async1, changed state to up
00:55:07: As1 DDR: Dialer statechange to up
00:55:07: %DIALER-6-BIND: Interface As1 bound to profile Di0
00:55:07: As1 DDR: Dialer call has been placed
00:55:07: As1 DDR: dialer protocol up.!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 76/76/76 ms
r1#
00:55:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface Async1, changed state to up
r1#ping 172.16.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/76/76 ms
r1#sh dialer
As1 - dialer type = IN-BAND ASYNC NO-PARITY
Dialer pool 1, priority 0
Idle timer (120 secs), Fast idle timer (20 secs)
Wait for carrier (30 secs), Re-enable (15 secs)
Dialer state is data link layer up
Dial reason: ip (s=172.16.1.1, d=172.16.1.2)
Interface bound to profile Di0
Time until disconnect 117 secs
Current call connected 00:00:10
Connected to 5551212 (r2)
Di0 - dialer type = DIALER PROFILE
Idle timer (120 secs), Fast idle timer (20 secs)
Wait for carrier (30 secs), Re-enable (15 secs)
Dialer state is data link layer up
Number of active calls = 1
Dial String Successes Failures Last DNIS Last status
5551212 6 0 00:00:10 successful Default
|