dialer map lp 192.200.10.2 name router2 572
dialer load-threshold 8O
ppp multilink
dialer-group 1
ppp atlthentication chap
!
dialer-list 1 protocol ip permit
!
Router2:
hostname router2
user router1 password clsco
!
isdn switch-type basic-net3
!
Interface bri O
ip address 192.2O0.10.2 255.255.255.0
encapsulation ppp
dialer map ip 192.2O0.10.1 name router1 571
dialer loadthreshold 8O
ppp multilink
dialer-group 1
ppp authentication chap
!
dialer-list 1 protocol ip permit
!
Ciscl路由器同时支持回拨功能,我们将路由器 Router1作为 Callback
Server,Router2作为 Callback Client。
与回拨相关的命令:
任务 命令
映射协议地址和电话号码,并在接口上
使用在全局模式下定义的 PPP回拨的
映射类别
Dialer map protocol address name
Host name class classname
Dial-string
设置接口支持 PPP回拨 ppp callback accept
在全局模式下为 PPP回拨设置映射类
别
Map-class dialer classname
通过查找注册在 dialer map里的主机
名来决定回拨 Dialer callback-server[username]
设置接口要求 PPP回拨 Ppp callback request
设置如下:
Routerl:
hostname routerl
user router2 password cisco
!
isdn switch-type basic-net3
l ppp authentication chap
!
map-class dialer s3
dialer callback-server username
dialer-list l protocol ip permit
!
Router2:
hostname router2
user routerl password cisco
!
isdn switch-type basic-net3
!
interface bri O
ip address 192.2OO.10.2 255.255.255.O
encapsulation ppp
dialer map ip 192.200.10.1 name routerl 571
dialer load-threshold 8O
ppp callback request
ppp multilink
dialer-group l
ppp authentication chap
!
dialer-list l protocol ip permit
!
相关调试命令
debug dialer
debug isdn event
debug isdn q921
debug isdn q931
debug ppp authentication
debug ppp error
debug ppp negotiation
debug ppp packet
show dialer
show isdn status
举例:执行 debug dialer命令观察 router2呼叫 router1,router1回拨
router2的过程。
routerl#debug dialer
Router2#ping 192.2O0.10.1
00:03:50:%LINK-3-UPDOWN:interface BRI0:1, changed state to
Up 00: 03: 50: BRIO: l: PPP callback Callback server Starting to
router2 572 OO:03:5O:BRIO:l:disconnecting Call
00: 03: 5O:% LINK-3-UPDOWN: Interface BRIO: l, changed state to
down
00:03:50:BRIO:l:disconnecting call
00:O3:5O:BRIO:l:disconnecting Call
O0:03:51:%LINK-3-UPDOWN: Interface BRIO:2, changed state to up
00:O3:52:callback to router2 already started
OO:03:52:BRIO:2:disconnecting Call
OO:O3:52:%LINK-3-UPDOWN: Interface BRIO:2, changed state to
down
OO:03:52:BR10:2:disconnecting call
00:03:52:BRIO:2:disconnecting call
OO:04:O5:: Callback timer expired
00:04:05:BRI0:beginning callback to router2 572
00:04:O5:BRIO: Attempting to dial 572
00:04:O5:freeing callback to router2 572
00:04:05:%LINK-3-UPDOWN:Interface BRIO:l, changed state to up
0O:04:05: BRIO:l: NO Callback negotiated
0O:04:05:%LINK-3-UPDOWN:Interface Virtual-Access1,change state
to up
0O:04:05:dialer Protocol up for Vil
0O:04:06:%LINEPROTO-5-UPDOWN:Line protocol on Interface BRIO:l,
changed state to up
00: 04: 06: % LINEPROTO-5-UPDOWN: Line protocol on Interface
Virtual-Access 1, changed state to up
00:04:11:%ISDN-6-CONNECT:Interface BRIO:1 is now connected to
572
#routerl
4.ISDN访问首都在线 263实例
本地局部地址为 1O.0.O.0/24,属于保留地址,通过 NAT地址翻译功
能,局域用户可以通过 ISDN上 263访问 1nternet。263的 ISDN电记号码
为 2633,用户为 263,口令为 263,所涉及的命令如下表:
任务 命令
指定接口通过 PPP/IPCP地址协
商获得 IP地址
Ip address negotiated
指定内部和外部端口 Ip nat {inside|outside}
使用 ppp/pap作认证 Ppp authentication pap callin
指定接口属于拨号口 1 Dialer-group1
定义拨号组 1允许所有 IP协议 Dialer-list 1 protocol ip permit
设定拨号,号码为 2633 Dialer string 2633
设定登陆 263的用户名和口令 Ppp pap sent-username 263
Passwrd 263
设定默认路由 Ip router 0.0.0.0 0.0.0.0 bri 0
设定符合访问列表 2的所有源地
址被翻译为 bri 0所拥有的地址
Ip nat inside sourse list 2 interface
bri 0 overload
设定访问列表 2,允许所有协议 Access-list 2 permit any
具体配置如下:
hostname Cisco2503
!
isdn switch-type basic-net3
!
ip subnet-zero
no iP domain-lockup
ip routing
!
interface Ethernet O
ip address 10.0.0.1 255.255.255.0
ip nat inside
no shutdown
!
interface Serial 0
shutdown
no description
no ip address
!
interface Serial 1
shutdown
no description
no ip address
!
interface bri 0
ip address negotiated
ip nat outside
encapsulation ppp
ppp authentication pap callin
ppp multilink
dialer-group 1
dialer hold-queue 10
dialer string 2633
dialer idle-timeout 120
ppp pap sent-username 263 password 263
no cdp enable
no ip split-horizon
no shutdown
!
ip classless
!
!Static Routes
!
ip route 0.0.0.0 0.0.0.0 bri 0
!
!Access Control List 2
!
access-list 2 permit any
!
dialer-list 1 protocol ip permit
!
! Dynamic NAT
!
ip nat inside source list 2 interface bri 0 overload
snmp-server community public ro
!
line console O
exec-timeout O O
!
line vty O 4
!
end
5.Cisco765M通过 ISDN 拨号上 263
由于 Cisco765的设置命令与我们常用的 Cisco路由器的命令不同,所以
以下列举了通过 Cisco765上 263访问 Internet的具体命令行设置步骤。
>set system c765
c765>set multidestination on
c765>set switch net3
c765>set ppp multilink on
c765>cd lan
c765:LAN> set ip routing on
c765:LAN> set ip address 10.0.0.l
c765:LAN> set ip netmask 255.0.0.O
c765:LAN> set briding off
c765:LAN>cd
c765> set user remotenet
New user remotenet being created
c765:remotenet>set ip routing on
c765:remotenet>set bridging off
c765:remotenet> set ip framing none
c765:remotenet> set ppp clientname 263
c765:remotenet> set ppp password client
Enter new Password: 263
Re-Type new Password: 263
c765:remotenet> set ppp authentication out none
c765:remotenet> set ip address 0. 0.0.O
c765:remotenet> set ip netmask 0.0.0.0
c765:remotenet> set ppp address negotiation local on
c765:remotenet> set ip pat on
c765:remotenet> set ip route destination O.0.0.0
c765: remotenet> set number 2633
c765:remotenet> set active
命令描述如下:
任务 命令
设置路由器系统名称 set sys
今天的文章产品iis_is09000的质量管理体系「建议收藏」分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/64283.html