## CentreCOM AR415S 設定例集 2.9 ## 141 Pingポーリングによるメイン回線からISDNバックアップへの自動切り替え(ISP接続+フレッツグループアクセス〜L2TP編〜) ## ルーターAのコンフィグ ADD ISDN CALL=BACKUP NUMBER=0612342222 PRECEDENCE=IN SET ISDN CALL=BACKUP SEARCHCLI=ON ENABLE L2TP ENABLE L2TP SERVER=BOTH ADD L2TP CALL=BBB REMOTECALL=AAA IP=192.168.20.1 TYPE=VIRTUAL PRECEDENCE=IN CREATE PPP=0 IDLE=999999999 OVER=eth0-ANY SET PPP=0 BAP=OFF USERNAME=user@fga PASSWORD=fgapasswd SET PPP=0 OVER=eth0-ANY LQR=OFF ECHO=ON CREATE PPP=1 OVER=TNL-BBB SET PPP=1 OVER=TNL-BBB IDLE=999999999 LQR=OFF BAP=OFF ECHO=ON CREATE PPP=2 IDLE=60 OVER=ISDN-BACKUP SET PPP=2 OVER=ISDN-BACKUP LQR=OFF BAP=OFF CREATE PPP=3 OVER=eth0-ANY SET PPP=3 BAP=OFF IPREQUEST=ON USERNAME=user@isp PASSWORD=isppasswd SET PPP=3 OVER=eth0-ANY LQR=OFF ECHO=ON ENABLE IP ENABLE IP REMOTEASSIGN ADD IP INTERFACE=vlan1 IPADDRESS=192.168.10.1 MASK=255.255.255.0 ADD IP INTERFACE=ppp0 IPADDRESS=0.0.0.0 ADD IP INTERFACE=ppp1 IPADDRESS=0.0.0.0 ADD IP INTERFACE=ppp2 IPADDRESS=0.0.0.0 ADD IP INTERFACE=ppp3 IPADDRESS=100.1.1.1 MASK=255.255.255.255 ADD IP ROUTE=192.168.20.1 MASK=255.255.255.255 INTERFACE=ppp0 NEXTHOP=0.0.0.0 ADD IP ROUTE=192.168.20.0 MASK=255.255.255.0 INTERFACE=ppp1 NEXTHOP=0.0.0.0 ADD IP ROUTE=0.0.0.0 MASK=0.0.0.0 INTERFACE=ppp3 NEXT=0.0.0.0 ENABLE FIREWALL CREATE FIREWALL POLICY=net ENABLE FIREWALL POLICY=net ICMP_FORWARDING=PING,UNREACH DISABLE FIREWALL POLICY=net IDENTPROXY ADD FIREWALL POLICY=net INTERFACE=vlan1 TYPE=PRIVATE ADD FIREWALL POLICY=net INTERFACE=ppp0 TYPE=PRIVATE ADD FIREWALL POLICY=net INTERFACE=ppp1 TYPE=PRIVATE ADD FIREWALL POLICY=net INTERFACE=ppp2 TYPE=PRIVATE ADD FIREWALL POLICY=net INTERFACE=ppp3 TYPE=PUBLIC ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=vlan1 GBLINTERFACE=ppp3 ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=ppp1 GBLINTERFACE=ppp3 ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=ppp2 GBLINTERFACE=ppp3 ADD PING POLL=1 IPADDRESS=192.168.20.1 NORMALINTERVAL=10 UPCOUNT=5 SAMPLESIZE=10 ENABLE PING POLL=1 ENABLE TRIGGER CREATE TRIGGER=1 MODULE=PING EVENT=DEVICEDOWN POLL=1 SCRIPT=pingd.scp CREATE TRIGGER=2 MODULE=PING EVENT=DEVICEUP POLL=1 SCRIPT=pingu.scp