FutureNet

NXR,VXRシリーズ

無線LAN編

4. 無線LAN設定(NXR-G050/LW)

4-1. 無線LAN設定(wlanの利用)

有線LANおよび無線LANセグメントからインターネットアクセスする設定例です。なお無線LANの認証方式にはWPA2-PSKを利用します。

 

【 対象機種 】NXR-G050/LW(2022/5現在)
最新の対応状況は、各製品の更新履歴やユーザーズガイドをご確認ください。

 

コンテンツ
構成図 設定例 設定例解説 端末の設定例 付録

 

【 構成図 】

  • 有線LANセグメントと無線LANセグメントを別ネットワークとします。
  • 無線LANセグメントにはDHCPサーバ機能でアドレス配布を行います。

 

【 設定例 】

nxrg050#configure terminal
nxrg050(config)#interface ethernet 0
nxrg050(config-if)#ip address 192.168.10.1/24
nxrg050(config-if)#exit
nxrg050(config)#interface wlan 0
nxrg050(config-wlan)#ip address 192.168.11.1/24
nxrg050(config-wlan)#wlan ssid nxrg050wlan0
nxrg050(config-wlan)#wlan wpa-psk password nxrg050wlan0pass
nxrg050(config-wlan)#wlan authenticate wpa2-psk aes
nxrg050(config-wlan)#wlan guest-mode enable
nxrg050(config-wlan)#wlan access-point-bridge enable
nxrg050(config-wlan)#wlan max-associations 16
nxrg050(config-wlan)#exit
nxrg050(config)#wifi 0
nxrg050(config-wifi)#mode 11na
nxrg050(config-wifi)#channel auto
nxrg050(config-wifi)#exit
nxrg050(config)#dhcp-server 1
nxrg050(config-dhcps)#network 192.168.11.0/24 range 192.168.11.200 192.168.11.210
nxrg050(config-dhcps)#gateway 192.168.11.1
nxrg050(config-dhcps)#dns-server 192.168.11.1
nxrg050(config-dhcps)#exit
nxrg050(config)#ip route 0.0.0.0/0 ppp 0
nxrg050(config)#ppp account username [PPP接続用ユーザID] password [PPP接続用パスワード]
nxrg050(config)#interface ppp 0
nxrg050(config-ppp)#ip address negotiated
nxrg050(config-ppp)#ip masquerade
nxrg050(config-ppp)#ip spi-filter
nxrg050(config-ppp)#ip tcp adjust-mss auto
nxrg050(config-ppp)#ppp username [PPP接続用ユーザID]
nxrg050(config-ppp)#mobile apn [APN] cid 1 pdp-type ip
nxrg050(config-ppp)#dial-up string *99***1#
nxrg050(config-ppp)#dial-up timeout 30
nxrg050(config-ppp)#exit
nxrg050(config)#mobile error-recovery-reset
nxrg050(config)#mobile termination-recovery reset
nxrg050(config)#mobile 2 ppp 0
nxrg050(config)#mobile 2 carrier [キャリア]
nxrg050(config)#exit
nxrg050#clear mobile 2
nxrg050#configure terminal
nxrg050(config)#dns
nxrg050(config-dns)#service enable
nxrg050(config-dns)#exit
nxrg050(config)#exit
nxrg050#save config

 

【 設定例解説 】

1. <有線LAN側(ethernet0)インタフェース設定>
nxrg050(config)#interface ethernet 0
nxrg050(config-if)#ip address 192.168.10.1/24

ethernet0インタフェースのIPアドレスを設定します。

 

2. <無線LAN側(wlan0)インタフェース設定>
nxrg050(config)#interface wlan 0
nxrg050(config-wlan)#ip address 192.168.11.1/24

wlan0インタフェースのIPアドレスを設定します。

nxrg050(config-wlan)#wlan ssid nxrg050wlan0

SSIDを設定します。

nxrg050(config-wlan)#wlan wpa-psk password nxrg050wlan0pass

WPA-PSK認証方式で使用するパスワードを設定します。
(☞) WPA-PSK認証方式で使用するパスワードは、WPA-PSKの認証方式および暗号化方式よりも先に設定する必要があります。

nxrg050(config-wlan)#wlan authenticate wpa2-psk aes

