0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

パケットトレーサーでネットワーク学習1104

Posted at

・ルータ間にIPアドレスを設定して、ポートを開放する。

(例)
ルータ1
コマンド:Router(config)#interface gigabitEthernet 0/2
コマンド:Router(config-if)#ip address 10.0.0.1 255.255.255.252
コマンド:Router(config-if)#no shutdown

ルータ2
コマンド:Router(config)#interface gigabitEthernet 0/2
コマンド:Router(config-if)#ip address 10.0.0.2 255.255.255.252
コマンド:Router(config-if)#no shutdown

・ルータはルーティングテーブルに対象のIPアドレスが無ければデータを破棄する。

・スタティックルートの設定
(例)
コマンド:Router(config)#ip route 192.168.3.0 255.255.255.0 10.0.0.2

・ルーティングテーブルの確認
(例)
コマンド:Router#show ip route
Codes: L - local, C - connected, S - static,
Gateway of last resort is not set

     192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.0/24 is directly connected, GigabitEthernet0/1
L       192.168.2.254/32 is directly connected, GigabitEthernet0/1
S    192.168.3.0/24 [1/0] via 10.0.0.2
※Sはスタティックルートで設定している印。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?