[index] AT-AR2050V/AT-AR3050S/AT-AR4050S コマンドリファレンス 5.4.7
IPアドレス/ネットマスク | 172.31.28.131/20 |
デフォルトゲートウェイ | 172.31.16.1 |
DNSサーバー | 172.30.130.5, 172.30.130.205 |
WAN側(eth1)IPアドレス | 172.31.28.131/20 |
LAN側(vlan1)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個) |
no spanning-tree rstp enable
interface eth1 ip address 172.31.28.131/20
interface vlan1 ip address 192.168.10.1/24
zone private network lan ip subnet 192.168.10.0/24
zone public network wan ip subnet 0.0.0.0/0 interface eth1 host eth1 ip address 172.31.28.131
firewall rule 10 permit any from private to private rule 20 permit any from private to public rule 30 permit dns from public.wan.eth1 to public.wan protect
nat rule 10 masq any from private to public enable
ip name-server 172.30.130.5 ip name-server 172.30.130.205
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
ip dns forwarding
ip route 0.0.0.0/0 172.31.16.1
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 ip address 172.31.28.131/20 ! interface vlan1 ip address 192.168.10.1/24 ! zone private network lan ip subnet 192.168.10.0/24 ! zone public network wan ip subnet 0.0.0.0/0 interface eth1 host eth1 ip address 172.31.28.131 ! firewall rule 10 permit any from private to private rule 20 permit any from private to public rule 30 permit dns from public.wan.eth1 to public.wan protect ! nat rule 10 masq any from private to public enable ! ip name-server 172.30.130.5 ip name-server 172.30.130.205 ! 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 ! ip dns forwarding ! ip route 0.0.0.0/0 172.31.16.1 ! end
(C) 2015 - 2019 アライドテレシスホールディングス株式会社
PN: 613-002765 Rev.A