第三步:配置逻辑拨号接口:
interface Dialer1
ip address negotiated
ip mtu 1492(修改mtu值以适用于ADSL网络)
ip nat outside
encapsulation ppp
dialer pool 1
ppp authentication chap callin
ppp chap hostname
ppp chap password
第四步:配置内部网络接口
interface Ethernet0(内部网络接口)
ip address 10.1.1.1 255.255.255.0
ip nat inside为该接口启用NAT
第五步:配置路由器为内部网络主机提供dhcp服务
ip dhcp excluded-address 10.1.1.1
ip dhcp pool ABC
import all(导入dns和wins server)
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
第六步:配置NAT:
access-list 1 permit 10.1.1.0 0.0.0.255
ip nat inside source list 1 interface Dialer1 overload