Focre10のよく使用する設定のガイドです。
Software Version: 8.3.3.8の内容となります。
内容
プロンプトについて
表示行数の変更
ホスト名の設定
現在の設定をブート設定に保存する方法
IPアドレスの設定
ルーティング情報の設定
時刻関連の設定
ポートチャネル(LAG)の設定
VLAN設定
プロンプトについて
Force10のプロンプトは>
、#
(特権モード)があります。特権モードで設定モードの時は、(conf)#
となります。
FTOS> enable
FTOS# conf
FTOS(conf)# end
FTOS#
ホスト名の設定をしている場合は、FTOSはホスト名になります。
表示行数の変更
例えばshow interfaces'を実行すると、すべてのインターフェースの情報が表示されますが、既定の行数になると
--more--`と表示されます。これを止めるためには以下のコマンドを使用します。
FTOS# terminal length 0
FTOS#
ホスト名の設定
FTOS# conf
FTOS(conf)# hostname Force10
Force100(conf)#
現在の設定をブート設定に保存する方法
Force10では、設定は即座に反映されますがブートすると消えます。現在の設定をStartup Configに保存する必要があります。
FTOS# write
FTOS#
IPアドレスの設定
management portに10.24.0.254/24を設定する
FTOS# running-config interface managementethernet 0/0
!
interface ManagementEthernet 0/0
no ip address
no shutdown
FTOS# conf
FTOS(conf)# interface managementethernet 0/0
FTOS(conf-if-ma-0/0)# ip address 10.24.0.254/24
FTOS(conf-if-ma-0/0)# no shutdown
FTOS(conf-if-ma-0/0)# show config
!
interface ManagementEthernet 0/0
ip address 10.24.0.254/16
no shutdown
FTOS(conf)# end
FTOS#
Gigabit Interface 0/0に 172.24.0.254/24を設定する。
FTOS# running-config interface gigabitethernet 0/0
!
interface GigbitEthernet 0/0
no ip address
no shutdown
FTOS# conf
FTOS(conf)# interface gigbitethernet 0/0
FTOS(conf-if-gi-0/0)# ip address 172.24.0.254/24
FTOS(conf-if-gi-0/0)# no shutdown
FTOS(conf-if-gi-0/0)# show config
!
interface GigabitEthernet 0/0
ip address 172.24.0.254/24
no shutdown
FTOS(conf-if-gi-0/0)# end
FTOS#
VLAN:1234に 10.12.23.254/16を設定する。
FTOS# running-config interface vlan 1234
!
interface Vlan 1234
no ip address
no shutdown
FTOS# conf
FTOS(conf)# interface gigbitethernet 0/0
FTOS(conf-if-vl-1234)# ip address 10.12.23.254/16
FTOS(conf-if-vl-1234)# no shutdown
FTOS(conf-if-vl-1234)# show config
!
interface Vlan 1234
ip address 10.12.23.254/16
no shutdown
FTOS(conf-if-gi-0/0)# end
FTOS#
ルーティング情報の設定
0.0.0.0/0(デフォルトルート)を10.24.1.1に設定します。
FTOS# show running-config management-route
FTOS# conf
FTOS(conf)# management route 0.0.0.0/0 10.24.1.1
FTOS(conf)# end
FTOS# show running-config management-route
!
management route 0.0.0.0/0 10.24.1.1
FTOS#
時刻関連の設定
タイムゾーンの設定
FTOS# show clock
10:34:04.667 UTC Sat Jan 11 2025
FTOS# conf
FTOS(conf)# clock timezone Japan 9
FTOS(conf)# end
FTOS# show clock
swr4-1.lab.snwltac.com#show clock
19:37:54.911 Japan Sat Jan 11 2025
FTOS#
NTP設定
NTPサーバとして、172.24.0.11と172.23.0.10を指定し、VLAN:1234に設定されたIPアドレスを送信元としてNTP時刻同期を行う。
FTOS# show running-config ntp
FTOS# conf
FTOS(conf)# ntp server 172.24.0.11
FTOS(conf)# ntp server 172.23.0.10
FTOS(conf)# ntp source vlan 1234
FTOS(conf)# end
FTOS# show running-config ntp
!
ntp server 172.23.0.10
ntp server 172.24.0.11
ntp source Vlan 1234
FTOS#
FTOS# #show ntp status
Clock is synchronized, stratum 3, reference is 172.24.0.11, vrf-id is 0
frequency is -385.352 ppm, stability is 187.701 ppm, precision is 4294967279
reference time is EB2DEC32.BD091000 (7:22:26.738 UTC Sun Jan 12 2025)
clock offset is 401.592715 msec, root delay is 0.00974 sec
root dispersion is 10.38750 sec, peer dispersion is 4932.785 msec
peer mode is client
ポートチャネル(LAG)の設定
## ポートチャンネルの設定状況の確認
FTOS# show int port-channel
% Error: No such interface.
上の場合、一つもポートチャネルが作成されていないことを示します。
動的(LACP)LAGの設定
gi 0/10と11をport-channel 5として設定する場合の例です。
interfaceがswitchportに設定されていてDefault VLAN(VLANID:1)以外が設定されている場合は、no untag
もしくはno tag
でVLANメンバーから削除しておきます。
FTOS(conf)# conf
FTOS(conf)# interface range gi 0/10 - 0/11
FTOS(conf-if-range-gi-0/10-11)# no shutdown
FTOS(conf-if-range-gi-0/10-11)# no switchport
FTOS(conf-if-range-te-0/10-11)# port-channel-protocol lacp
FTOS(conf-if-range-te-0/10-11-lacp)# port-channel 5 mode active
FTOS(conf-if-range-te-0/10-11-lacp)# show config
.
.
.
FTOS(conf-if-range-te-0/10-11-lacp)# end
FTOS# show int po
Port-channel 5 is up, line protocol is down(minimum links not up)
Created by LACP protocol
.
.
.
この後必要に応じてポートチャネルに対してVLAN設定をします。
静的LAGの設定
gi 0/10と11をport-channel 5として設定する場合の例です。
FTOS(conf)# conf
FTOS(conf)# interface range gi 0/10 - 0/11
FTOS(conf-if-range-gi-0/10-11)# no shutdown
FTOS(conf-if-range-gi-0/10-11)# no switchport
FTOS(conf-if-range-te-0/10-11)# show config
.
.
.
FTOS(conf-if-range-te-0/10-11)# interface port-channel 5
FTOS(conf-if-po-5)# channel-member gigabitethernet 0/10
FTOS(conf-if-po-5)# channel-member gigabitethernet 0/11
FTOS(conf-if-po-5)# no shutdown
FTOS(conf-if-po-5)# show config
!
interface Port-channel 5
no ip address
channel-member GigabitEthernet 0/10,11
no shutdown
FTOS(conf)# end
FTOS# show int po
Port-channel 5 is up, line protocol is down(minimum links not up)
.
.
.
FTOS#
VLAN設定
VLANの表示
FTOS# show vlan
.
.
.
show vlan id xxxx
で特定のVLANだけ表示することも可能です。
VLANの作成
以下の例ではVLANID:414を作成しています。
description
は、必須ではありませんが、後でどういうVLANかわかるように設定することをお勧めします。
FTOS# config
FTOS(conf)# Interface Vlan 414
FTOS(conf-if-vl-414)# description "Corp Main VLAN"
FTOS(conf-if-vl-414)# end
FTOS#
VLANの削除
FTOS#config
FTOS(conf)#no Interface Vlan 414
FTOS(conf-if-vl-414)# end
FTOS# show vlan id 414
% Error: No such interface Vl 414.
FTOS#
VLANへインターフェース/ポートチャネルを追加
VLANにインターフェースやポートチャネルを追加する場合、インターフェース/ポートチャネルがswitchport
でなければなりません。また、インターフェース/ポートチャネルが複数のVLANのタグなしVLANとタグ付きVLANの両方を追加させたい場合は、portmode hybrid
でなければなりません。
以下では、gi 0/45をタグなしで、ポートチャネル:5 をタグ付きでVLANID:414に設定しています。
FTOS# config
FTOS(conf)# Interface Vlan 414
FTOS(conf-if-vl-414)# untagged gi 0/45
FTOS(conf-if-vl-414)# tagged po 5
FTOS(conf-if-vl-414)# end
FTOS# show vlan 414
VLANからインターフェース/ポートチャネルを削除
FTOS# config
FTOS(conf)# Interface Vlan 414
FTOS(conf-if-vl-414)# no untagged gi 0/45
FTOS(conf-if-vl-414)# no tagged po 5
FTOS(conf-if-vl-414)# end
FTOS# show vlan 414