View Full Version : Cisco 827-ADSL have problem
herry
03-01-2004, 06:24 PM
Hi
Hiện nay mình co 1 Ciso827 -ADSL nhưng config hoi không chay được.vậy bạn nào biết xin giúp mình với
Thanks
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
!
!
!
!
interface Ethernet0
ip address 192.168.100.1 255.255.255.0
ip nat inside
hold-queue 100 out
!
interface ATM0
no ip address
no atm ilmi-keepalive
pvc 8/35
pppoe-client dial-pool-number 1
!
dsl operating-mode auto
!
interface Dialer0
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap callin one-time
ppp chap hostname <>
ppp chap password <>
ppp pap sent-username <> password <>
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
ip http server
!
!
access-list 1 permit 192.168.100.0 0.0.0.255
!
line con 0
stopbits 1
line vty 0 4
!
scheduler max-task-time 5000
end
sinhvienngheo
04-01-2004, 09:15 AM
herry,
cấu hình NAT bị sai rồi.
Xem thêm cách cấu hình NAT ở đây:
- NAT
http://vnpro.org/forum/viewtopic.php?t=1616
http://vnpro.org/forum/viewtopic.php?t=1818
VI. Cơ bản về NAT
Vị trí server và virtual Host trong cấu hình NAT
http://www.vnpro.org/forum/viewtopic.php?t=2591
Firewall và NAT
http://www.vnpro.org/forum/viewtopic.php?t=1816
Cơ bản về NAT
http://www.vnpro.org/forum/viewtopic.php?t=2025
Static route for NAT
http://www.vnpro.org/forum/viewtopic.php?t=1616
Chúc herry thành công,
herry
04-01-2004, 10:13 AM
Dưới đây là cách cấu hình mới nhưng vẫn không chạy
interface ethernet0
ip address 192.168.1.1 255.255.255.0
ip nat inside
no shut
!
interface atm0
no ip address
dsl operating-mode auto
no shut
!
interface atm0.1 point-to-point
no ip address
no ip directed-broadcast
pvc 8/35
pppoe-client dial-pool-number 1
!
interface dialer0
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
ppp chap hostname
ppp chap password <password>
ppp pap sent-username password <password>
!
ip nat inside source list 1 interface dialer0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 interface dialer 0
access-list 1 permit 192.168.1.0 0.0.0.255
!
end
thanks
sinhvienngheo
04-01-2004, 11:24 AM
HERRY,
thử cấu hình này và cho svn biết kết quả:
ethernet0
ip address 192.168.1.1 255.255.255.0
ip nat inside
no shut
!
interface atm0
no ip address
dsl operating-mode auto
no shut
!
interface atm0.1 point-to-point
no ip address
no ip directed-broadcast
pvc 8/35
pppoe-client dial-pool-number 1
!
interface dialer0
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 2
ppp authentication pap chap
ppp pap sent-username password <password>
!
ip nat inside source list 1 interface dialer0 overload
dialer-list 2 protocol ip permit
ip classless
ip route 0.0.0.0 0.0.0.0 interface dialer 0
access-list 1 permit 192.168.1.0 0.0.0.255
!
end
chúc thành công,
herry
04-01-2004, 04:27 PM
Hi
Với cấu hình trên vẫn chưa chạy được.Có chổ này có vấn đề.Tất cả đều up
ATM0 is up, line protocol is up
ATM0.1 is up, line protocol is up
Dialer0 is up (spoofing), line protocol is up (spoofing)
Ethernet0 is up, line protocol is up
interface ATM0.1 point-to-point
pvc 8/35
pppoe-client dial-pool-number 1
!
interface dialer0
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 2
ppp authentication pap???????????????????? có vấn đề chổ này.. không cho định nghĩa?
ppp pap sent-username password <password>
!
====================================
Dòng này Hardware is Unknown có ý nghĩa là gì? Mình vẫn chưa hiểu.
Mong chờ câu trả lời.
Cám ơn.
Dialer0 is up (spoofing), line protocol is up (spoofing)
Hardware is Unknown
Internet address will be negotiated using DHCP
MTU 1500 bytes, BW 56 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
DTR is pulsed for 1 seconds on reset
Last input never, output never, output hang never
Last clearing of "show interface" counters 00:36:51
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/16 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 42 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes
0 packets output, 0 bytes
Thanks.
sinhvienngheo
04-01-2004, 05:12 PM
herry,
hardware is unknow là do interface của herry là interface dialer.
herry thêm vào các lệnh sau nhé:
interface dialer0
ip mtu 1492
ppp authentication pap callin
ppp authen pap sent-username password <password>
còn trong interface atm, thêm vào
#interface atm0
#bundle-enable
Chúc may mắn,
herry
04-01-2004, 07:31 PM
Hi Sinhvienngheo,
Kho^ng may mắn ro^`i SVN oi.
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
!
!
!
!
interface Ethernet0
ip address 192.168.100.50 255.255.255.0
ip nat inside
hold-queue 100 out
!
interface ATM0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
!
interface ATM0.1 point-to-point
pvc 8/35
pppoe-client dial-pool-number 1
!
!
interface Dialer0
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 2
ppp authentication pap callin
************************************************** ***********
*Note:
*Router(config-if)#ppp authentication pap callin
*AAA: Warning, authentication list "default" is not defined for PPP.
************************************************** ***********
ppp pap sent-username xxxxxx password 0 yyyyyy
!
ip nat inside source list 1 interface Dialer0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
ip http server
!
!
access-list 1 permit 192.168.100.0 0.0.0.255
dialer-list 2 protocol ip permit
!
line con 0
stopbits 1
line vty 0 4
password 123
login
!
scheduler max-task-time 5000
end
herry,
hardware is unknow là do interface của herry là interface dialer.
herry thêm vào các lệnh sau nhé:
interface dialer0
ip mtu 1492
ppp authentication pap callin
ppp authen pap sent-username password <password>
còn trong interface atm, thêm vào
#interface atm0
#bundle-enable
Chúc may mắn,
sinhvienngheo
04-01-2004, 07:45 PM
HERRY,
Vậy điều chỉnh lại một chút phần authentication.
trong interface dialer
#ppp authentication chap callin
#ppp authentication chap hostname <username>
#ppp authentication chap password <password>
Herry thử và báo kết quả lại cho svn biết.
Chúc may mắn,
herry
05-01-2004, 12:18 PM
Hi all
Cấu hình trên vân chưa chạy
interface Dialer0
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 2
ppp authentication chap callin
ppp chap hostname xxx
ppp chap password 0 xxx!
!
Router(config-if)#ppp authentication chap callin ?
WORD Use an authentication list with this name
callback Authenticate remote on callback only
callout Authenticate remote on outgoing call only
default Use the default authentication list
one-time Allow use of username*OTP for one-time passwords
optional Allow peer to refuse to authenticate
<cr>
Tới bước này mình đánh bất kỳ lệnh gì vô cũng báo như sau:
Router(config-if)#ppp authentication chap callin
AAA: Warning, authentication list "default" is not defined for PPP.
anh em giúp
thanks
dangquangminh
05-01-2004, 01:49 PM
herry,
trong cấu hình atm interface point-to-point, dùng đoạn cấu hình sau:
interface ATM0.1 point-to-point
pvc 8/35
ubr 77
encapsulation aal5mux ppp dialer
dialer pool-member 1
thử và báo lại kết quả nhé,
Về warning của phần ppp, cứ việc bỏ qua.
Thân mến,
herry
07-01-2004, 12:00 PM
Hi All
Với cách cấu hình này em đã lam qua nhưng vẫn không chạy.Tất cả đều báo up nhưng vẩn không được.
ATM0 is up, line protocol is up
ATM0.1 is up, line protocol is up
Dialer0 is up (spoofing), line protocol is up (spoofing)
Ethernet0 is up, line protocol is up
interface ATM0.1 point-to-point
pvc 8/35
ubr 77
encapsulation aal5mux ppp dialer
dialer pool-member 1
thanks
admin
07-01-2004, 12:23 PM
herry,
Đây là một working configs. Herry gõ lại y chang cấu hình này vào con router củ chuối kia nhé. Nhớ no shut các interface.
CHúc thành công,
Admin@
--------------------------------------
hostname 827
!
logging buffered 8192 debugging
no logging console
aaa new-model
!
!
aaa authentication login vty-access local
aaa authentication login console-access local
aaa session-id common
enable secret 5 xxxxxxxxxxxxxxxxxx
!
username cisco password 7 104D000A0618
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
no ip source-route
no ip domain-lookup
!
!
!
!
interface Ethernet0
ip address 10.10.10.1 255.255.255.0
no ip proxy-arp
no cdp enable
hold-queue 100 out
!
interface ATM0
no ip address
no atm ilmi-keepalive
bundle enable
!
dsl operating-mode auto
hold-queue 224 in
!
interface ATM0.1 point-to-point
pvc 1/32
ubr 77
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface Dialer1
ip address negotiated
encapsulation ppp
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap callin
ppp chap hostname cisco
ppp chap password 7 vnproxxxxx
!
ip nat inside source list 101 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
!
!
logging source-interface ATM0.1
access-list 101 permit ip any any
dialer-list 1 protocol ip permit
no cdp run
!
line con 0
logging synchronous
login authentication console-access
history size 256
stopbits 1
line vty 0 4
logging synchronous
login authentication vty-access
history size 256
transport preferred none
transport input telnet
transport output none
!
scheduler max-task-time 5000
end
herry
09-01-2004, 04:26 PM
Hi all
Hiện cấu hình trên vẩn không chạy nhưng không sao mình đã cấu hình chạy rồi.Với cách cấu hình khác cơ nhưng mình nghĩ có rất nhiều cách cấu hình.Rất cảm ơn các anh chị đã giúp đỡ trong thời gian qua.
kieu xuan viet
thanks
chipchipzzz
09-01-2004, 04:39 PM
Hi Việt,
Cấu hình ADSL của Việt như thế nào?
có thể post lên để mọi người xem ko?
Thân mến,
TGA_Certificationteam
09-01-2004, 08:44 PM
Việt !
Check :
ADSL Wan interface đã nhận được IP ?
Nếu cảm thấy mọi việc quá phức tạp, Việt erase hết config (trả về trạng thái default và sữ dụng tool CRWS để config.
Cắm ADSL Router 837 vào LAN, set ip của mình trùng với Range 10.10.10.0/24, sau đó dùng web truy cập vào địa chỉ 10.10.10.1
Sau khi xuất hiện webconsole, Việt chọn autodetect, khi đó Router sẽ autodetect và generate cấu hình cho Việt, Việt chỉ cần nhập những username, password cần thiết thôi. Sau đó save lại và kiểm tra cấu hình = CLI thông thường.
Chú ý CRWS chỉ có ở Version 12.2 về sau.
herry
12-01-2004, 11:00 AM
Hi All
cách của bạn config bằng web quá tuyệt vời.Nó vừa cho mình kiểm tra lỗi và menu rất dễ.Một lần nữa cảm ơn tất cả các bạn đã giúp đở.Nếu có dịp chác chắn chúng ta lại gặp nhau.
kiếu xuân việt.
Chuyên cung chấp Router và Switch Cisco secondhand.
sinhvienngheo
14-01-2004, 01:16 PM
Hi Việt,
Việt có thể post config của bạn lên đây được không?
Mình đoán răng bạn cần phải điều chỉnh các giá trị ip mtu và tcp mss. Việc điều chỉnh này nhằm khắc phụ mạng chạy không ổn định trên các media khác nhau.
Xem file đính kèm,
admin
14-01-2004, 01:49 PM
Hi
Đây là đoạn code để cấu hình lại mtu và mss
interface ethernet0
no shut
ip address <ip address> <subnet mask>
ip adjust-mss 1452
!--- The TCP MSS command requires an MSS of 1452, not 1492.
ip nat inside
no ip directed-broadcast
Có thể dùng phần mềm drtcp để điều chỉnh trên NIC. Download phần mềm ở file đính kèm.
Chúc mọi người vui vẻ,
ltboy221
28-01-2010, 12:20 AM
Alo, chào các cao thủ võ lâm, làm ơn giải thích giùm tôi ý nghĩa các tham số ở câu lệnh sau:
Router(config) interface ATM 10/1.100099 poit-to-point
và
Router(config)ATM pvc 100099 11 99 aal5snap 0 0 0
xin cảm ơn.
phamminhtuan
28-01-2010, 02:23 AM
Chào bạn,
Câu lệnh 1 chỉ định point to point sub interface:
+ 10 là slot
+ 100099 là số của sub interface
+ point to point: 1-1 (tức đầu kia không thể nối 2 thiết bị)
Router(config)# interface atm slot/1.subinterface-number point-to-point
Câu lệnh 2
atm pvc vcd vpi vci aal-encap [[midlow midhigh] [peak average [burst]]] [inarp [minutes]]—Creates a permanent virtual circuit (PVC) on an ATM interface, and optionally, generates Operation and Maintenance (OAM) F5 loopback cells or enables Inverse ATM ARP
Xem thêm ở đây.
http://www.ciscosystems.ch/en/US/tech/tk39/tk371/technologies_configuration_example09186a0080094cff .shtml
ltboy221
28-01-2010, 10:53 PM
mình cảm ơn nhiều nha, nhưng mình chưa hiểu "slot/1" ở đây số 1 có ý nghĩa thế nào? subinterface-number lấy ở đâu, được cấp thế nào? (thông cảm nhé vì dân không chuyên sâu nên còn mơ hồ lắm).
Router(config)# interface atm slot/1.subinterface-number point-to-point
dangquangminh
28-01-2010, 11:05 PM
slot number: chỉ ra vị trí của port ADSL trên router. Bạn hình dung con Router của bạn giống như một cái tủ sách có nhiều ngăn kéo (Slot). Có một ngăn kéo bạn dùng để đựng sách Trinh thám, gọi là slot 3.
Router của bạn cũng có thể có nhiều loại giao tiếp. Khi bạn cấu hình ADSL thì cần chỉ ra (định vị) vị trí của cổng adsl trên Router.
ltboy221
28-01-2010, 11:17 PM
cảm ơn sự giúp đỡ rất nhiệt tình.
cho mình hỏi thêm về câu lệnh thứ 2, ý nghĩa các số 11,99, 0,0,0
Router(config)ATM pvc 100099 11 99 aal5snap 0 0 0
và sự khác nhau về ý nghĩa của 2 câu lệnh sau đây sau khi được cấu hình trên Router (ý mình là có phân biệt dải địa chỉ nào dùng cho wan, dải địa chỉ nào cho LAN):
R_A:VPN1(config)#ip route 172.16.1.1 255.255.255.255 192.168.1.2 atm 10/1.1101110999
R_A:VPN1(config)#ip route 10.10.1.0 255.255.255.0 192.168.1.2 atm 10/1.1101110999
dangquangminh
29-01-2010, 09:44 AM
Nguyên câu lệnh
Router(config)ATM pvc 100099 11 99 aal5snap 0 0 0
giúp bạn định vị và cấu hình cổng atm. Bạn hình dung rằng có một "ống nước" - một mạch PVC từ nhà cung cấp ISP den router của bạn. Để hoạt động được thì phải chỉ định, cài đặt cho PVC đó. Các giá trị 0 0 0 theo tôi là các giá trị mặc định do hệ điều hành tạo ra và bạn không nhất thiết thay đổi. aal5snap là kieu đóng gói được dùng cho PVC 100099 này.
Về hai câu lệnh
R_A:VPN1(config)#ip route 172.16.1.1 255.255.255.255 192.168.1.2 atm 10/1.1101110999
R_A:VPN1(config)#ip route 10.10.1.0 255.255.255.0 192.168.1.2 atm 10/1.1101110999
thì ý nghĩa của nó là bạn dạy cho router các đường mạng xung quanh. Đây là kiểu cấu hình định tuyến tĩnh. Ý nghĩa của câu lệnh thứ hai là có một mạng 10.10.1.0. Muốn gói tin đi về địa chỉ mạng đó, hãy đẩy gói tin về địa chỉ 192.168.1.2 nếu cong atm10/1.1101110999 là đang UP.
ltboy221
01-02-2010, 11:18 PM
thank u, Cho tôi hỏi
- nói một cách ngắn gọn thì "định tuyến hiện" là gì? khác với "định tuyến hop by hop" ở điểm nào?
phamminhtuan
02-02-2010, 12:04 AM
Chào bạn,
Trong mạng MPLS
http://c.upanh.com/upload/2/614/FO0.6696769_1_1.jpg
Nếu dùng "hop by hop" thì mạng chỉ đi qua LSR4 => quá tải trong khi vẫn còn 1 đường khác để đi tới LSR7 là qua LSR5->LSR6.
Vì thế dùng explicit routing (định tuyến hiện) sẽ giải quyết được việc này.
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.