新版CCNP新增热点配置大放送之一(ADSLPPPoE配置案例)

王朝other·作者佚名  2008-05-19
宽屏版  字体: |||超大  

2514#sh run

Building configuration...

Current configuration : 982 bytes

!

version 12.2

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname p2r3

!

!

ip subnet-zero

!

vpdn enable(开启vpdn)

!

vpdn-group tyl

request-dialin

protocol pppoe(启用pppoe协议)

!

!

!

!

interface Ethernet0

no ip address

pppoe enable

pppoe-client dial-pool-number 1(将物理端口和虚拟拨号端口绑定)

!

interface Ethernet1

ip address 192.168.1.254 255.255.255.0

ip nat inside

!

interface Dialer1

ip address negotiated

ip mtu 1492

(将原来的mtu1500变为1492,因pppoe 的包头是8个字节)

ip nat outside

encapsulation ppp

dialer pool 1

(通过拨号池,将物理端口和虚拟拨号端口绑定)

ppp pap sent-username ******@163.gd password 0 ******(ppp pap的单向验证)

!

ip nat inside source list 1 interface Dialer1 overload(NAT转换)

ip classless

ip route 0.0.0.0 0.0.0.0 Dialer1(设置静态路由)

ip http server

ip pim bidir-enable

!

!

access-list 1 permit 192.168.1.0 0.0.0.255

!

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

!

end

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有