|
发表于 2006-12-11 17:45:18
|
显示全部楼层
双线固定IP,两个网关,一条主线wan,一条线114做192.168.0.200单机负载
[gu@MikroTik] interface> pri
Flags: X - disabled, D - dynamic, R - running
# NAME TYPE RX-RATE TX-RATE MTU
0 R lan ether 0 0 1500
1 R wan ether 0 0 1500
2 R 114 ether 0 0 1500
[gu@MikroTik] ip address> pri
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 ;;; added by setup
192.168.0.1/24 192.168.0.0 192.168.0.255 lan
1 ;;; added by setup
61.153.249.74/28 61.153.249.64 61.153.249.79 wan
2 60.191.235.18/30 60.191.235.16 60.191.235.19 114
[gu@MikroTik] ip address> /ip fi ma
[gu@MikroTik] ip firewall mangle> exp
/ ip firewall mangle
add chain=prerouting src-address=61.153.249.74 action=mark-routing new-routing-mark=wan passthrough=yes comment="" \
disabled=no
add chain=prerouting src-address=60.191.235.18 action=mark-routing new-routing-mark=114 passthrough=yes comment="" \
disabled=no
[gu@MikroTik] ip firewall mangle> /ip fi na
[gu@MikroTik] ip firewall nat> exp
/ ip firewall nat
add chain=dstnat dst-address=60.191.235.18 action=dst-nat to-addresses=192.168.0.200 to-ports=0-65535 comment="" \
disabled=yes
add chain=srcnat src-address=192.168.0.200 action=src-nat to-addresses=60.191.235.18 to-ports=0-65535 comment="" \
disabled=no
add chain=srcnat src-address=192.168.0.0/24 action=src-nat to-addresses=61.153.249.74 to-ports=0-65535 comment="" \
disabled=no
[gu@MikroTik] ip firewall nat> /ip ro
[gu@MikroTik] ip route> exp
/ ip route
add dst-address=0.0.0.0/0 gateway=61.153.249.73 scope=255 target-scope=10 routing-mark=wan comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=60.191.235.17 scope=255 target-scope=10 routing-mark=114 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=61.153.249.73 scope=255 target-scope=10 comment="" disabled=no
[gu@MikroTik] ip route> pri
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 60.191.235.16/30 60.191.235.18 114
1 ADC 61.153.249.64/28 61.153.249.74 wan
2 ADC 192.168.0.0/24 192.168.0.1 lan
3 A S 0.0.0.0/0 r 61.153.249.73 wan
4 A S 0.0.0.0/0 r 60.191.235.17 114
5 A S 0.0.0.0/0 r 61.153.249.73 wan
现在主线通了
192.168.0.200只能ping通网关60.191.235.17,外网都不通
大家帮我看下什么问题
[ 本帖最后由 askystar 于 2006-12-11 19:16 编辑 ] |
|