ロール変更
# 特権モード
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