PDA

View Full Version : Chỉ cho em cấu hình cho Analog Modem



hanhlk
09-01-2004, 08:21 AM
Em muốn cấu hình router cho card AM có 8 cổng, Bác nào sành thì chỉ cho em các lệnh cấu hình (Trên Router 2630)
Em xin cảm ơn nhiều!!

chipchipzzz
09-01-2004, 04:50 PM
Hi,

gửi hanhlk cấu hình tham khảo trên cisco router 2620
mẩu cấu hình cho phép các PC quay số vào



!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RAS2620
!
enable password sbvcisco
!
username admin password 0 vnpro
username test password 0 test
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
interface Loopback0
ip address 10.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 135.58.1.100 255.255.248.0
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/1
no ip address
shutdown
!
!
interface Group-Async1
description for PC Dial-in
ip unnumbered FastEthernet0/0
encapsulation ppp
dialer in-band
dialer idle-timeout 600
async mode interactive
peer default ip address pool DIALIN
no fair-queue
pulse-time 1
ppp authentication pap
group-range 33 40
!
ip local pool DIALIN 135.58.1.200 135.58.1.249
ip classless
ip route 135.1.0.0 255.255.0.0 135.134.1.1
ip http server
!
dialer-list 1 protocol ip permit
!
line con 0
line 33 40
modem InOut
modem autoconfigure discovery
transport input all
autoselect ppp
flowcontrol hardware
line aux 0
line vty 0 4
password vnpro
login
!
end


Chúc vui,

hanhlk
12-01-2004, 05:18 PM
Hi,

gửi hanhlk cấu hình tham khảo trên cisco router 2620
mẩu cấu hình cho phép các PC quay số vào



!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RAS2620
!
enable password sbvcisco
!
username admin password 0 vnpro
username test password 0 test
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
interface Loopback0
ip address 10.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 135.58.1.100 255.255.248.0
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/1
no ip address
shutdown
!
!
interface Group-Async1
description for PC Dial-in
ip unnumbered FastEthernet0/0
encapsulation ppp
dialer in-band
dialer idle-timeout 600
async mode interactive
peer default ip address pool DIALIN
no fair-queue
pulse-time 1
ppp authentication pap
group-range 33 40
!
ip local pool DIALIN 135.58.1.200 135.58.1.249
ip classless
ip route 135.1.0.0 255.255.0.0 135.134.1.1
ip http server
!
dialer-list 1 protocol ip permit
!
line con 0
line 33 40
modem InOut
modem autoconfigure discovery
transport input all
autoselect ppp
flowcontrol hardware
line aux 0
line vty 0 4
password vnpro
login
!
end


Chúc vui,Cảm ơn anh Đại. Em đã cấu hình và cho chạy thử. Nhưng dial vào mạng nội bộ thì Ok nhưng khi dial ra ngoài thì vẫn chưa được. Em sẽ thử lại sau.
Chúc anh khoẻ

sinhvienngheo
13-01-2004, 06:16 PM
hi,

muốn dial ra ngoài thì dùng thêm lệnh dial-group nằm trong interface group-async 1.

Cụ thể:

dialer-group 1

chúc thành công,

hanhlk
29-01-2004, 01:48 PM
Chào Chipchipzz và Sinhvienngheo
Em đã cấu hình giông như trên nhưng khi quay số từ ngoài vào vẫn không được. Quay số nội bộ thì Ok. Em cũng không biết tại sao nữa. Em tìm thấy cấu hình này ở trên mạng. Nhưng không biết nó có chạy được không. Các tiên sư chỉ cho em với.
Em cảm ơn nhiều!!

Current configuration : 1676 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname router1
!
enable password ww
!
username router2 password 0 ww
ip subnet-zero
!
chat-script async "" "AT" OK "ATDT\T" TIMEOUT 30 CONNECT \c
!
!
interface Ethernet2/0
ip address 10.200.20.51 255.255.255.0
half-duplex
!
interface Async104

ip address 10.10.0.2 255.255.255.252
encapsulation ppp
dialer in-band
dialer wait-for-carrier-time 180
dialer map ip 10.10.0.1 name router2 modem-script async 8214
dialer-group 1
!--- apply interesting traffic definition from dialer-list 1
async mode dedicated
ppp authentication chap
!--- use chap authentication
!
ip classless
ip route 10.10.0.0 255.255.0.0 10.10.0.1
ip route 10.10.0.1 255.255.255.255 Async104
!
dialer-list 1 protocol ip permit
!
!
line con 0
exec-timeout 0 0
password ww
transport input none
line 33 38
line 97 103
modem InOut
transport input all
line 104
modem InOut
transport input all
transport output lat pad v120 lapb-ta telnet rlogin udptn
flowcontrol hardware
line aux 0
line vty 0 4
password ww
login
!
end

sinhvienngheo
29-01-2004, 05:05 PM
Hi

Bạn chú ý nối đất các thiết bị, đặc biệt với 8AM Analog modem module này.

Chúc vui

monkey
29-01-2004, 07:08 PM
hình như quay số thông qua tổng đài nội bộ PABX (PSTN ---- PABX ---RAS2630) từ ngoài vào ko được :)

leminhkhoi
01-02-2004, 11:40 AM
tổng đài nội bộ cũng là cái mà bạn phải chú ý , tùy thuộc vào tổng đài mà bạn có thể từ ngoài quay vào một cách dễ dàng, nhưng có những tổng đài quay vào rất khó khăn.
thân chào

