アプリ版:「スタンプのみでお礼する」機能のリリースについて

YAMAHAルータ(RTX1000)のNAT設定について教えてください。

外部接続が必要なサーバIP:
  10.xx.xx.11~10.xx.xx.11 のサーバ2台(固定IP)
  10.xx.xx.13~10.xx.xx.15 のサーバ3台(固定IP)
与えられたグローバルIP:
  200.xx.xx.171、200.xx.xx.172 2個

現在以下のように設定してますがうまくサーバからインターネットに接続できません。
複数のIPを1つのグルバルIPに変換させるにはどのような設定が必要なんでしょうか。

# pp select 1
# nat descriptor type 1 masquerade
# nat descriptor address outer 1 200.xx.xx.171
# nat descriptor address inter 1 10.xx.xx.11-10.xx.xx.11
#save

A 回答 (2件)

> 10.xx.xx.11~10.xx.xx.11 のサーバ2台(固定IP)


が2台というところが分かりませんが…
サーバ1台の間違いでしょうか、それとも10~11でしょうか。

ご質問の件ですが

# pp select 1
# nat descriptor type 1 masquerade
# nat descriptor address outer 1 200.xx.xx.171
# nat descriptor address inter 1 10.xx.xx.11-10.xx.xx.11

pp select コマンドの後に入れても
nat descriptor ~ はpp1には括りつきません。
pp1に括りつけるために "ip pp nat descriptor 1"
を入れる必要があります。

例えば

# nat descriptor type 1 masquerade
# nat descriptor address outer 1 200.xx.xx.171
# nat descriptor address inter 1 10.xx.xx.11-10.xx.xx.11
# pp select 1
pp1# ip pp nat descriptor 1

とするという意味です。

ご質問の内容だと
# nat descriptor type 1 masquerade
# nat descriptor address outer 1 200.xx.xx.171
# nat descriptor address inter 1 10.xx.xx.11-10.xx.xx.11
# nat descriptor type 2 masquerade
# nat descriptor address outer 2 200.xx.xx.172
# nat descriptor address inter 2 10.xx.xx.13-10.xx.xx.15
# pp select 1
pp1# ip pp nat descriptor 1 2
とすることになるかと思います。

コマンドリファレンスの172ページ辺りが参考になりますよ。

参考URL:http://netvolante.jp/download/manual/pdf/srt100/ …
    • good
    • 0
この回答へのお礼

pp1# ip pp nat descriptor 1 2
を追加実行したところ、接続できるようになりました。
ありがとうございます!!!!!

お礼日時:2007/11/05 10:03

IPマスカレードであれば



200.xx.xx.171:80 を 10.xx.xx.11:80
200.xx.xx.172:80 を 10.xx.xx.15:80

のように指定する必要があります

さらにサーバのネットワーク設定で 
デフォルトゲートウェイを ルータのアドレス 10.xx.xx.? に設定しなければ サーバはそのサブネット内しか接続できません
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!