PPPOE可以理解为以前的拨号上网,是运营商对用户进行上网管理的一种方式,用户通过账号密码验证后登录即可。
PPPOE接口配置
OR(config)#interface dialer 0
OR(config-if)#ip address negotiated
OR(config-if)#ip mtu 1492
OR(config-if)#encapsulation ppp
OR(config-if)#ppp ipcp route default
OR(config-if)#dialer pool 1
OR(config-if)#ppp chap hostname SPOTO
OR(config-if)#ppp chap password SPOTO123
OR(config-if)#ppp pap sent-username SPOTO password SPOTO123
开始拨号
OR(config)#interface ethernet0/1
OR(config-if)#pppoe enable group global
OR(config-if)#pppoe-client dial-pool-number 1
OR(config-if)#no shutdown
查看一下端口ip信息
OR#show ip interface b
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 192.168.10.254 YES TFTP up up
Ethernet0/1 unassigned YES TFTP up up
Ethernet0/2 unassigned YES TFTP administratively down down
Ethernet0/3 unassigned YES TFTP administratively down down
Dialer0 101.1.1.1 YES IPCP up up ### 已成功自动获取到IP
Virtual-Access1 unassigned YES unset up up
Virtual-Access2 unassigned YES unset up