質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Cisco IOS

Cisco IOSは、シスコシステムズ社が提供しているOSです。同社のほとんどのルーターやスイッチに使用されており、特徴のあるコマンドラインインターフェースをもちます。実行操作に制限があるユーザーモードと特権モードのセキュリティレベルがあります。

Cisco

シスコ(Cisco Systems,Inc.)は、アメリカ合衆国に本社を置く、世界最大のコンピュータネットワーク機器開発会社及び同社の製品

Q&A

解決済

1回答

3338閲覧

ダイナミックNATの設定がエラーになる

narururu

総合スコア172

Cisco IOS

Cisco IOSは、シスコシステムズ社が提供しているOSです。同社のほとんどのルーターやスイッチに使用されており、特徴のあるコマンドラインインターフェースをもちます。実行操作に制限があるユーザーモードと特権モードのセキュリティレベルがあります。

Cisco

シスコ(Cisco Systems,Inc.)は、アメリカ合衆国に本社を置く、世界最大のコンピュータネットワーク機器開発会社及び同社の製品

0グッド

0クリップ

投稿2018/03/11 05:37

###環境
GNS3
イメージ説明

###現状
インターフェースにNATを設定しようとするとエラーになります。

R2(config)#int fa1/15 R2(config-if)#ip nat inside ^ % Invalid input detected at '^' marker. R2(config)#int fa1/1 R2(config-if)#ip nat outside ^ % Invalid input detected at '^' marker.

###ステータス

R2#show run Building configuration... Current configuration : 2071 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip routing no ip icmp rate-limit unreachable no ip cef ! ! ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip tcp synwait-time 5 ! ! ! ! ! interface FastEthernet0/0 no ip address no ip route-cache shutdown duplex auto speed auto ! interface Serial0/0 no ip address no ip route-cache shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address no ip route-cache shutdown duplex auto speed auto ! interface Serial0/1 no ip address no ip route-cache shutdown clock rate 2000000 ! interface Serial0/2 no ip address no ip route-cache shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 ! interface FastEthernet1/2 ! interface FastEthernet1/3 ! interface FastEthernet1/4 ! interface FastEthernet1/5 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 switchport trunk allowed vlan 1,2,10,20,1002-1005 switchport mode trunk ! interface Vlan1 no ip address no ip route-cache ! interface Vlan10 ip address 192.168.1.254 255.255.255.0 no ip route-cache ! interface Vlan20 ip address 192.168.2.254 255.255.255.0 no ip route-cache ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ip nat pool TEST 100.100.1.1 100.100.2.2 netmask 255.255.0.0 ip nat inside source list 1 pool TEST ! access-list 1 permit 192.168.0.0 0.0.255.255 no cdp log mismatch duplex ! ! ! control-plane ! ! ! ! ! ! ! ! ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end

何か設定間違ってますでしょうか。
ご指摘いただけると助かります。
よろしくお願いいたします(>_<)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

トランクポートにはnatの設定はできないのですね。
考えてみればトランクリンクはレイヤー2の通信なのでIPアドレスの変換はできないのですね。
大変失礼いたしました。

投稿2018/03/19 11:55

narururu

総合スコア172

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問