[index] AT-AR4000S-Cloud リファレンスマニュアル 5.5.4
ISP接続用ユーザー名 | user@ispA |
ISP接続用パスワード | isppasswdA |
PPPoEサービス名 | 指定なし |
WAN側IPアドレス | 動的割り当て(IPCP) |
DNSサーバー | 自動取得(IPCP) |
ISP接続用ユーザー名 | user@ispB |
ISP接続用パスワード | isppasswdB |
PPPoEサービス名 | 指定なし |
WAN側IPアドレス | 動的割り当て(IPCP) |
DNSサーバー | 自動取得(IPCP) |
WAN側物理インターフェース | eth1(ppp0用), eth2(ppp1用) |
WAN側(ppp0)IPアドレス | 接続時にISPから取得 |
WAN側(ppp1)IPアドレス | 接続時にISPから取得 |
LAN側(eth0)IPアドレス | 192.168.10.1/24 |
DHCPサーバー機能 | 有効 |
DHCPプール名 | pool10 |
リース時間 | 2時間 |
対象サブネット | 192.168.10.0/24 |
デフォルトゲートウェイ | 192.168.10.1 |
DNSサーバー | 192.168.10.1 |
提供するIPアドレスの範囲 | 192.168.10.100~192.168.10.131(32個) |
eth0 | 192.168.10.1/24 | 管理用IPアドレス |
eth1 | 未設定 | |
eth2 | 未設定 |
Note構成が異なる場合はインターフェース名などを適宜読み替えてください。
interface eth1 encapsulation ppp 0
interface ppp0 ppp ipcp dns request keepalive ip address negotiated ppp username user@ispA ppp password isppasswdA ip tcp adjust-mss pmtu
interface eth2 encapsulation ppp 1
interface ppp1 ppp ipcp dns request keepalive ip address negotiated ppp username user@ispB ppp password isppasswdB ip tcp adjust-mss pmtu shutdown
interface eth0 ip address 192.168.10.1/24
zone all network ipv4 ip subnet 0.0.0.0/0
zone private network lan ip subnet 192.168.10.0/24
zone public network ISP-A ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0 network ISP-B ip subnet 0.0.0.0/0 interface ppp1 host ppp1 ip address dynamic interface ppp1
application dhcp protocol udp dport 67 to 68
firewall rule 10 deny dhcp from public.ISP-A to public.ISP-A.ppp0 rule 20 deny dhcp from public.ISP-B to public.ISP-B.ppp1 rule 30 permit dhcp from all.ipv4 to all.ipv4 rule 40 permit any from private.lan to private.lan rule 50 permit any from private.lan to public rule 60 permit dns from public.ISP-A.ppp0 to public.ISP-A rule 70 permit dns from public.ISP-B.ppp1 to public.ISP-B protect
nat rule 10 masq any from private to public enable
ip dhcp pool pool10 network 192.168.10.0 255.255.255.0 range 192.168.10.100 192.168.10.131 default-router 192.168.10.1 dns-server 192.168.10.1 lease 0 2 0
service dhcp-server
trigger 1 type interface ppp0 down script 1 flash:/ppp0down.scp trigger 2 type interface ppp0 up script 1 flash:/ppp0up.scp
ip dns forwarding
ip route 0.0.0.0/0 ppp0 ip route 0.0.0.0/0 ppp1 10
end
copy running-config startup-config
」の書式で実行します。awplus# copy running-config startup-config ↓ Building configuration... [OK]
awplus# write memory ↓ Building configuration... [OK]
awplus(config)# log buffered level informational facility local5 ↓
awplus# show log | include Firewall ↓
! interface eth1 encapsulation ppp 0 ! interface ppp0 ppp ipcp dns request keepalive ip address negotiated ppp username user@ispA ppp password isppasswdA ip tcp adjust-mss pmtu ! interface eth2 encapsulation ppp 1 ! interface ppp1 ppp ipcp dns request keepalive ip address negotiated ppp username user@ispB ppp password isppasswdB ip tcp adjust-mss pmtu shutdown ! interface eth0 ip address 192.168.10.1/24 ! zone all network ipv4 ip subnet 0.0.0.0/0 ! zone private network lan ip subnet 192.168.10.0/24 ! zone public network ISP-A ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0 network ISP-B ip subnet 0.0.0.0/0 interface ppp1 host ppp1 ip address dynamic interface ppp1 ! application dhcp protocol udp dport 67 to 68 ! firewall rule 10 deny dhcp from public.ISP-A to public.ISP-A.ppp0 rule 20 deny dhcp from public.ISP-B to public.ISP-B.ppp1 rule 30 permit dhcp from all.ipv4 to all.ipv4 rule 40 permit any from private.lan to private.lan rule 50 permit any from private.lan to public rule 60 permit dns from public.ISP-A.ppp0 to public.ISP-A rule 70 permit dns from public.ISP-B.ppp1 to public.ISP-B protect ! nat rule 10 masq any from private to public enable ! ip dhcp pool pool10 network 192.168.10.0 255.255.255.0 range 192.168.10.100 192.168.10.131 default-router 192.168.10.1 dns-server 192.168.10.1 lease 0 2 0 ! service dhcp-server ! trigger 1 type interface ppp0 down script 1 flash:/ppp0down.scp trigger 2 type interface ppp0 up script 1 flash:/ppp0up.scp ! ip dns forwarding ! ip route 0.0.0.0/0 ppp0 ip route 0.0.0.0/0 ppp1 10 ! end
enable configure terminal int ppp1 no shutdown
enable configure terminal int ppp1 shutdown
(C) 2022 - 2025 アライドテレシスホールディングス株式会社
PN: 613-003066 Rev.L