CiscoルータでIPアドレス設定するまで
よく忘れるのでメモ
> EXECモード→(enable)→ # 特権EXECモード→(configure terminal)→ (config)# グローバルコンフィグレーションモード
//enableモード(特権EXECモード)に移行する(enable) Router>en //グローバルコンフィグレーションモードへ移行する(configure terminal) Router#conf t Enter configuration commands, one per line. End with CNTL/Z. //ルータのホスト名を変更する Router(config)#hostname RT1 //インターフェースコンフィギュレーションモードへ移行する(interface) RT1(config)#int gigabitEthernet 0/1 //インターフェースgigabitEthernet 0/1にIPアドレスを設定する RT1(config-if)#ip address 192.168.2.25 255.255.255.0 //インターフェースを有効化する RT1(config-if)#no shutdown %LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up //インターフェースコンフィギュレーションモードを終了し、 RT1(config-if)#exit //グローバルコンフィグレーションモードも終了する RT1(config)#exit //特権EXECモードに戻ってくるので、 RT1# %SYS-5-CONFIG_I: Configured from console by console //設定をみる(show running-config)。hostnameやipaddress情報が表示される RT1#sh running-config Building configuration... (中略) ! hostname RT1 ←ホスト名ついてる ! (中略) interface GigabitEthernet0/0 no ip address duplex auto speed auto shutdown ! interface GigabitEthernet0/1 ip address 192.168.2.25 255.255.255.0 ←IPアドレス付与されてる duplex auto speed auto ! interface Vlan1 no ip address shutdown ! ip classless ! ip flow-export version 9 ! (以下略)
実機触りたいよーー
パケットトレーサーだけでやるのつまらんわ(´・ω・`)
Ciscoデバイスの操作 - Cisco IOSソフトウェアとは