我想在网络 192.168.0 中有互联网。, 我可以 ping 例如 192.168.0.59 但我在网络 192.168.0 中没有互联网连接。. 我尝试添加静态路由,但什么也没发生,set protocols static route 192.168.1.0/24 next-hop 192.168.0.100
我的配置
ethernet eth0 {
address 192.168.1.220/24
description LAN_01
hw-id 00:23:54:da:d8:2e
}
ethernet eth1 {
address 192.168.0.100/24
description LAN_02
hw-id 10:fe:ed:04:12:db
}
gateway-address 192.168.1.1
root@ROUTER2# ping google.pl
PING google.pl (46.134.212.153) 56(84) bytes of data.
64 bytes from public103577.xdsl.centertel.pl (46.134.212.153): icmp_req=1 ttl=128 time=18.5 ms
64 bytes from public103577.xdsl.centertel.pl (46.134.212.153): icmp_req=2 ttl=128 time=18.9 ms
root@ROUTER2# ping 192.168.0.59
PING 192.168.0.59 (192.168.0.59) 56(84) bytes of data.
64 bytes from 192.168.0.59: icmp_req=1 ttl=128 time=10.7 ms
64 bytes from 192.168.0.59: icmp_req=2 ttl=128 time=0.300 ms
root@ROUTER2# show service nat rule 10
outbound-interface eth0
source {
address 192.168.0.0/24
}
type masquerade
预先感谢您的帮助
