LoginSignup
0
3

More than 5 years have passed since last update.

ciscoルータ操作備忘録

Posted at

ロール変更

# 特権モード
enable

# グローバルコンフィグレーションモード
configure terminal

# インターフェースコンフィグレーションモード
interface Ethernet 0/X

IPアドレス設定(ルーター)

設定(コンフィグレーションモード)

interface Ethernet 0/X
 ip address ${IPアドレス} ${サブネットマスク}
 no shutdown
 exit

確認(特権モード)

# インターフェース一覧
show ip interface brief

# 0/Xポートのインターフェース詳細
show interfaces Ethernet 0/X

スタティックルート設定(ルーター)

設定(コンフィグレーションモード)

ip route ${ネットワークアドレス} ${サブネットマスク} ${ネクストホップアドレス}

確認(特権モード)

show ip route

VLAN作成(レイヤ2スイッチ)

設定(コンフィグレーションモード)

vlan ${vlanId}
 name ${vlanName}
 exit
interface Ethernet 0/X
 switchport mode access
 switchport access vlan ${vlanId}
 exit

確認(特権モード)

show vlan brief
show interfaces Ethernet 0/X
show interfaces status

トランクポート作成(レイヤ2スイッチ)

設定(コンフィグレーションモード)

interface Ethernet 0/X
 switchport mode trunk
 switchport nonegotiate
 exit

確認(特権モード)

show interfaces trunk
0
3
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
3