[index] AT-TQRシリーズ コマンドリファレンス 5.5.3
ISP接続用ユーザー名 | user@isp |
ISP接続用パスワード | isppasswd |
PPPoEサービス名 | 指定なし |
WAN側IPアドレス | 10.1.1.1/32 |
DNSサーバー | 10.100.100.100 |
WAN側物理インターフェース | eth2 |
WAN側(ppp0)IPアドレス | 10.1.1.1/32 |
LAN側(端末用)(vap1.0)IPアドレス | 192.168.10.1/24 |
LAN側(サーバー用)(eth1)IPアドレス | 192.168.20.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個) |
awplus(config)# wireless ↓ awplus(config-wireless)# ap-profile local ↓ awplus(config-wireless-ap-prof)# radio 1 ↓ awplus(config-wireless-ap-prof-radio)# enable ↓ awplus(config-wireless-ap-prof-radio)# end ↓
awplus# wireless ap-configuration apply ap local ↓
Note本設定例では、ルーターとしての全体的な設定を示すため、無線機能に関してはデフォルト設定を利用した最小限の設定のみを示しています。
実際の運用にあたっては、「無線機能」章にある設定のポイントなどをご参照の上、SSID、セキュリティーなど要件にあわせた適切な設定を行ってから本手順(無線設定の適用)を実行してください。
wireless network 1 ssid allied24 network 17 ssid allied5-1 ap-profile local radio 1 enable vap 0 network 1 radio 2 vap 0 network 17 ap local
interface eth2 encapsulation ppp 0
interface ppp0 keepalive ip address negotiated ppp username user@isp ppp password isppasswd ip tcp adjust-mss pmtu
interface vap1.0 ip address 192.168.10.1/24
interface eth1 ip address 192.168.20.1/24
zone private network dhcp ip subnet 0.0.0.0/0 interface vap1.0 network lan1 ip subnet 192.168.10.0/24 network lan2 ip subnet 192.168.20.0/24 host web-server ip address 192.168.20.5
zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0
application dhcp protocol udp dport 67 to 68
firewall rule 10 permit dhcp from private.dhcp to private.dhcp rule 20 permit any from private.lan1 to private.lan1 rule 30 permit any from private.lan1 to private.lan2 rule 40 permit any from private.lan2 to private.lan2 rule 50 permit any from private.lan2 to private.lan1 rule 60 permit any from private.lan1 to public rule 70 permit any from private.lan2 to public rule 80 permit dns from public.wan.ppp0 to public.wan rule 90 permit http from public.wan to private.lan2.web-server protect
nat rule 10 masq any from private to public rule 20 portfw http from public with dst private.lan2.web-server enable
ip name-server 10.100.100.100
ip dns forwarding
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 route 0.0.0.0/0 ppp0
log buffered level informational
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 eth2 encapsulation ppp 0 ! interface ppp0 keepalive ip address negotiated ppp username user@isp ppp password isppasswd ip tcp adjust-mss pmtu ! interface vap1.0 ip address 192.168.10.1/24 ! interface eth1 ip address 192.168.20.1/24 ! zone private network dhcp ip subnet 0.0.0.0/0 interface vap1.0 network lan1 ip subnet 192.168.10.0/24 network lan2 ip subnet 192.168.20.0/24 host web-server ip address 192.168.20.5 ! zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address dynamic interface ppp0 ! application dhcp protocol udp dport 67 to 68 ! firewall rule 10 permit dhcp from private.dhcp to private.dhcp rule 20 permit any from private.lan1 to private.lan1 rule 30 permit any from private.lan1 to private.lan2 rule 40 permit any from private.lan2 to private.lan2 rule 50 permit any from private.lan2 to private.lan1 rule 60 permit any from private.lan1 to public rule 70 permit any from private.lan2 to public rule 80 permit dns from public.wan.ppp0 to public.wan rule 90 permit http from public.wan to private.lan2.web-server protect ! nat rule 10 masq any from private to public rule 20 portfw http from public with dst private.lan2.web-server enable ! ip name-server 10.100.100.100 ! ip dns forwarding ! 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 route 0.0.0.0/0 ppp0 ! log buffered level informational ! end
(C) 2023 アライドテレシスホールディングス株式会社
PN: 613-003212 Rev.B