・スイッチはレイヤー2の宛先MACアドレスを見て情報を送る。
・ルーターの設定を変更。
※Pysicalで電源ボタンを押す
コマンド:configuration dialog? [yes/no]: no
※ユーザーモードから特権モードにする。
コマンド:Router>enable
※ルーターの設定
コマンド:Router#configure terminal
※IPアドレスの設定
コマンド:(例)Router(config)#interface gigabitEthernet 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#no shutdown←ポートを開ける設定
※ルータのルーティングテーブルを見る。
コマンド:Router#show ip route
(例)
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
L 192.168.1.254/32 is directly connected, GigabitEthernet0/0
※IPアドレス192.168.1.0/24の情報
※CとLは192.168.1.0/24の情報を2つ持っている。
※Cはconnected。192.168.1.0/24はGigabitEthernet0/0の先に繋がっているということ。
※Lはlocal。192.168.1.254/32は自分自身の持っているIPアドレス。