PDA

View Full Version : Hỏi gấp về Route



hvviet2000
22-07-2003, 04:54 PM
Em có 2 Route (2600 và 810).
Sử dụng đường truyền số liệu ISDL (banch 2b+d). Kênh thuê riêng, không qua SPID (internet)
Hiện nay em đã config nhưng bọn chúng không thông nhau.
Các bác làm ơn chỉ giúp em với (hoạc sửa chữa cho em đoạn config sau)

Route : 2600 config

!
hostname Yenphu
!
enable secret 5 $1$E6Kp$v53mMRKmTbOO1nV13UkWc0
!
username DongDa password 0 dongda
ip subnet-zero
!
!
!
isdn switch-type basic-net3
!
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface BRI1/0
ip address 192.168.70.1 255.255.255.0
ip access-group 101 in
encapsulation ppp
dialer idle-timeout 180
dialer map ip 192.168.70.2 name Dongda 7163222
dialer-group 1
isdn switch-type basic-net3
ppp callback accept
ppp authentication pap
ppp pap sent-username YenPhu password 0 yenphu
ppp multilink
!
interface Dialer1
no ip address
encapsulation ppp
dialer pool 1
dialer remote-name Administrator
dialer-group 1
ppp authentication pap chap
!
ip classless
ip route 192.168.30.0 255.255.255.0 192.168.70.2
ip route 192.168.70.2 255.255.255.255 BRI1/0
ip http server
ip pim bidir-enable
!
!
access-list 1 permit any
access-list 101 deny tcp any any eq telnet
access-list 101 permit ip any any
dialer-list 1 protocol ip permit
!
line con 0
password yenphu
line aux 0
line vty 0 1
password yenphu
login
line vty 2 4
login
!
!
end

=====================
Route : 810 config

hostname dongda
!
enable secret 5 $1$1R8m$959bRpgr7fwd59cuBvx3d/
!
username YenPhu password 0 Yenphu
username DongDa password 0 dongda
ip subnet-zero
!
isdn switch-type basic-net3
!
!
!
interface Ethernet0
ip address 192.168.30.1 255.255.255.0
!
interface BRI0
ip address 192.168.70.2 255.255.255.0
encapsulation ppp
dialer idle-timeout 50
dialer map ip 192.168.70.1 name YenPhu 7163220
dialer-group 1
isdn switch-type basic-net3
ppp pap sent-username DongDa password 0 dongda
ppp multilink
!
ip classless
ip route 192.168.0.0 255.255.255.0 192.168.70.1
ip route 192.168.70.1 255.255.255.255 BRI0
no ip http server
!
!
dialer-list 1 protocol ip permit
!
line con 0
exec-timeout 0 0
password dongda
line vty 0 4
exec-timeout 0 0
password dongda
login
!
no rcapi server
!
!
end




=================
Các bác làm ơn sủa hộ em hoặc gửi theo địa chỉ: Hvviet2000@yahoo.com
Xin cảm ơn nhiều

sinhvienngheo
22-07-2003, 05:22 PM
Hi,

Đây là một working config. Có chổ nào anh không hiểu thì tiếp tục trao đổi nha.

cám ơn Anh,

---------------------------------------------------------------------
hostname Yenphu
enable secret 5 $1$E6Kp$v53mMRKmTbOO1nV13UkWc0
username DongDa password 0 dongda
isdn switch-type basic-net3
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface BRI1/0
ip address 192.168.70.1 255.255.255.0
ip access-group 101 in
encapsulation ppp
dialer idle-timeout 180
dialer map ip 192.168.70.2 name Dongda broadcast 7163222
dialer-group 1
isdn switch-type basic-net3
ppp authentication pap
ppp pap sent-username YenPhu password 0 yenphu
ppp multilink
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.70.2
ip http server
ip pim bidir-enable
!
!
access-list 1 permit any
access-list 101 deny tcp any any eq telnet
access-list 101 permit ip any any
dialer-list 1 protocol ip permit
!
line con 0
password yenphu
line aux 0
line vty 0 1
password yenphu
login
line vty 2 4
login
!
!
end

=====================
Route : 810 config

hostname Dongda
enable secret 5 $1$1R8m$959bRpgr7fwd59cuBvx3d/
!
username YenPhu password 0 yenphu
ip subnet-zero
!
isdn switch-type basic-net3

