目次~
#contents
*前提 [#e21268cf]
IOSは設定対象により、以下のモード切り替えが必要となる。~
|設定項目|Enable mode|configure terminal|interface|
|hostname|○|○|-|
|gateway|○|○|-|
|ntp server|○|○|-|
|ip address|○|○|○|
|IF有効/無効|○|○|○|
*全般 [#wdce8073]
**ホスト名設定 [#gf50b2dc]
en
conf t
hostname [HOSTNAME]
**デフォルトゲートウェイ設定 [#k975786d]
en
conf t
ip default-gateway [GATEWAY]
**NTPサーバ設定 [#vda207de]
en
conf t
ntp server [NTP SERVE ADDRESS]
*インターフェイス単位 [#la468ac1]
**IPアドレス設定 [#t521d887]
-VLAN1(管理VLAN)
en
conf t
interface vlan 1
no ip broadcast-address
ip address [IP ADDRESS] [NETMASK]
-Fastethernet 0/0
en
conf t
interface fastethernet 0/0
ip address [IP ADDRESS] [NETMASK]
**インターフェイスの有効化 [#cda3cbb1]
-有効化
en
conf t
interface fastethernet 0/0
no shutdown
-無効化
en
conf t
interface fastethernet 0/0
shutdown
*IPv6関連 [#p21eaf94]
**IPv6の有効化 [#zae8fea0]
IPv6に対応しているIOSでは、以下の設定でIPv6を有効化できる。~
尚、設定の反映には機器の再起動が必要となる。~
-IPv6の有効化設定
en
conf t
sdm prefer dual-ipv4-and-ipv6 default
exit
write
reload
**IPv6アドレス設定 [#h50e1da8]
-Fastethernet 0/0
en
conf t
interface fastethernet 0/0
ipv6 address [IP ADDRESS]/[NETMASK]
-例
ipv6 address fd7f:543c:5454:10:9:300:a:100/96