PDA

View Full Version : Routing giữa 2 lớp mạng trên router 2620????



sensitive
03-07-2005, 02:14 AM
Hi!
Hiện tại mình đang cấu hình hệ thống kết nối dialup với mô hình sau:

LAN_1 (10.218.252.0/24)-> Modem ----------> Router 2620 ----> LAN_2 (10.218.1.0/24)

Mình đã cấu hình thiết bị router (2620) như sau:


service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname cisco2620
!
logging queue-limit 100

username skhdt password 0 skhdt
username stc password 0 stc
username sgtvt password 0 sgtvt
ip subnet-zero
!
!
no ip domain lookup
ip name-server 10.218.1.1
ip name-server 203.162.0.11
!
!
!
!
!
interface Loopback0
no ip address
!
interface FastEthernet0/0
ip address 10.218.252.1 255.255.255.0 secondary
ip address 10.218.1.254 255.255.255.0
duplex auto
speed auto
no cdp enable
!
interface Serial1/0
physical-layer async
description connected to Dial-inPSs(modem)
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
autodetect encapsulation ppp
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/1
physical-layer async
description connected to Dial-inPSs(modem)
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/2
physical-layer async
description connected to Dial-inPSs(modem)
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/3
physical-layer async
description connected to Dial-inPSs(modem)
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/4
physical-layer async
description connected to Dial-inPSs(modem)
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/5
physical-layer async
description connected to Dial-i
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/6
physical-layer async
description connected to Dial-inPSs(modem)
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Serial1/7
physical-layer async
description connected to Dial-in
no ip address
encapsulation ppp
no ip mroute-cache
dialer in-band
dialer pool-member 1
async default routing
async dynamic routing
async mode dedicated
no peer default ip address
no keepalive
no fair-queue
ppp authentication pap chap ms-chap
!
interface Dialer1
ip unnumbered FastEthernet0/0
encapsulation ppp
dialer pool 1
dialer remote-name skhdt
dialer-group 1
peer default ip address 10.218.252.2
no cdp enable
ppp authentication ms-chap chap
!
interface Dialer2
ip unnumbered FastEthernet0/0
encapsulation ppp
dialer pool 1
dialer remote-name stc
dialer-group 1
peer default ip address 10.218.252.3
no cdp enable
ppp authentication ms-chap chap
!
interface Dialer3
ip unnumbered FastEthernet0/0
encapsulation ppp
dialer pool 1
dialer remote-name sgtvt
dialer-group 1
peer default ip address 10.218.252.4
no cdp enable
ppp authentication ms-chap chap
!
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 10.218.1.1
!
!
!
dialer-list 1 protocol ip permit
no cdp run
snmp-server community public RO
snmp-server enable traps tty
!
line con 0
line 33 40
flush-at-activation
modem InOut
modem autoconfigure type usr_sportster
transport input all
autoselect during-login
autoselect ppp
speed 57600
flowcontrol hardware
line aux 0
line vty 0 4
!
end

Hiện tại vấn đề của mình là khi một máy quay số tới được cấp ip mạng 10.218.252.0/24 nhưng ko thể ping tới máy gateway 10.218.1.1 đươc. Mọi người xem giúp trong cấu hình mình còn thiếu phần nào để cho phép routing giữa 2 lớp mạng này!
Cám ơn trước mọi sự giúp đỡ!

trung tam kn
03-07-2005, 09:22 PM
ở các client, anh thêm vào lệnh sau ở dấu nhắc DOS Prompt

route add 10.218.1.0 mask 255.255.255.0 10.210.252.1 metric 1

cisco336
04-07-2005, 08:13 AM
Lý do duy nhất là dial-up users chưa được cấp default gateway, bạn hãy thêm lệnh sau vào router:
async-bootp gateway 10.218.252.1

sensitive
04-07-2005, 08:58 AM
ở các client, anh thêm vào lệnh sau ở dấu nhắc DOS Prompt

