好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



4.5   PPPoE拨号

 

Router

 

 

!

适用版本vrp1.74

[Router]

dialer-rule 1 ip permit

 

 

!

 

[Router]

acl 1 match-order auto

 

[Router-acl101]

rule normal permit source 192.168.1.0 0.0.0.255

 

[Router-acl101]

rule normal deny source any

 

 

!

 

[Router]

interface Ethernet0

 

[Router-Ethernet0]

tcp mss 1024

 

[Router-Ethernet0]

ip address 192.168.1.1 255.255.255.0

 

 

!

 

[Router]

interface Ethernet1

 

[Router-Ethernet1]

pppoe-client dial-bundle-number 1

 

 

!

 

[Router]

interface Dialer1

 

[Router-Dialer1]

link-protocol ppp

 

[Router-Dialer1]

tcp mss 1024

 

[Router-Dialer1]

ppp pap local-user adsl password simple test

 

[Router-Dialer1]

ip address ppp-negotiate

 

[Router-Dialer1]

dialer bundle 1

 

[Router-Dialer1]

dialer number 169

 

[Router-Dialer1]

nat outbound 1 interface

 

 

!

 

 

quit

 

[Router]

ip route-static 0.0.0.0 0.0.0.0 Dialer 1 preference 60

 

 

!

 

 

『注意』

通常路由器做Adsl拨号,会结合nat功能,为内网提供上internet服务

X Close
X Close