AUX接MODEN

拿aux接modem,虽然听上去挺简单,但是实际作起来还是有些问题的,特地拿出一个配置分析一下,希望给正在苦苦挣扎的菜鸟有所帮助 
Building configuration... 

Current configuration:
!
version 12.1
service timestamps debug datetime localtime
service timestamps log datetime localtime
service password-encryption
!
hostname SH-2620
!
logging buffered 4096 informational
enable secret 5 $1$kI7E$dleXUO/MXa2hek2C7iKSM/
!
!定义PPP的认证用户
username cisco password 7 070C285F4D06
!
!
clock timezone GMT 8
ip subnet-zero
no ip domain-lookup
!
ip address-pool local
lane client flush


!
!
interface FastEthernet0/0
ip address 192.168.0.254 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.10.10.2 255.255.255.0
no fair-queue
clockrate 4000000
!此异步口属于虚拟接口,实际不存在
interface Async65
ip unnumbered FastEthernet0/0
encapsulation ppp
dialer in-band
async default routing
async dynamic address
async mode interactive
peer default ip address pool mypool
ppp authentication pap

!IP分配池,连接终端使用 
ip local pool mypool 192.168.0.200 192.168.0.250
ip classless
ip route 0.0.0.0 0.0.0.0 10.10.10.1
ip route 10.64.0.0 255.255.0.0 10.70.1.5
ip route 192.168.0.0 255.255.0.0 10.70.1.5
no ip http server
!
!
line con 0
logging synchronous
transport input none
line aux 0
autoselect ppp
modem Dialin
modem autoconfigure discovery
speed 115200
flowcontrol hardware
line vty 0 4
password 7 14141B180F0B
logging synchronous
login
!
end 


这么多行,看上去很累啊,特别注意看一下interface async65和aux口的配置就行了 

注意事项:aux口和modem的速率必须一致,并在aux口上选择封装PPP协议
我在配置的时候,aux上的autoselect ppp忘加了,搞死了,大家以后要配modem的时候请特别注意。

你可能感兴趣的:(aux,moden)