首页 > 网管 > 局域网 > 正文

远端用户拨号连入局域网

2019-11-05 03:11:11
字体:
来源:转载
供稿:网友

  service timestamps debug uptime
  service timestamps log uptime
  service passWord-encryption
  no service tcp-small-servers
  no service udp-small-servers
  !
  hostname <您路由器的名称>
  !
  enable password <进入特权模式的口令>
  username <拨入用户名> password <拨入用户口令>
  !
  no ip name-server
  !
  ip subnet-zero
  no ip domain-lookup
  ip routing
  !
  interface Ethernet 0
  no shutdown
  description connected to EthernetLAN
  ip address <以太网口IP地址及子网掩码>
  no keepalive
  !
  interface Serial 0
  no description
  no ip address
  shutdown
  !
  interface Serial 1
  no description
  no ip address
  shutdown
  !
  interface Group-Async 1
  no shutdown
  description connected to Dial-inPCs(modem)
  ip unnumbered Ethernet 0
  ip tcp header-comPRession passive
  encapsulation ppp
  async mode dedicated
  group-range <异步端口号范围>
  ppp authentication chap
  no cdp enable
  peer default ip address pool <本地地址池名称>
  !
  router rip
  version 2
  network <内网段地址>
  no auto-summary
  !
  !
  ip local pool <本地地址池名?gt; <将分配给拨入用户的IP地址范围>
  ip classless
  no ip http server
  snmp-server community public RO
  no snmp-server location
  no snmp-server contact
  !
  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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表