2、功能:用于遠端用戶撥號接入。 3、具體技術配置參數:2611撥號服務器(端口使用S0/0廣域口)的ip地址為148.90.1.254,子網掩碼為255.255.255.0,用戶撥號分配的IP地址范圍為:148.90.1.1—148.90.1.100,登錄用戶名為guest,口令為guest。2611路由器局域網口(端口使用E0/0局域網口)IP地址為148.90.64.1,子網掩碼為255.255.255.0,本地域名服務器IP地址為148.90.64.160。 4、2611具體配置信息: hostname 2611 enable secret cisco username guest passWord guest //用戶登錄帳號、密碼 ip name-server 148.90.64.160 //設置域名服務器地址 interface Ethernet0/0 ip address 148.90.64.1 255.255.255.0 ip directed-broadcast interface Serial0/0 physical-layer async //將端口工作方式設置為異步方式,2611路由器默認為同步方式 ip address 148.90.1.254 255.255.255.0 no ip directed-broadcast encapsulation ppp //封裝PPP async dynamic routing //動態路由 async default routing //默認路由 async mode interactive //進入交互方式 peer default ip address pool setup_pool //設置撥號IP地址范圍 ppp authentication chap pap //驗證方式CHAP或PAP ip local pool setup_pool 148.90.1.1 148.90.1.100 ip http server //開啟路由器自身WWW服務功能 line 1 autoselect during-login autoselect ppp login local autocommand ppp //自動進入PPP方式 speed 115200 flowcontrol hardware line vty 0 4 login local end 5、Hayes 336 Modem設置 2611用作撥號撥入服務器,須將Modem設置為自動應答狀態,常見的AT控制命令為:AT&F&C1&D2&S0=1&W。 二、利用2611路由器實現163撥號撥出功能 1、網絡拓撲結構(圖二): (圖二)
2、功能:用于撥163上互聯網,尤其適合專線上網出現故障時撥號備份。 3、具體技術配置參數:2611撥號服務器(端口使用S0/1廣域口)撥電信163,撥電話號碼163,登錄用戶名為163,口令為163,IP地址在撥號時連接由電信撥號服務器動態分配。2611路由器局域網口(端口使用E0/0局域網口)IP地址為192.168.0.1,子網掩碼為255.255.255.0。江蘇電信互聯網域名服務器IP為202.102.11.141。要實現局域網中微機能夠訪問外部網絡,需要使用NAT(網絡地址轉換)技術,同時將網關設為192.168.0.1。 4、2611具體配置信息: hostname 2611 enable secret cisco ip name-server 202.102.11.141 interface Ethernet0/0 ip address 192.168.0.1 255.255.255.0 ip directed-broadcast ip nat inside //定義此端口為網絡的內部端口 interface Serial0/1 physical-layer async ip address negotiated //IP地址協商 no ip directed-broadcast ip nat outside encapsulation ppp //端口封裝PPP dialer in-band //支持DDR(按需撥號) dialer string 163 //撥號電話163 dialer hold-queue 10 dialer-group 1 async default routing async mode interactive ppp authentication pap callin ppp pap sent-username 163 password 163 ip nat inside source list 2 interface Serial0/1 overload //復用動態地址轉換 ip classless ip route 0.0.0.0 0.0.0.0 Serial0/1 140 // 添加一個缺省路由 access-list 2 permit any //答應內部網絡訪問 dialer-list 1 PRotocol ip permit line 2 modem InOut modem autoconfigure discovery speed 115200 flowcontrol hardware line vty 0 4 login local end 三、常用調試方法 由于網絡連接涉及多種設備,調測過程中經常會出現各種各樣的問題,為了便于分析了解故障原因,需要一些調試手段,常見的調試命令為: l debug modem l debug chat-script l debug dialer l debug ppp negotiation l show interface s0/0(s0/1) //顯示端口狀態 l show ip route //觀測路由是否生成 l ping IP地址 由于網絡設備的限制,本次測試僅限于Cisco2611路由器,該配置亦適用于1600系列、2500系列、3600系列路由器。