|
对了, 如果要带其他机器上网, 还要做一下NAT. 假设你三块内网网卡的地址设置为 10.0.0.1, 172.16.0.1, 192.168.0.1, 子网掩码都设成了 255.255.255.0, 那么需要添加以下三条 NAT 条目:
/ip firewall nat add chain=srcnat action=masquerade src-address=10.0.0.0/24 out-interface=xxxxxx
/ip firewall nat add chain=srcnat action=masquerade src-address=172.16.0.0/24 out-interface=xxxxxx
/ip firewall nat add chain=srcnat action=masquerade src-address=192.168.0.0/24 out-interface=xxxxxx
其中xxxxxx是你外网网卡的名称.
其实我怀疑用以下一条就能搞定三块网卡:
/ip firewall nat add chain=srcnat action=masquerade src-address=0.0.0.0/0 out-interface=xxxxxx
不过没试过, 不敢乱说... |
|