国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

1750做接入服務(wù)器配置實(shí)例

2019-11-04 23:51:23
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

  用17500的aux口傳異步撥號(hào):
  (config)# line aux 0
  (config-line)# login
  (config-line)# passWord cisco
  (config-line)# speed 115200
  (config-line)# flowcontrol hardware
  (config-line)# stopbits 1
  (config-line)# transport input all
  (config-line)# modem inout
  
  再配置反向telnet:
  (config)# int lo0
  (config-if)# ip address 1.1.1.1 255.255.255.0
  (config)# ip host modem 2005 1.1.1.1
  
  用show line看到aux口的線(xiàn)序號(hào)是5,那么反向telnet的端口就是2000+5=2005
  
  可以用where命令查看打開(kāi)的對(duì)話(huà)!
  
  上面配置好以后,將接1750上Modem設(shè)為ats0=1(最開(kāi)始沒(méi)有將這個(gè)設(shè)為1,所以一直撥不通!),對(duì)方的Modem就可以撥號(hào)成功,但是按回車(chē)以后還是沒(méi)有反應(yīng)。不能進(jìn)入路由器!因?yàn)闆](méi)有對(duì)異步口進(jìn)行配置!
  
  要實(shí)現(xiàn)遠(yuǎn)程路由器治理:
  (config)# int asy 5
  (config-if)# en ppp
  (config-if)# asyn mode dedicated
  
  對(duì)遠(yuǎn)程用戶(hù)分配IP地址:
  (config)# int asy 5
  (config-if)# peer default ip address 192.168.10.2
  
  需要對(duì)撥號(hào)用戶(hù)使用地址池,可以這樣:
  (config)# ip local pool wolf 192.168.0.50 192.168.0.254
  (config)# int asy 5
  (config-if)# peer default ip address pool wolf
  
  不過(guò)好象要重啟路由器才有效!
  
  Building configuration...
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname Router
  !
  enable password cisco
  !
  memory-size iomem 25
  ip subnet-zero
  ip host modem 2005 1.1.1.1
  !
  interface Loopback0
  ip address 1.1.1.1 255.255.255.0
  !
  interface Serial0
  no ip address
  shutdown
  !
  interface FastEthernet0
  no ip address
  shutdown
  speed auto
  !
  interface Async5
  ip address 192.168.0.1 255.255.255.0
  encapsulation ppp 這個(gè)一定要!不然看到的是亂碼!
  async mode dedicated 一定要!若改成async mode inter,對(duì)方撥號(hào)時(shí)總是停在檢驗(yàn)用戶(hù)名和密碼那里!若兩個(gè)都不設(shè),撥號(hào)不上!
  peer default ip address 192.168.0.2
  !
  ip classless
  no ip http server
  !
  line con 0
  transport input none
  line aux 0
  password cisco
  login
  modem InOut
  transport input all
  stopbits 1
  speed 115200
  flowcontrol hardware
  line vty 0 4
  login
  !
  no scheduler allocate
  end
  
  以上配置的效果就是:對(duì)方撥號(hào),不需要用戶(hù)名和密碼,連結(jié)成功,就和撥96169一樣!
  
  要讓撥號(hào)用戶(hù)加上認(rèn)證可以這樣做:
  (config)# username wolf password igpwwk
  (config)# int asy 5
  (config-if)# ppp au pap
  也可以使用chap認(rèn)證:
  (config-if)# ppp au chap
  或者同時(shí)使用:
  (config-if)# ppp au chap ppp (config-if)# ppp au ppp chap
  
  以下是將串口模擬成異步口:
  Building configuration...
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname Router
  !
  enable password cisco
  !
  username wolf password 0 igpwwk
  !
  memory-size iomem 25
  ip subnet-zero
  ip host modem 2001 1.1.1.1
  !
  interface Loopback0
  ip address 1.1.1.1 255.255.255.0
  !
  interface Serial0
  physical-layer async
  ip address 192.168.0.1 255.255.255.0
  encapsulation ppp
  async mode dedicated
  peer default ip address 192.168.0.10
  ppp authentication chap
  !
  interface FastEthernet0
  no ip address
  shutdown
  speed auto
  !
  interface Async5
  no ip address
  !
  ip classless
  no ip http server
  !
  line con 0
  transport input none
  line 1
  password cisco
  login
  modem InOut
  transport input all
  stopbits 1
  speed 115200
  flowcontrol hardware
  line aux 0
  login
  transport input all
  speed 115200
  line vty 0 4
  login
  !
  End
  
  Router#sh line
  Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
  * 0 CTY - - - - - 2 0 0/0 -
  A 1 TTY 115200/115200- inout - - - 2 7 0/0 Se0
  5 AUX 115200/115200- - - - - 1 0 0/0 -
  6 VTY - - - - - 0 0 0/0 -
  7 VTY - - - - - 0 0 0/0 -
  8 VTY - - - - - 0 0 0/0 -
  9 VTY - - - - - 0 0 0/0 -
  10 VTY - - - - - 0 0 0/0 -
  
  Line(s) not in async mode -or- with no hardware support: 2-4


發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 武安市| 衡东县| 武清区| 湘阴县| 信丰县| 内江市| 临猗县| 辛集市| 亚东县| 金昌市| 古浪县| 花莲市| 家居| 龙山县| 福建省| 民县| 莱阳市| 石屏县| 平昌县| 建宁县| 台山市| 贺州市| 临澧县| 渑池县| 神池县| 吉木萨尔县| 华池县| 都昌县| 安化县| 郧西县| 华亭县| 太康县| 利川市| 汉寿县| 华坪县| 贵南县| 高邑县| 台前县| 阜南县| 东阳市| 清涧县|