ネットワーク関連 目次

概要

Microtik CR309-1G-8S+の設定に関するメモ

接続

シリアル接続

本体のRS-232Cコネクタを用いてコンソール接続を行う。
接続時のパラメータは以下となる。

スピード115200
データ8 bit
パリティなし
ストップビット1 bit
フロー制御なし

管理画面へのアクセス

基本的な設定は管理画面より行うため、まずは管理画面にアクセスする。
初期設定は以下となっているため、接続できる状態のPCをRJ45のポートに接続する。

アドレス192.168.88.1
ユーザadmin
パスワードなし

設定

初期設定

管理画面へのログイン後、画面の流れに沿って以下を設定する。

インターネットに接続できる状態になったらアップデートを行う。

コンソールからの初期設定

ホスト名設定

/system/identity/ set name=CR309-1G-8S

運用

設定の初期化

コンソール接続状態で以下のコマンドを実行することで、設定の初期化が行える。

/system reset-configuration

確認が表示され、[Y]を選択

Dangerous! Reset anyway? [y/N]:

実行されるとシステムが再起動する。
起動後、ログインを求められる。(User : admin / Password : なし)

Tik Login: admin
passsword:

ログイン後、ソフトウェアライセンスに関する表示の有無を確認される。

  MMM      MMM       KKK                          TTTTTTTTTTT      KKK
  MMMM    MMMM       KKK                          TTTTTTTTTTT      KKK
  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK
  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK
  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK
  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK

  MikroTik RouterOS 7.19.4 (c) 1999-2025       https://www.mikrotik.com/



Do you want to see the software license? [Y/n]:

ライセンスの表示後、パスワードの設定が求められる。

new password> *********
repeat new password> *********

Password changed

これで初期状態となる。

めも

/system identity set name=CR309-1G-8S

/snmp/community add name=localnet addresses=192.168.1.0/24 read-access=yes /snmp set enabled=yes location="localnet" contact="admin@localhost" trap-version=2 trap-community=public /snmp set trap-target=192.168.1.10 src-address=192.168.1.2 trap-version=2 trap-community=public

/interface bridge set name=bridge vlan-filtering=yes protocol-mode=rstp

/interface bridge port set [find where interface=ether1] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus1] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus2] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus3] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus4] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus5] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus6] pvid=10 /interface bridge port set [find where interface=sfp-sfpplus7] pvid=10

/interface bridge vlan add bridge=bridge vlan-ids=1 tagged=bridge untagged=sfp-sfpplus8 /interface bridge vlan add bridge=bridge vlan-ids=10 tagged=bridge,sfp-sfpplus8 untagged=ether1,sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus3,sfp-sfpplus4,sfp-sfpplus5,sfp-sfpplus6,sfp-sfpplus7 /interface bridge vlan add bridge=bridge vlan-ids=100 tagged=bridge,sfp-sfpplus8

/ip address add address=192.168.1.2/24 interface=bridge comment="Mgmt on VLAN1"

/ip firewall filter add chain=input action=drop connection-state=invalid comment="drop invalid" place-before=0 /ip firewall filter add chain=input action=accept connection-state=established,related /ip firewall filter add chain=input action=accept protocol=icmp comment="ICMP" /ip firewall filter add chain=input action=accept in-interface=bridge src-address=192.168.1.10/32 protocol=udp dst-port=161 comment="SNMP poll & trap" /ip firewall filter add chain=input action=accept in-interface=bridge src-address=192.168.1.0/24 protocol=tcp dst-port=22 comment="SSH from local LAN" /ip firewall filter add chain=input action=accept in-interface=bridge src-address=192.168.1.0/24 protocol=tcp dst-port=443,8291 comment="HTTPS" /ip firewall filter add chain=input action=accept in-interface=bridge src-address=192.168.1.0/24 protocol=tcp dst-port=80 comment="HTTP" /ip firewall filter add chain=input action=drop comment="drop all else"

/ip firewall filter move numbers=4 destination=1

/system logging action set name=remote remote=192.168.1.20 remote-port=514

numbers: 3

/system logging add topics=info action=remote /system logging add topics=warning action=remote /system logging add topics=error action=remote /system logging add topics=critical action=remote

/system/clock/ set time-zone-name=Asia/Tokyo /system/ntp/client/ set enabled=yes servers=192.168.1.22

/ip/route/ add dst-address=0.0.0.0/24 gateway=192.168.1.254 /ip/dns/ set servers=192.168.1.22,192.168.1.23 allow-remote-requests=yes

参考資料

https://wiki.mikrotik.com/Manual:CRS3xx_series_switches

https://mikrotik.com/product/crs309_1g_8s_in

https://manuals.plus/ja/mikrotik/crs309-1g-8sin-router-board-manual


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2025-09-22 (月) 03:47:03