認証方式と暗号化方式を設定します。

nxrg050(config-wlan)#wlan guest-mode enable

ゲストモードを有効に設定します。
(☞) ANY接続拒否機能,ステルス機能は連動して動作するためゲストモードでの一括設定となります。

nxrg050(config-wlan)#wlan access-point-bridge enable

アクセスポイントブリッジを有効に設定します。
(☞) アクセスポイントブリッジを有効に設定することでプライバシープロテクションが無効になります。

nxrg050(config-wlan)#wlan max-associations 16

接続台数制限を設定します。

 

3. <無線モジュール(wifi0)設定>
nxrg050(config)#wifi 0
nxrg050(config-wifi)#mode 11na

無線方式を設定します。

nxrg050(config-wifi)#channel auto

チャネルを設定します。
(☞) modeコマンドが未設定の場合、設定することはできません。

 

4. <DHCPサーバ設定>
nxrg050(config)#dhcp-server 1
nxrg050(config-dhcps)#network 192.168.11.0/24 range 192.168.11.200 192.168.11.210
nxrg050(config-dhcps)#gateway 192.168.11.1
nxrg050(config-dhcps)#dns-server 192.168.11.1

DHCPサーバを設定します。

 

5. <スタティックルート設定>
nxrg050(config)#ip route 0.0.0.0/0 ppp 0

デフォルトルートを設定します。

 

6. <PPPアカウント設定>
nxrg050(config)#ppp account username [PPP接続用ユーザID] password [PPP接続用パスワード]

PPP接続用ユーザID,パスワードを設定します。

 

7. <WAN側(ppp0)インタフェース設定>
nxrg050(config)#interface ppp 0
nxrg050(config-ppp)#ip address negotiated

ppp0インタフェースのIPアドレスをnegotiatedに設定します。

nxrg050(config-ppp)#ip masquerade
nxrg050(config-ppp)#ip spi-filter

IPマスカレード、ステートフルパケットインスペクションを有効にします。

nxrg050(config-ppp)#ip tcp adjust-mss auto

TCP MSSの調整機能をオートに設定します。

nxrg050(config-ppp)#ppp username [PPP接続用ユーザID]

PPP接続用ユーザIDを設定します。

nxrg050(config-ppp)#mobile apn [APN] cid 1 pdp-type ip

APN,CID,PDPタイプを設定します。

nxrg050(config-ppp)#dial-up string *99***1#

発信用の電話番号を設定します。
(☞) 電話番号の#の前の数字はCIDを表しています。

nxrg050(config-ppp)#dial-up timeout 30

ダイアルタイムアウトを設定します。

 

8. <モバイルエラーリカバリー設定>
nxrg050(config)#mobile error-recovery-reset

内蔵通信モジュールとの通信に重大な問題が発生する可能性が高いと判断した場合、内蔵通信モジュールのリセットを行うように設定します。

 

9. <モバイルターミネーションリカバリー設定>
nxrg050(config)#mobile termination-recovery reset

PPP接続時に網側から切断された場合、内蔵通信モジュールのリセットを行うように設定します。

 

10. <モバイル割り当て設定>
nxrg050(config)#mobile 2 ppp 0

mobile2として認識されている内蔵通信モジュールとppp0インタフェースの関連づけを行います。
内蔵通信モジュールをPPPインタフェースで使用する場合は、mobileコマンドによるPPPインタフェースへの関連付けが必要になります。
(☞) mobile2の情報はshow mobile 2コマンドで確認することができます。

 

11. <モバイルキャリア設定>
nxrg050(config)#mobile 2 carrier [キャリア]

mobile2のキャリアを設定します。
(☞) キャリア設定は「clear mobile 2」コマンドによるモバイルリセットを行うことで反映されます。

 

12. <DNS設定>
nxrg050(config)#dns
nxrg050(config-dns)#service enable

DNSサービスを有効にします。

 

13. <設定の保存>
nxrg050#save config

設定内容を保存します。

 

【 端末の設定例 】

有線端末 無線端末
IPアドレス 192.168.10.100 DHCPサーバから取得
サブネットマスク 255.255.255.0
デフォルトゲートウェイ 192.168.10.1
DNSサーバ

 

【 付録 】