SWX2300 L2スイッチの初期設定をしてみよ~!

優

SWX2300

YAMAHAのSWX2300は2200と違って、コンソールでのコンフィグが打てるのでちょっと高価!その分設定の柔軟性があるので、お客さんの要望変更にも細かく対応出来るのですね。

そんなわけで、面白みはないですがよく設定する初期設定を記事にしました。

 

 

管理パスワード設定

SWX2300#configure terminal
SWX2300(config)#enable password 設定したい管理パスワード
SWX2300(config)#write
Building configuration...
[OK]

大事ですよね。

 

 

端末ログインタイムアウト設定 30分に設定

SWX2300#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
SWX2300(config)#line console 0
SWX2300(config-line)#exec-timeout 30 0

設定が終わったら短くすると良いです。

 

 

ホスト名設定

SWX2300(config)#hostname Center.SWX2300
Center.SWX2300(config)#

わかりやすい名前にしましょうね。

 

 

IPアドレスを設定

Center.SWX2300(config)#interface vlan0.1
Center.SWX2300(config-if)#ip address 192.168.100.220/24
Center.SWX2300(config-if)#exit
Center.SWX2300(config)#exit
Center.SWX2300#

IPを設定しておくと管理に便利です。

 

 

管理GUIのポート変更

Center.SWX2300(config)#service http-server 35280
Center.SWX2300(config)#write

 

今回の記事の例ではこうなります。

http://192.168.100.220:35280/

  • ユーザ名:administrator
  • パスワード:管理パスワード

 

 

デフォルトゲートウェイとネームサーバを設定

SWX2300#ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network is unreachable

初期状態では届かないですよ!

 

 

デフォルトゲートウェイとDNSサーバをルータ(192.168.100.251)に向けて設定

SWX2300#configure terminal
SWX2300(config)#ip route 0.0.0.0/0 192.168.100.251
SWX2300(config)#ip name-server 192.168.100.251

 

疎通テスト

SWX2300#ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=58 time=8.492 ms
64 bytes from 8.8.8.8: seq=1 ttl=58 time=10.091 ms

--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 8.492/9.291/10.091 ms

Pingで外に出れています。

 

SWX2300#ping google.co.jp

PING google.co.jp (172.217.161.35): 56 data bytes
64 bytes from 172.217.161.35: seq=0 ttl=55 time=9.091 ms
64 bytes from 172.217.161.35: seq=1 ttl=55 time=10.151 ms
64 bytes from 172.217.161.35: seq=2 ttl=55 time=10.147 ms

DNS引けてます。

どちらもいけますね!

 

 

NTPサーバ同期設定

SWX2300#configure terminal
SWX2300(config)#ntpdate server name ntp.nict.jp
SWX2300(config)#ntpdate interval 1
SWX2300(config)#clock timezone JST

安定のNICT様のNTPサーバに1時間単位で同期します。

 

 

Telnetサーバの起動

Center.SWX2300(config)#service telnet-server 35223
Center.SWX2300(config)#telnet-server interface vlan0.1
Center.SWX2300(config)#write

リモートで設定したい時のTelnetさんです、SWX2300はSSHがないのでTelnetで設定します。

 

コンフィグバックアップ ※Windows PC側作業

>tftp 192.168.100.220 get config0/管理パスワード 20180420_Center.SWX2300_config.txt

ここらで一旦バックアップしておきましょ~!

 

お疲れ様です。

お茶を飲んで下さいね。

 

最新情報をチェックしよう!
>システム構築・保守に特化した会社です。

システム構築・保守に特化した会社です。

システムの構築・保守運用「システムガーディアン」 社内システム担当が欲しいが、専属で雇うほどの仕事量はない。 必要な時に必要なだけ頼りたいというお悩みを持つ企業様へ専門知識を持って対応を行っております。 サーバから各種システムまで自社・他社で構築されたシステムに対してサポートを行っております。

CTR IMG