hostname <您路由器的名称> ! enable password <进入特权模式的口令> ! no ip name-server ! ip subnet-zero no ip domain-lookup ip routing !
interface Ethernet 0 ip nat inside no shutdown description connected to EthernetLAN ip address <以太网口IP地址及子网掩码> no keepalive ! interface Serial 0 physical async no description no ip address encap ppp async default routing async mode dedicated dialer in-band dialer rotary-group 1 no shutdown ! interface Serial 1 physical async no description no ip address encap ppp async default routing async mode dedicated dialer in-band dialer rotary-group 1 no shutdown ! interface dialer 1 ip nat outside no shutdown ip unnumbered Ethernet 0 ip address negotication ip tcp header-compression passive dialer string 169 encapsulation ppp async default routing async mode dedicated group-range <异步端口号范围> (通过SHOW LINE命令显示) ppp authentication pap callin pap sent 用户名 password 口令
dialer-group 1 no cdp enable ! dialer-list 1 protocol ip permit router rip version 2 network <内网段地址> no auto-summary ! ! ip classless no ip http server snmp-server community public RO no snmp-server location no snmp-server contact ! ip route 0.0.0.0 0.0.0.0 dialer1 line console 0 exec-timeout 0 0 password <从控制台端口登录进用户模式所需口令> login ! line vty 0 4 password login ! line <异步线号范围> exec autoselect ppp autoselect during-login login local modem InOut transport input all stopbits 1 speed 38400 flowcontrol hardware ! end