Powered by
Movable Type 4.1

« 設定の保存とリストア | メインですよ(エントリーアーカイブ) | IPの設定 »

NATの設定

①NATディスクリプタの動作タイプの設定

# nat descriptor type [nat_descriptor 1..21474836] [nat/masquerade/nat-masquerade/none]

※IPアドレスの変換だけを「NAT」、ポートの変換も合わせて「masquerade」としている

②NAT処理のIPアドレスの設定

# nat descriptor address outer [nat_descriptor] [outer_ipaddress/ipcp/primary] 
# nat descriptor address inner [nat_descriptor] [inner_ipaddress/auto]

③静的NATの登録

# nat descriptor static [nat_descriptor] [id] [outer]=[inner] [count]

④静的IPマスカレードの登録

# nat descriptor masquerade static [nat_descriptor] [id] [inner_ip] [protocol] [[outer_port=]inner_port]

⑤インターフェースへNATディスクリプタを適用する

# ip [interface] nat descriptor [nat_dewscriptor_list 16こまで]
# ip pp nat descriptor [nat_dewscriptor_list 16こまで]
# ip tunnel nat descriptor [nat_dewscriptor_list 16こまで]

コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)