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

局域网用户通过ISDN拨入首都在线访问Internet

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

  service timestamps debug uptime
  service timestamps log uptime
  service passWord-encryption
  no service tcp-small-servers
  no service udp-small-servers
  !
  hostname <您路由器的名称>
  !
  enable password <进入特权模式的口令>
  !
  no ip name-server
  !
  isdn switch-type basic-net3
  !
  ip subnet-zero
  no ip domain-lookup
  ip routing
  !
  interface Dialer 1
  description connected to Internet
  ip address negotiated
  ip nat outside
  no ip split-horizon
  encapsulation ppp
  dialer in-band
  dialer idle-timeout <无数据传输时断线的时间,单位:秒>
  dialer string 2631
  dialer hold-queue 10
  dialer-group 1
  ppp authentication chap pap callin
  ppp chap hostname 263
  ppp chap password 263
  ppp pap sent-username 263 password 263
  ppp multilink
  no cdp enable
  !
  interface Ethernet 0
  no shutdown
  description connected to EthernetLAN
  ip address <以太网口IP地址及子网掩码>
  ip nat inside
  keepalive 10
  !
  interface BRI 0
  no shutdown
  description connected to Internet
  no ip address
  ip nat outside
  dialer rotary-group 1
  !
  ! access Control List 1
  !
  no access-list 1
  access-list 1 permit <内网网段地址及子网掩码反码>
  !
  ! Dialer Control List 1
  !
  no dialer-list 1
  dialer-list 1 PRotocol ip permit
  !
  ! Dynamic NAT
  !
  ip nat translation timeout 86400
  ip nat translation tcp-timeout 86400
  ip nat translation udp-timeout 300
  ip nat translation dns-timeout 60
  ip nat translation finrst-timeout 60
  ip nat inside source list 1 interface Dialer 1 overload
  !
  router rip
  version 2
  network <内网网段地址>
  passive-interface Dialer 1
  no auto-summary
  !
  !
  ip classless
  !
  ! IP Static Routes
  ip route 0.0.0.0 0.0.0.0 Dialer 1
  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
  !
  end

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