[index] AT-AR4000S-Cloud リファレンスマニュアル 5.5.3
(本社) (本製品) |
(支社) (AR4050S) |
|
ISP接続用ユーザー名 | user@ispA | user@ispB |
ISP接続用パスワード | isppasswdA | isppasswdB |
PPPoEサービス名 | 指定なし | 指定なし |
WAN側IPアドレス | 10.1.1.1/32 | 10.1.1.2/32 |
WAN側物理インターフェース | eth3 | eth1 |
WAN側(ppp0)IPアドレス | 10.1.1.1/32 | 10.1.1.2/32 |
eth0 | 192.168.10.1/24 | 管理用IPアドレス |
eth1 | 未設定 | |
eth2 | 未設定 | |
eth3 | 未設定 |
Note構成が異なる場合はインターフェース名などを適宜読み替えてください。
interface eth3 encapsulation ppp 0
interface ppp0 keepalive ip address negotiated ppp username user@ispA ppp password isppasswdA ip tcp adjust-mss pmtu
interface eth0 ip address 192.168.10.1/24
bridge 2 bridge 3
crypto isakmp key secret address 10.1.1.2
interface tunnel0 encapsulation dot1q 2 encapsulation dot1q 3 tunnel source ppp0 tunnel destination 10.1.1.2 tunnel local id 1 tunnel remote id 2 tunnel mode l2tp v3 tunnel protection ipsec tunnel df clear mtu 1500
interface tunnel0.2 mtu 1500 bridge-group 2
interface tunnel0.3 mtu 1500 bridge-group 3
interface eth1 bridge-group 2
interface eth2 bridge-group 3
zone private network lan ip subnet 192.168.2.0/24 ip subnet 192.168.3.0/24 ip subnet 192.168.10.0/24
zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0
application esp protocol 50
application isakmp protocol udp sport 500 dport 500
firewall rule 10 permit any from private to private rule 20 permit any from private to public rule 30 permit any from public.wan.ppp0 to public.wan rule 40 permit isakmp from public.wan to public.wan.ppp0 rule 50 permit esp from public.wan to public.wan.ppp0 rule 60 permit l2tp from public.wan to public.wan.ppp0 protect
ip route 0.0.0.0/0 ppp0
end
no spanning-tree rstp enable
interface eth1 encapsulation ppp 0
interface ppp0 keepalive ip address negotiated ppp username user@ispB ppp password isppasswdB ip tcp adjust-mss pmtu
vlan database vlan 2-3 state enable
interface port1.0.1 switchport switchport mode trunk switchport trunk allowed vlan add 2-3
bridge 2 bridge 3
crypto isakmp key secret address 10.1.1.1
interface tunnel0 encapsulation dot1q 2 encapsulation dot1q 3 tunnel source ppp0 tunnel destination 10.1.1.1 tunnel local id 2 tunnel remote id 1 tunnel mode l2tp v3 tunnel protection ipsec tunnel df clear mtu 1500
interface tunnel0.2 mtu 1500 bridge-group 2
interface tunnel0.3 mtu 1500 bridge-group 3
interface vlan2 bridge-group 2
interface vlan3 bridge-group 3
zone private network lan ip subnet 192.168.2.0/24 ip subnet 192.168.3.0/24
zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0
application esp protocol 50
application isakmp protocol udp sport 500 dport 500
firewall rule 10 permit any from private to private rule 20 permit any from private to public rule 30 permit any from public.wan.ppp0 to public.wan rule 40 permit isakmp from public.wan to public.wan.ppp0 rule 50 permit esp from public.wan to public.wan.ppp0 rule 60 permit l2tp from public.wan to public.wan.ppp0 protect
ip route 0.0.0.0/0 ppp0
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 eth3 encapsulation ppp 0 ! interface ppp0 keepalive ip address negotiated ppp username user@ispA ppp password isppasswdA ip tcp adjust-mss pmtu ! interface eth0 ip address 192.168.10.1/24 ! bridge 2 bridge 3 ! crypto isakmp key secret address 10.1.1.2 ! interface tunnel0 encapsulation dot1q 2 encapsulation dot1q 3 tunnel source ppp0 tunnel destination 10.1.1.2 tunnel local id 1 tunnel remote id 2 tunnel mode l2tp v3 tunnel protection ipsec tunnel df clear mtu 1500 ! interface tunnel0.2 mtu 1500 bridge-group 2 ! interface tunnel0.3 mtu 1500 bridge-group 3 ! interface eth1 bridge-group 2 ! interface eth2 bridge-group 3 ! zone private network lan ip subnet 192.168.2.0/24 ip subnet 192.168.3.0/24 ip subnet 192.168.10.0/24 ! zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0 ! application esp protocol 50 ! application isakmp protocol udp sport 500 dport 500 ! firewall rule 10 permit any from private to private rule 20 permit any from private to public rule 30 permit any from public.wan.ppp0 to public.wan rule 40 permit isakmp from public.wan to public.wan.ppp0 rule 50 permit esp from public.wan to public.wan.ppp0 rule 60 permit l2tp from public.wan to public.wan.ppp0 protect ! ip route 0.0.0.0/0 ppp0 ! end
! no spanning-tree rstp enable ! interface eth1 encapsulation ppp 0 ! interface ppp0 keepalive ip address negotiated ppp username user@ispB ppp password isppasswdB ip tcp adjust-mss pmtu ! vlan database vlan 2-3 state enable ! interface port1.0.1 switchport switchport mode trunk switchport trunk allowed vlan add 2-3 ! bridge 2 bridge 3 ! crypto isakmp key secret address 10.1.1.1 ! interface tunnel0 encapsulation dot1q 2 encapsulation dot1q 3 tunnel source ppp0 tunnel destination 10.1.1.1 tunnel local id 2 tunnel remote id 1 tunnel mode l2tp v3 tunnel protection ipsec tunnel df clear mtu 1500 ! interface tunnel0.2 mtu 1500 bridge-group 2 ! interface tunnel0.3 mtu 1500 bridge-group 3 ! interface vlan2 bridge-group 2 ! interface vlan3 bridge-group 3 ! zone private network lan ip subnet 192.168.2.0/24 ip subnet 192.168.3.0/24 ! zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0 ! application esp protocol 50 ! application isakmp protocol udp sport 500 dport 500 ! firewall rule 10 permit any from private to private rule 20 permit any from private to public rule 30 permit any from public.wan.ppp0 to public.wan rule 40 permit isakmp from public.wan to public.wan.ppp0 rule 50 permit esp from public.wan to public.wan.ppp0 rule 60 permit l2tp from public.wan to public.wan.ppp0 protect ! ip route 0.0.0.0/0 ppp0 ! end
(C) 2022 - 2023 アライドテレシスホールディングス株式会社
PN: 613-003066 Rev.F