[admin@station] > 添加eoip隧道接口:
[admin@station] > interface eoip add remote-address=10.1.0.1 tunnel-id=1 \\... disabled=no 添加桥接口并将相应的接口放入: [admin@ap] > interface bridge port set eoip-tunnel1,ether1 bridge=bridge1
[admin@station] > interface bridge add forward-protocols=ip,arp,other \ \... disabled=no [admin@station] > interface bridge port set eoip-tunnel1,ether1 bridge=bridge1 注: 如果你是通过ether1连接的,那在设置后将会丢失连接。这是因为网卡设置的切换。 将以太网卡的ip地址移动到桥接口上: [admin@ap] ip address> print flags: x - disabled, i - invalid, d - dynamic # address network broadcast interface 0 10.0.0.215/24 10.0.0.0 10.0.0.255 bridge1 1 10.1.0.1/24 10.1.0.0 10.1.0.255 wlan1 [admin@ap] ip address>
[admin@station] ip address> set [find interface=ether1 ] interface=bridge1 [admin@station] ip address> print flags: x - disabled, i - invalid, d - dynamic # address network broadcast interface 0 10.0.0.216/24 10.0.0.0 10.0.0.255 bridge1 1 10.1.0.2/24 10.1.0.0 10.1.0.255 wlan1 [admin@station] ip address> 现在你可以通过在ether1上的bridge1接口连接到路由器。 通过ping 测试桥连接从10.0.0.215到10.0.0.216。注,桥需要10到30秒时间学习地址和开始经过的流量。 如果你有prism、cisco/aironet网卡或加密的pptp隧道,同样可以创建eoip透明桥然而,eoip隧道只能用于建立两个mikrotik路由器之间。 如何将公网地址连接到一个本地地址? 属性描述 例如一个电脑有一个自己在局域网的地址但需要使用公务网络的通信。
添加10.0.0.216/24和10.0.0.217/24 地址到路由器的外网网卡上,并设置192.168.0.254/24到内网网卡: /ip address add address=10.0.0.216/24 interface=public add address=10.0.0.217/24 interface=public add address=192.168.0.254/24 interface=local flags: x - disabled, i - invalid, d - dynamic # address network broadcast interface 0 10.0.0.216/24 10.0.0.0 10.0.0.255 public 1 10.0.0.217/24 10.0.0.0 10.0.0.255 public 2 192.168.0.254/24 192.168.0.0 192.168.0.255 local 在添加默认路由的时你应该意识到有两个地址。while adding the default route to the router you should be aware of having two addresses. you should specify the address that the router will be using while talking to the outer networks: /ip route add gateway=10.0.0.1 preferred-source=10.0.0.217 flags: x - disabled, i - invalid, d - dynamic, j - rejected, c - connect, s - static, r - rip, o - ospf, b - bgp # dst-address g gateway distance interface 0 s 0.0.0.0/0 r 10.0.0.1 1 public 1 dc 10.0.0.0/24 r 0.0.0.0 0 public 2 dc 192.168.0.0/24 r 0.0.0.0 0 local (责任编辑:admin) |