silentwings
14-09-2004, 11:51 AM
anh admin oi, anh cho em hỏi về câu lệnh modem autoconfigure discovery
nó là cau lệnh để tự detect modem đúng không?
em hỏi vậy bởi vì khi em dùng một số loại modem để nối vào router thì với cấu hình như trên pc quay số thành công, nhưng riêng với us robotics thì không được, vậy có câu lệnh nào để khắc phục được không?

ducasoft
19-11-2004, 03:33 PM
Toi gặp hiện tượng như sau:

Nếu máy quay số vào, thì tôi cho phép nhận địa chỉ trong dải mà các máy trong mạng Lan đang dùng (ví dụ 192.168.1.x) nhưng tôi bị vấn đề là địa chỉ IP và default gate của client dialup trùng nhau, nên client dialup vào không ra ngoài internet được mặc dù nó có thể liên lạc được với các máy khác trong LAN , mong mọi người giúp đỡ !

Thanks

admin
19-11-2004, 07:27 PM
hi

Nếu cấu hình dùng ppp thì vấn đề địa chỉ IP và gateway trùng nhau là hiện tượng bình thường.

Nếu muốn client vào Internet, thử check thêm option "Use gateway on remote network" khi cấu hình dial-up networking.

thân chào

ducasoft
23-11-2004, 09:04 AM
Bạn ơi, option "Use gateway on remote network" là mặc định khi tạo dial up connection rồi !

Vấn đề mình muốn hỏi là các client dial up làm thế nào để nhận được default gateway, trong khi dải IP của chúng nhận được cũng là dải IP của các máy trong Lan (các máy Lan ra ngoài được do chọn được default gateway)

Mình cũng bị vấn đề này khi tạo VPN trên PIX, máy client VPN chỉ loanh quanh trong LAN, không ra internet được :((

changchancuucodon
23-11-2004, 09:10 AM
chào bạn

Bạn coi lại phần định tuyến trên Access server của bạn đi.

Thêm vào dòng ip route 0.0.0.0 0.0.0.0 [default-gateway] trên AS server là được.

Cám ơn

ducasoft
23-11-2004, 11:22 AM
bạn ơi, mình cũng đặt default rồi mà
Đây là cấu hình của mình, các bạn xem hộ nhé ! Mình cấu hình dialup từ F0/1, muốn đi ra internet bằng đường S0/1(Router 3725)

Cấu hình:
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router_3725
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$S3C3$cDrbdoBadgYtJ7OI..TqV0
!
username test password 0 test
no network-clock-participate slot 1
no network-clock-participate slot 2
no network-clock-participate wic 0
no network-clock-participate wic 1
no network-clock-participate wic 2
no network-clock-participate aim 0
no network-clock-participate aim 1
no aaa new-model
ip subnet-zero
!
!
ip cef
ip name-server 203.162.0.11
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 172.16.105.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clockrate 2000000
!
interface FastEthernet0/1
ip address 192.168.103.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Serial0/1
ip address 203.162.134.198 255.255.255.252
ip nat outside
!
interface Group-Async1
ip unnumbered FastEthernet0/1
encapsulation ppp
dialer in-band
dialer idle-timeout 600
async mode interactive
peer default ip address pool dialup-pool
pulse-time 1
no fair-queue
ppp authentication pap
group-range 33 48
!
ip local pool dialup-pool 192.168.103.230 192.168.103.235
ip default-gateway 203.162.134.197
ip nat pool LANPOOL 203.162.10.130 203.162.10.130 netmask 255.255.255.192
ip nat inside source list 10 pool LANPOOL overload
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 203.162.134.197
!
access-list 10 permit any
!
line con 0
transport preferred all
transport output all
line 33 48
modem InOut
modem autoconfigure discovery
transport preferred all
transport input all
transport output all
autoselect ppp
line aux 0
transport preferred all
transport output all
line vty 0 4
password test
login
transport preferred all
transport input all
transport output all

HuuHoa
23-11-2004, 11:33 AM
gần được rồi.

Chuyển line về chế độ dedicãted đi.

interface Group-Async1
ip unnumbered FastEthernet0/1
encapsulation ppp
dialer in-band
dialer idle-timeout 600
async mode interactive <<<--------------async mode dedicated
peer default ip address pool dialup-pool
pulse-time 1
no fair-queue
ppp authentication pap
group-range 33 48



Cấu hình phần line như vậy:
line 33 48
modem InOut
transport input all
flow control hardware
stopbits 1
modem autoconfigure discovery
transport preferred all
transport input all
transport output all


Bạn bỏ dòng ip default-gateway 203.162.134.197

Nếu làm chạy thì báo cho mình biết nhé

ducasoft
23-11-2004, 04:32 PM
Được rồi, mình cấu hình được rồi, thực ra mình lại IP nat inside ở interface thay vì trong group-async
cho nên không đươc.

Mình hỏi thêm một câu nữa, khi client dial up vào, để một thời gian thì mà để idle thì bị ngắt kết nối, cứu cứu cứu !!! mình bỏ câu dialer idle-timeout 600
rồi !

nervetnova
07-12-2004, 10:16 AM
chào ducasoft

theo mình thì bạn vẫn nên để thông số idle-timeout để giúp ngắt kết nối khi không còn interesting-traffic nữa. Vì khoảng thời gian idle-timeout là cách duy nhất để modem có thể disconnect.

Nếu bạn vẫn muốn tắt khoàng thời gian idle timeout đi, bạn thử dùng

dialer idle-timeout 0