2
3

More than 5 years have passed since last update.

NEC IX2105 設定

Posted at

接続

ロールオーバーケーブルを USB に変換して OSX に接続。
screen で /dev/tty.* な USB-Serial を指定して接続。

% screen /dev/tty.PL2303-000012FD 9600

CLI モードへの切り替え

工場出荷時は Web 設定モードなので CLI 設定モードになるよう切り替える

Router# enable-config
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# erase startup-config
Are you sure you want to erase the startup-configuration? (Yes or [No]): y
Router(config)#
Router(config)# exit
Router# default-console command-line
% You must RELOAD the router for this configuration to take effect. 

再起動して状態確認
Web モードの場合は show version の最後に Default console is web. と出る。

Router# reload
% Warning: current running-configuration is not saved yet.
Notice: The router will be RELOADED. This is to ensure that
        the peripheral devices are properly initialized.
Are you sure you want to reload the router? (Yes or [No]): y

......

Router# show version
NEC Portable Internetwork Core Operating System Software
IX Series IX2105 (magellan-sec) Software, Version 8.9.17, RELEASE SOFTWARE
Compiled Jan 11-Fri-2013 14:20:37 JST #2 by sw-build, coregen-8.9(17)

......

512K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)

ユーザ追加

セキュリティのため最低でも Administrator 権限ユーザを1つ追加する。

Router(config)# username XXXXXX password plain 1 XXXXXX administrator
% User 'XXXXXX' has been added.

Router(config)# show running-config

設定を保存して再起動

Router(config)# write memory
Building configuration...
% Warning: do NOT enter CNTL/Z while saving to avoid config corruption.
Router(config)# 
Router# reload

日付・時刻設定

デフォルトですでに良い感じでセットされていたので割愛

Router(config)# show clock
Wednesday, 27 February 2013 01:01:28 +09 00

ホスト名変更

複数台買う状況にはならなさそうなので機種名にした。

Router(config)# hostname IX2105
IX2105(config)#

SSH Server たちあげ

IX2105(config)# interface GigaEthernet1.0
IX2105(config-GigaEthernet1.0)# ip address XXX.XXX.XXX.XXX/24
IX2105(config-GigaEthernet1.0)# no shutdown
IX2105(config-GigaEthernet1.0)# show ip address 
Interface GigaEthernet1.0 is up, line protocol is up
  Internet address is XXX.XXX.XXX.XXX/24
  Broadcast address is 255.255.255.255
  Address determined by config

IX2105(config-GigaEthernet1.0)# exit
IX2105(config)# pki private-key generate rsa 
Generating RSA private key ..............
IX2105(config)# pki private-key export pem rsa crypto XXXXX

....

IX2105(config)# ssh-server ip enable

鍵を画面からコピってログインこころみる。

% ssh -i PRIVATEKEY hoge@XXX.XXX.XXX.XXX
2
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
2
3