route add 10.218.1.0 mask 255.255.255.0 10.210.252.1 metric 1

Lệnh trên không chạy được do bảng định tuyến đã có định tuyến trên ppp0 rùi



Lý do duy nhất là dial-up users chưa được cấp default gateway, bạn hãy thêm lệnh sau vào router:
async-bootp gateway 10.218.252.1

Vẫn ko được bạn à, mình đã thêm lệnh trên vào nhưng hình như không có tác dụng gì. Không hiểu có phải do mình bật thiếu modules routing nào đó không nhi???

cvo15303
04-07-2005, 09:27 AM
Hi Sensitive!
Bạn có thể giải thích rõ hơn về lý do chọn 10.218.1.1 làm gateway trong command "ip route 0.0.0.0 0.0.0.0 10.218.1.1 " được không ah?
Liệu rằng chúng ta có thể thay bằng ip route 0.0.0.0 0.0.0.0 Fa0/0 không nhỉ?
Các máy con thuộc LAN 2 đang sử dụng Gateway là địa chỉ nào vậy bạn ?
Thân mến

cisco336
04-07-2005, 09:43 AM
Sau khi bạn add lệnh "async-bootp gateway 10.218.252.1", bạn phải disconnect các dialup users đang kết nối và sau đó kết nối lại thì lúc đó dialup users mới được cấp phát default gateway

sensitive
04-07-2005, 02:35 PM
Sau khi bạn add lệnh "async-bootp gateway 10.218.252.1", bạn phải disconnect các dialup users đang kết nối và sau đó kết nối lại thì lúc đó dialup users mới được cấp phát default gateway
Có chứ, mình có làm như thế mà vẫn không được :cry:. Mình tracert thử tới 10.218.1.1 thì có đi tới được 10.218.1.254 nhưng không thể đi tiếp được????



Bạn có thể giải thích rõ hơn về lý do chọn 10.218.1.1 làm gateway trong command "ip route 0.0.0.0 0.0.0.0 10.218.1.1 " được không ah?
cái này mình dùng để xác định gateway cho mạng 10.218.1.1, mình làm thế này cho phép chia sẻ internet của may10.218.1.1


Liệu rằng chúng ta có thể thay bằng ip route 0.0.0.0 0.0.0.0 Fa0/0 không nhỉ?
Được chứ, nhưng nếu vậy thì các máy dialup sẽ ko dùng được internet cua máy 10.218.1.1. Lỗi của mình ở đây ko phải do gateway đó mà do mình chưa routing được giữa lớp mạng quay số và mạng LAN.


Các máy con thuộc LAN 2 đang sử dụng Gateway là địa chỉ nào vậy bạn ?
Như mình đã nói ở trên, gateway là 10.218.1.1

Các đồng chí xem giúp còn thiếu chi mà ko routing được :cry:
Thank!

cisco336
04-07-2005, 10:34 PM
LAN_1 (10.218.252.0/24)-> Modem ----------> Router 2620 ----> LAN_2 (10.218.1.0/24)

Cấu hình bạn nêu ra có phải là của router 2620? Nếu đúng thì bạn đang có vấn đề về thiết kế địa chỉ IP rồi.

nhatphuc
04-07-2005, 10:38 PM
Sao lại có vấn đề về thiết kế địa chỉ IP vậy bạn?

cisco336
05-07-2005, 12:44 PM
bạn sensitive thử post output của lệnh "show ip route" của router 2620 sau khi có dial-up users quay vào xem

sensitive
05-07-2005, 04:54 PM
:D
Vô cùng xin lỗi mọi người, vấn đề mình tìm ra nguyên nhân ko phải do router mà do con máy firewall địa chỉ 10.218.1.1 đó chặn :P Cám ơn các bạn đã giúp mình rất nhiều

fox
26-09-2006, 10:34 AM
chặn :P là gì tôi không hiểu bạn có thể nói rõ được không