LoginSignup
0
0

Cisco ルーター基本コマンド01

Posted at

作業内容

  1. ルーターのホスト名を設定する
  2. IPアドレスを設定する
  3. インターフェースを有効化する

基本コマンド 初期設定

##特権モードへの移行
Router>enable

##グローバルコンフィギュレーションモードへ移行
Router#configure terminal 

##ルータのホスト名登録
Router(config)#hostname hoge-router

##インターフェースコンフィギュレーションモードへ移行
hoge-router(config)#interface fastEthernet 0/0

##IPアドレスの登録
hoge-router(config-if)#ip address 192.xxx.xxx.1 255.255.255.0 

##インターフェースの有効化、デフォルトはshutodown状態(無効)
hoge-router(config-if)#no shutdown 

##特権モードへ移行
hoge-router(config-if)#exit
hoge-router(config)#exit

##設定内容の表示、変更点の確認
hoge-router#show running-config

変更前-確認コマンド結果


hoge-router#show running-config 
Building configuration...
(省略)
!
hostname hoge-router
!
(省略)
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
(省略)
end

変更後-確認コマンド結果

変更された点

  • IPアドレスが設定された
  • shutdown の表示が消えた

hoge-router#show running-config 
Building configuration...
(省略)
!
hostname hoge-router
!
(省略)
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
(省略)
end
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