You are on page 1of 8

LAB 7: Cu hnh thc hin cuc gi gia 2 vng c qun l bi 2

Gatekeeper (Inter-zone)

S mng

Hnh 1

Yu cu cu hnh

Bi lab ny m t cch cu hnh trao i thng tin gia cc vng (zone) thuc cc
gatekeeper khc nhau. Yu cu nh sau:

1. Cu hnh Zone 1 tn Saigon trn gatekeeper 1 trn v Zone 2 tn Hanoi trn


gatekeeper 2
2. Cu hnh hai Router Saigon v Hanoi thc hin cuc gi qua hai zone
Thc hin
A. Cu hnh ban u:

Cu hnh ban u trn gatekeeper 1:

Gatekeeper-1#sh run
Building configuration...

Current configuration : 1092 bytes


!
version 12.1
!
hostname Gatekeeper-1
!
!
interface Loopback0
ip address 192.168.1.10 255.255.255.0
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.2.1 255.255.255.0
!
ip route 172.16.3.0 255.255.255.0 172.16.2.2
ip route 192.168.10.0 255.255.255.0 172.16.2.2
!

Cu hnh ban u trn gatekeeper 2:

Gatekeeper-2#sh run
Building configuration...

Current configuration : 1072 bytes


!
version 12.1
!
hostname Gatekeeper-2
!
interface Loopback0
ip address 192.168.10.10 255.255.255.0
!
interface Ethernet0/0
ip address 172.16.3.1 255.255.255.0
half-duplex
!
interface Serial0/0
ip address 172.16.2.2 255.255.255.0
!
ip route 172.16.1.0 255.255.255.0 172.16.2.1
ip route 192.168.1.0 255.255.255.0 172.16.2.1
!

Cu hnh ban u trn Saigon:

Saigon#sh run
Building configuration...

Current configuration : 824 bytes


!
version 12.3
!
hostname Saigon
!
interface FastEthernet0/0
ip address 172.16.1.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 172.16.1.1
!
voice-port 1/0/0
!
voice-port 1/0/1
!

Cu hnh trn Hanoi:

Hanoi#sh run
Building configuration...

Current configuration : 913 bytes


!
hostname Hanoi
!
interface Ethernet0/0
ip address 172.16.3.2 255.255.255.0
half-duplex
!
ip route 0.0.0.0 0.0.0.0 172.16.3.1

!
voice-port 1/0/0
!
voice-port 1/0/1
!
!
B. Cc bc thc hin:
Bc 1: Cu hnh gatekeeper

Cu hnh trn gatekeeper 1:

Gatekeeper-1#configure terminal
Gatekeeper-1(config)#gatekeeper
Gatekeeper-1(configgk)#
Gatekeeper-1(configgk)#zone local Saigon vnpro.org 192.168.1.10
! nh ngha vng (zone) qun l cc b

Gatekeeper-1(configgk)#zone remote Hanoi cisco.com 192.168.10.10 1719


! nh ngha vng t xa (remote zone)

Gatekeeper-1(configgk)#zone prefix Saigon 1*


! nh ngha s prefix qun l bi vng cc b (local zone)

Gatekeeper-1(configgk)#zone prefix Hanoi 2*


! nh ngha s prefix qun l bi vng t xa (remote zone)
Gatekeeper-1(configgk)#no shutdown
!

Cu hnh trn gatekeeper 2:

Gatekeeper-2#configure terminal
Gatekeeper-2(config)#gatekeeper
Gatekeeper-2(config)#zone local Hanoi cisco.com 192.168.10.10
Gatekeeper-2(config)#zone remote Saigon vnpro.org 192.168.1.10 1719
Gatekeeper-2(config)#zone prefix Saigon 1*
Gatekeeper-2(config)#zone prefix Hanoi 2*
Gatekeeper-2(config)#no shutdown

Bc 2: Cu hnh gateway

Cu hnh trn gateway Saigon


(c th tham kho c php trong bi lab 6)

Cu hnh cng giao tip H323


Saigon(config)#gateway
Saigon(config)#interface FastEthernet0/0
Saigon(config-if)#ip address 172.16.1.2 255.255.255.0
Saigon(config-if)#h323-gateway voip interface
Saigon(config-if)#h323-gateway voip id Saigon ipaddr 192.168.1.10 1719

Cu hnh cng voice

Saigon(config)#dial-peer voice 1 pots


Saigon(config-dial-peer)#destination-pattern 101
Saigon(config-dial-peer)#port 1/0/0
!
Saigon(config)#dial-peer voice 2 voip
Saigon(config-dial-peer)#destination-pattern 2..
Saigon(config-dial-peer)#session target ras

Cu hnh trn gateway Hanoi

Cu hnh cng giao tip H323

