发布网友 发布时间:2022-04-30 08:45
共1个回答
热心网友 时间:2022-06-20 02:02
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 route 0.0.0.0 0.0.0.0 Dialer1(设置静态路由) access-list 1 permit any