ip lan1 address 192.168.0.1/24
pp select 1
pp always-on on
pppoe use lan2
pp auth accept pap chap
pp auth myname "PPPoE的ID" "PPPoE的密码"
ppp ipcp ipaddress on
ip pp nat descriptor 1
pp enable 1
nat descriptor type 1 masquerade
nat descriptor address outer 1 ipcp
nat descriptor address inner 1 auto
接下来设置使用的ISDN线路的连接。
pp select 2
pp bind bri1
isdn remote address call "ISP的访问点的电话号码"
pp auth accept pap chap
pp auth myname "拨号连接的ID" "拨号连接的密码"
ppp ipcp ipaddress on
ip pp nat descriptor 1
pp enable 2
据点和中心局之间经过IPsec VPN进行通信,因此,添加IPsec的设置。
ipsec auto refresh on
ipsec ike always-on 1 on
ipsec ike keepalive use 1 on icmp-echo 192.168.1.1 5 4
ipsec ike local name 1 rtx@yamaha user-fqdn
ipsec ike pre-shared-key 1 text router
ipsec ike remote address 1 "SGW-IP地址"
ipsec sa policy 101 1 esp 3des-cbc sha-hmac