24/05/2018, 21:44

Cấu hình remote user-central dial-up

Ví dụ remote user-router, sử dụng 01 modem (cấu hình async interface) Với mô hình như trên, cần phải cấu hình các bước như sau: Cấu hình một đường asynchronous trên access server với PPP encapsulation Cấu hình một interface ...

Ví dụ remote user-router, sử dụng 01 modem (cấu hình async interface)

Với mô hình như trên, cần phải cấu hình các bước như sau:

  • Cấu hình một đường asynchronous trên access server với PPP encapsulation
  • Cấu hình một interface trên access server để modem nối vào; intreface này cũng phải cấu hình sao cho chấp nhận cuộc gọi từ modem (incoming call)
  • Cấu hình 1 địa chỉ IP mặc định cho đường dây gọi đến. Địa chỉ IP này chỉ định địa chỉ của remote PC kết nối đến server.
  • Access Server được cấu hình trạng thái async mode dedicated

Cấu hình như sau:

ip routing
!
interface ethernet 0
ip address 192.168.32.12 255.255.255.0
!
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

Ví dụ này cũng là mô hình remote user kết nối vào central. Router mà các user kết nối vào được gắn nhiều modem. Mỗi một bộ bao gồm username và password sẽ cấu hình cho mỗi user muốn kết nối vào.

: Ví dụ remote user-router, sử dụng 16 modem (cấu hình group async interface)

Với mô hình này, phải tổ chức group. Các bước cấu hình như sau:

Các bước cấu hình group.
Bước Lệnh Giải thích
1 Interface group-async numbẻ Khởi tạo một nhóm
2 ip unnumbered interface name An định một địa chỉ IP “mượn” từ interface khác.
3 Encapsulation ppp Thiêt lập giao thức ppp
4 Asy n c mo d e dedicated Cấu hình chế độ dedicated cho các interface
5 Ppp authentication c h ap pap Bật CHAP và PAP.
6 Peer default ip address pool p oo l n a me An định những địa chỉ IP của các client từ một pool
7 no cdp e n a b le Tắt giao thức Cisco Discovery (CDP) trên interface
8 Group-range low-end-of-range high-end-of- range Định giới hạn đầu và cuối của những intreface trong nhóm
9 Exit Trở về chế độ cấu hình toàn cục

Cấu hình như sau :

version 11.2
 
Bảng 5.14: Các bước cấu hình group.
 
service timestamps debug datetime msec service password-encryption
no service udp-small-servers no service tcp-small-servers
!
hostname router2511
!
enable secret letmedostuff
 


!
username jason password foo username laura password letmein username russ password opensesame
username syed password bar username tito password knockknock
!
interface Ethernet0
ip address 192.168.39.1 255.255.255.0
!
interface Serial0
no ip address
!
interface Serial1
no ip address
!
interface Group-Async1
ip unnumbered ethernet0
encapsulation ppp async mode dedicated
peer default ip address pool dialup no cdp enable
ppp authentication chap group-range 1 16
!
ip local pool dialup 192.168.39.239 192.168.39.254
!
line con 0
login
line 1 16
login local modem InOut
transport input all line aux 0
line vty 0 4
exec-timeout 20 0 password letmein login
!
end
0