interface Ethernet0
ip address 192.168.30.1 255.255.255.0
!
interface BRI0
ip address 192.168.70.2 255.255.255.0
encapsulation ppp
dialer idle-timeout 50
dialer map ip 192.168.70.1 name YenPhu broadcast 7163220
dialer-group 1
isdn switch-type basic-net3
ppp pap sent-username DongDa password 0 dongda
ppp multilink
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.70.1
dialer-list 1 protocol ip permit
!
line con 0
exec-timeout 0 0
password dongda
line vty 0 4
exec-timeout 0 0
password dongda
login
!
no rcapi server
!
!
end

huyhpa
22-07-2003, 06:03 PM
Hi hvviet2000,

Bạn nói là 2 Router không thấy nhau, có thể kiểm tra như sau:

1. Kiểm tra vật lý:
Bạn dùng lệnh show isdn status trên mỗi Cisco Router:
Nếu bạn thấy:
Lay 1 : ACTIVE
Layer 2: ACTIVE hay UP gì đó (lâu quá mình quên)
Layer 3: NOT ACTIVE
Hoặc trên màn hình console bạn dùng lệnh Clear interface BRI0 và thấy xuất hiện dòng thông báo sau thì coi như về Physical là ổn:
Router#clear interface BRI0 (hay BRI 1/0 or BRI0/0)
%ISDN-6-LAYER2UP: Layer 2 for Interface BR0, TEI 87 changed to up

2. Kiểm tra kết nối
- Bật lệnh Debug Dialer và Debug ppp authentication
- Ping đến Router ở xa
- Nếu thấy Layer 3 chuyển sang ACTIVE thì coi như kết nối thành công

*Lúc này bạn mới thực sự kiểm tra các lệnh route và access-list

Bạn có thể cấu hình đơn giản như sau (sau khi về vật lý đã OK như bước 1)
(Mình thích dùng chap hơn)

hostname YENPHU
!
enable secret 5 $1$HI6Y$3taOPpjmqlZdRXkmEZ0LF0
enable password cisco
!
username DONGDA password 0 cisco
!
isdn switch-type basic-net3
!
interface BRI0
description ISDN DDR Connection to DongDa
ip address 192.168.70.1 255.255.255.252
encapsulation ppp
dialer idle-timeout 60
dialer map ip 192.168.70.2 name DONGDA 04xxxxxxx
dialer load-threshold 125 either
dialer-group 1
isdn switch-type basic-net3
ppp authentication chap
ppp multilink
!
interface FastEthernet0
ip address 192.168.0.1 255.255.255.0
speed auto
duplex auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.70.2
no ip http server
!
access-list 101 deny tcp any any eq telnet
access-list 101 permit ip any any
dialer-list 1 protocol ip list 101
!
line con 0
line aux 0
line vty 0 4
exec-timeout 0 0
password <hidden>
login
!
no scheduler allocate
end



hostname DONGDA
!
enable secret 5 $1$HI6Y$3taOPpjmqlZdRXkmEZ0LF0
enable password cisco
!
username YENPHU password 0 cisco
!
isdn switch-type basic-net3
!
interface BRI0
description ISDN DDR Connection to YenPhu
ip address 192.168.70.2 255.255.255.252
encapsulation ppp
dialer idle-timeout 60
dialer map ip 192.168.70.1 name YENPHU 04xxxxxxx
dialer load-threshold 125 either
dialer-group 1
isdn switch-type basic-net3
ppp authentication chap
ppp multilink
!
interface FastEthernet0
ip address 192.168.30.1 255.255.255.0
speed auto
duplex auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.70.1
no ip http server
!
access-list 101 permit ip any any
dialer-list 1 protocol ip list 101
!
line con 0
line aux 0
line vty 0 4
exec-timeout 0 0
password <hidden>
login
!
no scheduler allocate
end

hvviet2000
12-08-2003, 11:00 AM
sinhvienngheo thân mến.
Tôi đã nhập đoạn Config running của bạn (giống y chang luôn).
nhưng bọn chúng vẫn không ping được cho nhau.
Bạn có chiêu gì chỉ giúp với nhé.
HVV

sinhvienngheo
12-08-2003, 03:09 PM
http://vnpro.org/forum/viewtopic.php?t=19