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