[index] AT-AR2050V/AT-AR3050S/AT-AR4050S コマンドリファレンス 5.5.0
(本社) |
(支社) |
|
ISP接続用ユーザー名 | user@ispA | user@ispB |
ISP接続用パスワード | isppasswdA | isppasswdB |
PPPoEサービス名 | 指定なし | 指定なし |
WAN側IPアドレス | 10.1.1.1/32 | 10.1.1.2/32 |
WAN側物理インターフェース | eth1 | eth1 |
WAN側(ppp0)IPアドレス | 10.1.1.1/32 | 10.1.1.2/32 |
no spanning-tree rstp enable
interface eth1 encapsulation ppp 0
interface ppp0 keepalive ip address negotiated ppp username user@ispA ppp password isppasswdA 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.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 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 isakmp 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.ppp0 to public.wan rule 60 permit esp from public.wan to public.wan.ppp0 rule 70 permit l2tp from public.wan.ppp0 to public.wan rule 80 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 isakmp 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.ppp0 to public.wan rule 60 permit esp from public.wan to public.wan.ppp0 rule 70 permit l2tp from public.wan.ppp0 to public.wan rule 80 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 kern msgtext Firewall ↓
awplus# show log | include Firewall ↓
! no spanning-tree rstp enable ! interface eth1 encapsulation ppp 0 ! interface ppp0 keepalive ip address negotiated ppp username user@ispA ppp password isppasswdA 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.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 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 isakmp 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.ppp0 to public.wan rule 60 permit esp from public.wan to public.wan.ppp0 rule 70 permit l2tp from public.wan.ppp0 to public.wan rule 80 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 isakmp 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.ppp0 to public.wan rule 60 permit esp from public.wan to public.wan.ppp0 rule 70 permit l2tp from public.wan.ppp0 to public.wan rule 80 permit l2tp from public.wan to public.wan.ppp0 protect ! ip route 0.0.0.0/0 ppp0 ! end
(C) 2015 - 2020 アライドテレシスホールディングス株式会社
PN: 613-002107 Rev.AJ