Hung din céu hinh cae chic nang ca ban ella Cisco router
Dialer interface la mét interface 40 6 thé bao gbm async interface hay group asyne
interface. Tat c& céc lénh st dyng cho async interface hay group async interface déu c6
é 4p dung cho dialer interface.
igt ding dé khdi tao dialer interface.
Céc lgnh sau day 18 cdc lénh dac
Lenh Me ta
Router(contig)# interface dialer number Tao m@t dialer interface ding dé cu hinh rotary
Router(contig-if}# dialer rotary-group number _| Bt mét interface vat ly vao trong mdt dialer
rotary group Lénh nay dat 8 cc interface thanh
vign cua dialer rotary-group.
Sau khi g6 lénh nay tai cdc interface thanh vién,
cc interface thanh vién sé nhan duge cau hinh
tong ty nhu cu hinh cia dialer interface.
Bang 5.12: Cac Iénh interface dialer
Vi dy mét két di nhu hinh 5.15:
tot. 126 tst.t08.1262 “See
N 9262222
rsnw
7 ‘son
A
oe, oeetttt
ron 108 1263
aris0140
Hinh 6.23: Sa a két ndi ding rotary-group
Trong hinh router 4000 ¢6 04 interface BRI (ISDN). Céc interface nay duge nhém thanh
rotary group dé linh dong trong viée quay sé ra va nhan cube gol tu nhibu két néi bén
ngoai (trong hinh 1a 02 két néi )
Cu hinh cho Cisco 4000:
Isdn switch-type basic-net3
Ip router 171.68.12.0 256.255.255.0 131.108.126.2
Ip router 171.68.14.0 255.255.255.0 131.108.1263,
Dialer-ist 2 protocol ip permit
Username 2500-A password cisco
Username 2500-8 password cisco
'
Interface dialer 3. (ta0 dialer interface 3)
ip addross 131.108.126.1
encapsulation ppp
ppp authentication chap
dialer map ip 131.108.126.2 name 2500-A 3262222
dialer map ip 181.108.126.3 name 2500-A 3263333
dialer-group 2
Trang 81/94Huéng dn céu hinh c&e chic nang co ban olla Cisco router
dialer load-threshold 160,
dialor fast-idlo 15
dialer idle-time-out 120
1
intbrio
dialer rotary-group 3 (gan intertace BRO vao dialer inetertace 3)
intbris
dialer rotary-group 3 (gan interface BRS vao dialer ineterface 3)
Cu hinh cho Cisco 2500-8
Isdn switch-type basio-not3
Ip route 131.108.124.0 255.255.255.0 131.108.1261
Dialer-ist 2 protocol ip permit
Hostname 2500-B
Username 4000 password cisco
H
interface brio
encapsulation ppp
pp authentication chap
ip address 131.108.126.3 255.255.2550
dialer-group 2
dialer load-threshold 160
dllaer map ip 131.108.126.1 name 4000 3261111
dialer idle-tiomeout 120
Cau hinh nhu trén cho phép 04 BRI interface hoat déng dudi sy digu khién cua dialer
interface. Khi cé yéu cu két néi ra ngoai, dialer interface sé chon bat ky mot BRI
interface nao cdn ranh dé thye hién quay s6. Khi cé cude goi vao va néu sit dung dich vy
trugt sé cila ISDN (04 dudng véi 01 sé duy nhat), dialer interface cling sé phan bé cudc
‘g9i dé vao interface nao dang ranh,
5.45 CAu hinh line
Céc cach cau hinh console, vty line da duge trinh bay trong phiin truéc, vi vay trong phan
nay chiing tdi chi trinh bay cach c&u hinh cdc tham sé cho tty line:
Lénh Mota
Vao ché 46 cu hinh 1 line fine-number! hoae cau hinh ti line-
numbert dén line-number2
Line fing-rumbert Uline- | a, sau vao ché dd edu hinh line 46 c&u hinh ty line 1 dén 16:
number2]
(contig)#line 1 16
(contig-tine)#
Modem inout Cho phép két néi modem & duéng goi dén va gol ra
Modem dialin Cu hinh cho line tu dong tra Iai mat modem
Trang 82/94Huéng din cau hinh cae chic nang co ban cila Cisco router
Lénh
Meta
Modem callin
Cu hinh line cho modem néi vao.
Modem cts-required
Cu hinh line déng ké néi.
Transport input all
Cho phép bat ctf giao thie transport nao.
Speed speed
Thiét lap t&c 46 gitfa router va modem.
Stopbits bit-number
Thiét lap s& luang bit / byte lam stopbit.
Flowcontrol {hardware |
software}
modem autoconfigure
discovery
Xéc dinh loai flow control.
Ty dong phat hién ra loai modem dang gan vao dé ty dong gan
cdc thong s6 cia modem dé.
Bang §.13: Cac lénh cu hinh line
Lénh show line trinh bay tt c& c4c loai line va tinh trang cua m8i loa.
Vi dy cho ta thay mét bang théng ké cdc loai line CTY, TTY, AUX, va VTY Line sau khi
ding lénh show line:
Trang 83/94Huéng din cau hinh cae chic nang co ban cila Cisco router
Hinh 5.24: Man hinh xuét khi si’ dung lénh show line
mica
Trang 84/94Hung din céu hinh cae chic nang ca ban ella Cisco router
5.5 CAuhinh remote user-central dial-up
55.1 Vidui
Hinh duéi day mé t& mét hé théng mang dial-up gdm 66 nhiing may vi tinh cdc nhan két
di dén mt _mang cue bd théng qua cdc modem:
Pe
Hinh §.25: Vidy remote user-router, st dyng 01 modem (edu hinh async interface)
Vi mé hinh nhu trén, c&n phai cu hinh cdc bude nhu sau:
* Cau hinh mét duéng asynchronous trén access server vdi PPP encapsulation
+ Cu hinh m@t interface trén access server dé modem néi vio; intreface nay cing
phai cu hinh sao cho chap nha cube goi tt! modem (incoming call)
* Cau hinh 1 dia chi IP mac dinh cho dudng day goi dén. Bia chi IP nay chi dinh dia chi
cia remote PC két néi dén server.
+ Access Server duge edu hinh trang thai async mode dedicated
Cu hinh nhy sau
ip routing
'
interface ethernet 0
Ip address 192.168.92.12 255.255.255.0
1!
Interface async 1
encapsulation ppp
async mode dedicated
async default ip address 192.168.32.51
async dynamic address
ip unnumbered ethernet 0
line 1
autoselect ppp
modem callin
speed 19200
55.2 Vidu2:
Vi dy nay cling la mé hinh remote user két ndi vao central. Router ma cdc user két néi
vao dude gan nhiéu modem. Méi mét bé bao gm username va password sé c&u hinh
cho m6i user muén két néi vao
Trang 85/94Huéng din cau hinh cae chic nang co ban cila Cisco router
(16 Modems) Users.
isco 2511
modem
Hinh 5.26: Vi dy remote user-router, sil dung 16 modem (cdu hinh group async interface)
Vi m@ hinh nay, phai t6 chile group. Cac bude cu hinh nhu sau:
Buée Lénh Giai thich
1 | Interface group-asyne number Khai tao mat nhom
2__| ip unnumbered interface name n dinh m@t dia cht IP “mugn’ tis interface khac.
3 _| Encapsulation ppp Thiét lap giao thc ppp
4__| Async mode dedicated Cu hinh ché 46 dedicated cho cc interface
8 Bat CHAP va PAP.
HIP od A
6 | Peor default ip address pool pooiname | A" dinh nhing dia chi IP cia cée client ty mot
pool
7. || nocdp enable Tt giao thde Cisco Discovery (CDP) trén
interface
| Sroup-range low-end-ot-range high-end-of- | Binh giéi han du va cuéi cia nhing intretace
range trong nhém.
gj exit Trd V8 ché 49 cu hinh toan cuc
Bang 5.14: Cac budc edu hinh group.
Cu hinh nhy sau :
version 11.2
sorvice timestamps debug datetime msec
service password-encryption
no service udp-small-servers
no service tep-small-servers
!
hostname router2611
!
enable secret lotmedostutt
Trang 86/94Huéng dn céu hinh c&e chic nang co ban olla Cisco router
1
Uusomame jason password foo
Username laura password letmein
useame russ password opensesame
usemame syed password bar
username tite password knockknock
1
interface Etherneto
ip address 192.168.99.1 255.255.255.0
Interface Serlalo
no ip address
1
interface Serialt
no ip address
1
interface Group-Asynct
Ip unnumbered ethernoto
encapsulation ppp
async mode dedicated
peer default ip address poo! dialup
no cdp enable
pp authentication chap
group-range 1 16
ip local pool dialup 192.168.39.239 192.168.99.254
line con 0
login
line 116
login focal
modem InOut
transport input all
line aux 0
Tine vty 0.4
execctimeout 200
password letmein
login
1
ond
moc
Trang 87/94Hung din céu hinh cae chic nang ca ban ella Cisco router
5.6 CAuhinh router-router dial-up
Xem mé hinh sau
rem ena nwo re wav
es ste
spy wooo
cones Ding se
Hinh 5.27: Vi dy két néi router-to-router.
‘Bi véi m@ hinh router-router dial-up thi mét router phi déng val tr answering vA m@t
router déng vai trd dialing.
Dé cu hinh router-router dial-up, phai c&u hinh cho ca router answering va router dialing
trong d6 router dialing phai duge c&u hinh cho viée quay sé ra bao gdm chat-script, dialer
map, ip route...Lénh ip route ding dé thiét lap static route (48 trinh bay & phn contig
leased line:
ip route network [mask] {address interface} [distance] [permanent]
* Cau hinh answering access server (Snoopy)
1
version 12.0
!
hostname Snoopy
!
enable password test
!
‘aaa authentication ppp default local
1
usemame Woodstock password 7 kd345096ix09ghu934
1
interface Ethemot0
ip address 172.16.10.1 255.255.255.0
interface Serialo
no ip address
shutdown
'
interface Serial!
no ip address
shutdown
interface Asynct
ip unnumbered Etherneto
encapsulation ppp
peer default ip address 172.16.20.1
async dynamic routing
async mode dedicated
dialer idle-timeout 300
dialer map Ip 172.16.20.1 name Woodstock broadcast
Trang 86/94Huéng din cau hinh cée chic nang co ban olla Cisco router
Ppp authentication chap
dialer-group 1
1
router rip
network 172,16.0.0
1
access-list 100 deny ip 0.0.0.0 255.255.255.255 255.255.255.256 0.0.0.0
access-list 100 permit ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255
1
dialer-list 1 list 100
1
Ip route 0.0.0.0 0.0.0.0 172.16.20.1
Ip route 172,16.20.1 255.255.255.255 asynct
f
line con 0
line aux 0
modem dialin
speed 115200
flowcontro! hardware
line vty 0.4
password cisco
1
ond
= Cau hinh cho
1
version 12.0
1
hostname Woodstock
1
enable password test
1
username Snoopy password peanuts
chat-script diainum "* "atdt\T" TIMEOUT 60 CONNECT \c
chat-script rstusr " “at&fs0=1 e0&12&d28c1&b1 &h1 &MO&KO" "OK"
1
Interface Ethernet0
ip address 172.16.20.1 255.255.2550,
ing access server (Woodstock):
Interface Serialo
no ip address
1
interface Serialt
no ip address
1
interface Asynct
ip unnumbered Etherneto
‘encapsulation ppp
async defaultip address 172.16.10.1
async dynamic routing
async mode dedicated
dialer in-band
dialer idle-timeout 300
dialer map ip 172.16.10.1 name Snoopy modem-script diainum broadcast 14085554321
dialer-group 1
pp authentication chap
pulse-time 3
1
Trang a9/s4Huéng din cau hinh cée chic nang co ban olla Cisco router
router rip
notwork 172.16.0.0
1
ip route 0.0.0.0 0.0.0.0 172.16.10.1
ip route 172.16.10.1 255.255.255.255 async 1
1
‘access-list 100 deny ip 0.0.0.0 255.255.255.255 255.255.255.255 0.0.0.0
access-list 100 permit ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255
1
dialer-list 1 list 100
line con 0
line aux 0
modem InOut
speed 115200
script reset rstusr
flowcontro! hardware
Tine vty 0.4
password test,
login
1
ond
Ta c6 thé khéng stf dung lénh ip unnumbered ma gan dia chi tryc tiép cho
nhu sau:
* Cau hinh answering access server (Snoopy):
interface Asynet
ip addross 172.16.30.1 255.255.255.0
encapsulation ppp
oer default ip addross 172.16.30.2 (hay asyne dynamic address du dae)
asyne dynamic routing
asyne mode dedicated
dialer ide-timeout 300
dialer map ip 172.16.30.2 name Woodstock broadcast
Ppp authentication chap
dialer-aroup 1
* Cau hinh cho dialing access server (Woodstock):
intorfaco Asynct
Ip address 172.16.30.2 255.265,255.0
‘encapsulation ppp
async defaultip address 172.16.30.1 ( hay asyne dynamic address d8u dugc)
async dynamic routing
async mode dedicated
dialer in-band
dialer idle-timeout 300
dialer map ip 172.16.30.1 name Snoopy modem-script diainum broadcast 14085554321
dialer-group 1
pp authentication chap
pulse-time 3
Trang 90/94Huéng din cau hinh cée chic nang co ban olla Cisco router
1
router rip
network 172,16.0.0
1
ip route 0.0.0.0 0.0.0.0 172.16.30.1
Ip route 172.16.30.1 255.255.255.255 async 1
H
wre
Trang 91/94Hung din céu hinh cae chic nang ca ban ella Cisco router
5.7 Cauhinh Back-up bang duéng dial-up
5.7.1 Cac lénh ding dé tao mat dudng dial-up back-up:
Lenh Giai thich
Router(contig-i}# Chon mét back-up line. Lénh nay dugc thiét lap tu
Backup interface interface-name | interface configuration mode cla interface chinh c&n
backup.
Router(contig-if}# Lénh thiét lp cdc nguGng bat va tAt dudng back-up
Backup load (enable-threshold |__| Vidu: Router(config:}# backup load 60 5
never} (disable-load | never) GiAi thich vi du trén : néu kha nang ti trén dudng
chinh vugt qua 60% thi sé khdi dong duéng backup.
Khi khd nang 181 dé gidm di 5% thi sé tét dung
backup
Router(config-itt Lénh thiét lap thai gian bat dudng backup khi c6 sy c&
Backup delay (enable | never)
(disable-delay I never}
Bang 5.15: Cac Iénh cau hinh backup dial-up.
57.2 Vidu
Mé hinh sau thé hign 2 hé théng két néi véi nhau bang leased line. Ngoai ra, 2 hé théng
‘can cé mat dudng dial-up dé nang eao 49 an toan.
Néu dudng chinh (leased line) bi down. Budng back-up ty déng bat dé duy tri két néi
Cu hinh nay siz dyng auxiliary port IA backup port.
neces
tno Nerwork 2
Hinh 5.28: Vi du, backup dling dial-up.
Cu hinh nhy sau
Cho router A (dialing access server)
hostname routerA
1
usemame routerB password cisco
Trang 92/94Huéng din cau hinh cée chic nang co ban olla Cisco router
cchat-script backup ** *AT* TIMEOUT 30 OK atdt\T TIMEOUT 30 CONNECT tc!
1
interface Serialo
backup interface Asynct
ip address 192.168.222.12 255.255.255.0
1
interface Asynet
ip address 172.16.199.1 255.255.255.0
encapsulation ppp
async default ip address 172.16.199.2
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer map IP 172.16.199.2 name router modem-script backup broadcast $241129
dialer-group 1
backup load 60 5
pp authentication chap
1
dialer-list 1 protocol ip permit
line aux 0
modem InOut
respeed 38400
tespeed 38400
Cu hinh cho router B tuong ty nhu mét answering router
wre
Trang 93/94Hung din céu hinh cae chic nang ca ban ella Cisco router
6 Téng két.
Tai igu nay duge bién soan dya theo céc tai igu cla Cisco: Documentation CD-ROM,
Internet va trén cc kinh nghigém thyc té. Cac van dé 48 dude trinh bay trong tai ligu nay
18 chi ld cdc van dé og ban va thudng gap nhat khi cdu hinh Cisco Router. Mac du hét
‘slic 68 gang ching tdi cling khang thé trinh bay hét tat cd cdc lénh cn thiét cua Cisco
IOS c6 lién quan dén cao vin d8 da dugc trinh bay. Chiing tdi chi hy vong véi mot chut
kinh nghiém cua nhéng ngudi di trudc, cud tai liéu nay sé giép cdc ban it nh&t cng lam
quen duge véi Cisco Router, lam quen duge véi cdch cu hinh Cisco router 6 mite co
ban. Tu dé cé thé tiép cn cc van 48 méi, phic tap han lién quan dén céng nghé va
‘san pham cla Cisco néi riéng va cla cde hang khdc néi chung
moc
Moi thc mc, déng gép y kién xin lién hé:
Phang GPXN2 - Céng ty TNHH Dich vy Céng nghé Tin he HiPT.
60 — 62 Nguyn Van Tri, Q. Phu Nhuan, Tp. HB Chi Minh
BT: 8458518. Fax: 8458516.
Trang 94/94