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

局域网用户通过DDN专线访问Internet

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

  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
  !
  ip subnet-zero
  no ip domain-lookup
  ip routing
  !
  interface Ethernet 0
  no shutdown
  description connected to EthernetLAN
  ip address <以太网口IP地址及子网掩码>
  ip nat inside
  keepalive 10
  !
  interface Serial 0
  no shutdown
  description connected to Internet
  ip address <广域网口IP地址及子网掩码>
  ip nat outside
  encapsulation hdlc
  !
  ! access Control List 1
  !
  no access-list 1
  access-list 1 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 pool <外部地址池名称> <外部地址池范围> netmask <外部地址掩码>
  ip nat inside source list 1 pool <外部地址池名称> overload
  !
  router rip
  version 2
  network <内网网段地址>
  passive-interface Serial 0
  no auto-summary
  !
  !
  ip classless
  !
  ! IP Static Routes
  ip route 0.0.0.0 0.0.0.0 Serial 0
  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

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