Hanoi(config)#gateway
Hanoi(config)#interface Ethernet0/0
Hanoi(config-if)#ip address 172.16.3.2 255.255.255.0
Hanoi(config-if)#h323-gateway voip interface
Hanoi(config-if)#h323-gateway voip id Hanoi ipaddr 192.168.10.10 1719
!
Cu hnh cng voice

Hanoi(config)#dial-peer voice 1 pots


Hanoi(config-dial-peer)#destination-pattern 201
Hanoi(config-dial-peer)#port 1/0/0
!
Hanoi(config-dial-peer)#dial-peer voice 2 voip
Hanoi(config-dial-peer)#destination-pattern 1..
Hanoi(config-dial-peer)#session target ras

C. Kim tra
Thc hin cuc gi v kim tra

Gatekeeper#sh gatekeeper endpoints


GATEKEEPER ENDPOINT REGISTRATION
================================
CallSignalAddr Port RASSignalAddr Port Zone Name Type Flags
--------------- ----- ------------- ----- --------- ---- -----
172.16.1.2 1720 172.16.1.2 56921 Saigon VOIP-GW
E164-ID: 101
Voice Capacity Max.= Avail.= Current.= 1
Total number of active registrations = 1

Gatekeeper#

Xem cc thng tin cuc gi hin thi

Gatekeeper#sh gatekeeper calls


Total number of active calls = 1.
GATEKEEPER CALL INFO
====================
LocalCallID Age(secs) BW
4-57824 14 16(Kbps)
Endpt(s): Alias E.164Addr
src EP: 101
CallSignalAddr Port RASSignalAddr Port
172.16.1.2 1720 172.16.1.2 56921
Endpt(s): Alias E.164Addr
dst EP: Saigon1 201
CallSignalAddr Port RASSignalAddr Port
172.16.3.2 1720 172.16.3.2 1720

Gatekeeper#

Xem thng tin cu hnh zone trn gatekeeper

Gatekeeper#sh gatekeeper zone prefix


ZONE PREFIX TABLE
=================
GK-NAME E164-PREFIX
------- -----------
Saigon 1*
Hanoi 2*
Gatekeeper#

D. Cu hnh y

Cu hnh trn gatekeeper 1:

Gatekeeper-1#sh run
Building configuration...

Current configuration : 1092 bytes


!
version 12.1
!
hostname Gatekeeper-1
!
!
interface Loopback0
ip address 192.168.1.10 255.255.255.0
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.2.1 255.255.255.0
!
ip route 172.16.3.0 255.255.255.0 172.16.2.2
ip route 192.168.10.0 255.255.255.0 172.16.2.2
!
gatekeeper
zone local Saigon vnpro.org 192.168.1.10
zone remote Hanoi cisco.com 192.168.10.10 1719
zone prefix Saigon 1*
zone prefix Hanoi 2*
no shutdown
!

Cu hnh trn gatekeeper 2:

Gatekeeper-2#sh run
Building configuration...

Current configuration : 1072 bytes


!
version 12.1
!
hostname Gatekeeper-2
!
interface Loopback0
ip address 192.168.10.10 255.255.255.0
!
interface Ethernet0/0
ip address 172.16.3.1 255.255.255.0
half-duplex
!
interface Serial0/0
ip address 172.16.2.2 255.255.255.0
!
ip route 172.16.1.0 255.255.255.0 172.16.2.1
ip route 192.168.1.0 255.255.255.0 172.16.2.1
!
gatekeeper
zone local Hanoi cisco.com 192.168.10.10
zone remote Saigon vnpro.org 192.168.1.10 1719
zone prefix Saigon 1*
zone prefix Hanoi 2*
no shutdown
!

Cu hnh trn Saigon:

Saigon#sh run
Building configuration...

Current configuration : 824 bytes


!
version 12.3
!
hostname Saigon
!
interface FastEthernet0/0
ip address 172.16.1.2 255.255.255.0
h323-gateway voip interface
h323-gateway voip id Saigon ipaddr 192.168.1.10 1719
!
ip route 0.0.0.0 0.0.0.0 172.16.1.1
!
voice-port 1/0/0
!
voice-port 1/0/1
!
dial-peer voice 1 pots
destination-pattern 101
port 1/0/0
!
dial-peer voice 2 voip
destination-pattern 2..
session target ras
!
gateway
!

Cu hnh trn Hanoi:

Hanoi#sh run
Building configuration...

Current configuration : 913 bytes


!
hostname Hanoi
!
interface Ethernet0/0
ip address 172.16.3.2 255.255.255.0
half-duplex
h323-gateway voip interface
h323-gateway voip id Hanoi ipaddr 192.168.10.10 1719
!
ip route 0.0.0.0 0.0.0.0 172.16.3.1

!
voice-port 1/0/0
!
voice-port 1/0/1
!
dial-peer voice 1 pots
destination-pattern 201
port 1/0/0
!
dial-peer voice 2 voip
destination-pattern 1..
session target ras
!
gateway
!

You might also like