局域網(wǎng)用戶通過幀中繼訪問 Internet service timestamps debug uptime service timestamps log uptime service passWord-encryption no service tcp-small-servers no service udp-small-servers ! hostname <您路由器的名稱> ! enable password <進(jìn)入特權(quán)模式的口令> ! no ip name-server ! ip subnet-zero no ip domain-lookup ip routing ! interface Ethernet 0 no shutdown description connected to EthernetLAN ip address <以太網(wǎng)口IP地址及子網(wǎng)掩碼> ip nat inside keepalive 10 ! interface Serial 0 no shutdown no description no ip address encapsulation frame-relay frame-relay lmi-type ansi ! interface Serial 0.1 point-to-point no shutdown description connected to Internet ip address <對(duì)應(yīng)該虛電路的廣域網(wǎng)口IP地址及子網(wǎng)掩碼> ip nat outside frame-relay interface-dlci <本地端口標(biāo)識(shí)號(hào)> ! ! access Control List 1 ! no access-list 1 access-list 1 permit <內(nèi)網(wǎng)網(wǎng)段地址及子網(wǎng)掩碼反碼> ! ! 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 <內(nèi)網(wǎng)網(wǎng)段地址> passive-interface Serial 0.1 no auto-summary ! ! ip classless ! ! IP Static Routes ip route 0.0.0.0 0.0.0.0 Serial 0.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 <從控制臺(tái)端口登錄進(jìn)用戶模式所需口令> login ! line vty 0 4 password login ! end