设置
- Mikrotik RouterBoard 750gr3
- 操作系统:OpenWrt 23.05.03
- MacBook
- Microtik:端口 1
- IP地址:
10.13.1.201
问题
在将配置更改为之前/etc/config/network
,可以使用 SSH,但重新启动后,我无法通过 SSH 连接,尝试了多种方法后仍无法找出问题所在。
ping
不起作用,说host is down
- Winbox 未找到设备
安装OpenWrt后,我进行了自定义/etc/config/network
,将其改为:
config globals 'globals'
option ula_prefix 'fdf7:aefc:1ed9::/48'
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6t'
option vid '2'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '2 6t'
option vid '3'
config switch_vlan
option device 'switch0'
option vlan '4'
option ports '3 6t'
option vid '4'
config switch_vlan
option device 'switch0'
option vlan '5'
option ports '4 6t'
option vid '5'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 6t'
option vid '1'
config interface 'mgmt'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '8.8.8.8'
option gateway '10.13.1.201'
option ipaddr '10.13.1.200'
option ifname 'eth0.1'
config interface 'ovs2'
option ifname 'eth0.2'
option proto 'none'
option force_link '1'
config interface 'ovs3'
option ifname 'eth0.3'
option proto 'none'
option force_link '1'
config interface 'ovs4'
option ifname 'eth0.4'
option proto 'none'
option force_link '1'
config interface 'ovs5'
option ifname 'eth0.5'
option proto 'none'
option force_link '1'
默认/etc/config/network
:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd3c:bb3e:760f::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
config device
option name 'lan2'
option macaddr '48:a9:8a:ec:b1:72'
config device
option name 'lan3'
option macaddr '48:a9:8a:ec:b1:72'
config device
option name 'lan4'
option macaddr '48:a9:8a:ec:b1:72'
config device
option name 'lan5'
option macaddr '48:a9:8a:ec:b1:72'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr '48:a9:8a:ec:b1:71'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'