RTX1200 初期設定
sshdを有効化して、telnetを無効化
(show configのSeriaやMAC部分は省略)
sshdを有効化する為に、ユーザーを作成
セキュリティの為、LAN1ポートからの接続に制限
# login user <USERNAME> <PASSWORD> # sshd host key generate Generating public/private dsa key pair ... |******* Generating public/private rsa key pair ... |******* # sshd service on # sshd host lan1 #
作成したユーザーで ssh ログイン
> administrator Password: # # show config ip lan1 address 192.168.0.100/24 dhcp service relay dhcp server rfc2131 compliant except remain-silent dhcp scope 1 192.168.100.2-192.168.100.191/24 sshd service on sshd host lan1 sshd host key generate * #
sshでログインできた事が確認できたので、telnetdを停止する
# telnetd service off # # show config ip lan1 address 192.168.0.100/24 telnetd service off dhcp service relay dhcp server rfc2131 compliant except remain-silent dhcp scope 1 192.168.100.2-192.168.100.191/24 sshd service on sshd host lan1 sshd host key generate * # # save セーブ中... CONFIG0 終了 #
DHCPのスコープを変更
# dhcp scope 1 192.168.0.50-192.168.0.69/24 # # show config ip lan1 address 192.168.0.100/24 telnetd service off dhcp service relay dhcp server rfc2131 compliant except remain-silent dhcp scope 1 192.168.0.50-192.168.0.69/24 sshd service on sshd host lan1 sshd host key generate * # # save セーブ中... CONFIG0 終了 #