tiennd
01-08-2003, 03:47 PM
Tôi có một Router 2509 với cấu hình như sau : (Đã xóa bớt Config của Async 2-8 cho đỡ rối mắt)
Xin các cao thủ chỉ giáo sao cho tôi có thể :
- Config Router này thành Access Server để tôi có thể truy cập từ xa.
- Khi quay số vào và kết nối, địa chỉ IP gán cho cổng Async có gắn Modem đó sẽ lấy từ một DHCP Server (Có địa chỉ 192.168.0.1)
Xin cảm ơn rất nhiều !!!
(TÔI ĐANG LÀM MÒ MÀ MÃI KHÔNG NỔI,,, chán quá )
!
version 10.3
service udp-small-servers
service tcp-small-servers
!
hostname DBDT_R1
!
enable password tien1
!
username dothu
username tien
no ip domain-lookup
ip dhcp-server 192.168.0.1
chat-script cisco-default ABORT ERROR "" "AT Z" OK "ATDT \T" TIMEOUT 30 \c CONNECT \c
!
interface Loopback0
ip address 172.16.0.1 255.255.0.0
!
interface Ethernet0
ip address 192.168.0.2 255.255.255.0
!
no ip address
shutdown
!
interface Serial1
no ip address
shutdown
!
interface Async1
ip address 192.168.1.1 255.255.255.0
ip tcp header-compression passive
encapsulation ppp
keepalive 10
async dynamic address
async dynamic routing
async mode interactive
ppp reliable-link
ppp authentication chap
!
!
!
line con 0
line 1 8
modem InOut
autobaud
autoselect during-login
autoselect ppp
script startup cisco-default
script reset cisco-default
transport input all
stopbits 1
flowcontrol hardware
autohangup
line aux 0
transport input all
line vty 0 4
login
!
end
Xin các cao thủ chỉ giáo sao cho tôi có thể :
- Config Router này thành Access Server để tôi có thể truy cập từ xa.
- Khi quay số vào và kết nối, địa chỉ IP gán cho cổng Async có gắn Modem đó sẽ lấy từ một DHCP Server (Có địa chỉ 192.168.0.1)
Xin cảm ơn rất nhiều !!!
(TÔI ĐANG LÀM MÒ MÀ MÃI KHÔNG NỔI,,, chán quá )
!
version 10.3
service udp-small-servers
service tcp-small-servers
!
hostname DBDT_R1
!
enable password tien1
!
username dothu
username tien
no ip domain-lookup
ip dhcp-server 192.168.0.1
chat-script cisco-default ABORT ERROR "" "AT Z" OK "ATDT \T" TIMEOUT 30 \c CONNECT \c
!
interface Loopback0
ip address 172.16.0.1 255.255.0.0
!
interface Ethernet0
ip address 192.168.0.2 255.255.255.0
!
no ip address
shutdown
!
interface Serial1
no ip address
shutdown
!
interface Async1
ip address 192.168.1.1 255.255.255.0
ip tcp header-compression passive
encapsulation ppp
keepalive 10
async dynamic address
async dynamic routing
async mode interactive
ppp reliable-link
ppp authentication chap
!
!
!
line con 0
line 1 8
modem InOut
autobaud
autoselect during-login
autoselect ppp
script startup cisco-default
script reset cisco-default
transport input all
stopbits 1
flowcontrol hardware
autohangup
line aux 0
transport input all
line vty 0 4
login
!
end