12 个解决方案
#1
http://net.it168.com/Resource/2007-07-03/8.shtml
#2
你把你现在设备的配置贴上来,我帮你改改就好了!
#3
version 1.74
local-user ftp service-type ftp password simple 123
sysname router_252
ip host mserver 172.16.0.35
ip host office 172.16.0.3
firewall disable
aaa-enable
aaa accounting-scheme optional
ftp-server enable
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
description lan
mtu 1492
ip address 172.16.0.252 255.255.255.0
!
interface Ethernet1
description wan
mtu 1492
ip address 112.95.223.162 255.255.255.252
!
interface Ethernet2
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 112.95.223.161 preference 60
!
return
帮忙看看哪里不对
local-user ftp service-type ftp password simple 123
sysname router_252
ip host mserver 172.16.0.35
ip host office 172.16.0.3
firewall disable
aaa-enable
aaa accounting-scheme optional
ftp-server enable
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
description lan
mtu 1492
ip address 172.16.0.252 255.255.255.0
!
interface Ethernet1
description wan
mtu 1492
ip address 112.95.223.162 255.255.255.252
!
interface Ethernet2
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 112.95.223.161 preference 60
!
return
帮忙看看哪里不对
#4
这个配置,内网是上不了网的,因为 172.16.0.0/16 网段是私网地址,需要在 Wan 口开启 NAT 才能上网!
#5
不会吧,我的局域网不只一个网关,其它的网关是用LINKSYS-RV082,好象没开NAT也可以上
#6
能否给出具体的代码?
#7
LINKSYS 属于Soho型小路由器,默认都是打开的!
最简单的配置如下:
1.配置ACL,匹配需要上网的网段!
[Router] acl 2000 match-order auto
[Router-acl2000] rule normal permit source 10.0.0.0 0.0.0.255
[Router-acl2000] rule deny ip source any
2.接口上启用NAT功能!
[Router] interface Ethernet1
[Router-Ethernet1] nat outbound 2000 interface
最简单的配置如下:
1.配置ACL,匹配需要上网的网段!
[Router] acl 2000 match-order auto
[Router-acl2000] rule normal permit source 10.0.0.0 0.0.0.255
[Router-acl2000] rule deny ip source any
2.接口上启用NAT功能!
[Router] interface Ethernet1
[Router-Ethernet1] nat outbound 2000 interface
#8
是在外网接口上启用NAT吧
#9
10.0.0.0 0.0.0.255
这个我是不是设置成我的内网地址?
172.16.0.0 0.0.255
这个我是不是设置成我的内网地址?
172.16.0.0 0.0.255
#10
是的!
#11
通了,谢谢
#12
#1
http://net.it168.com/Resource/2007-07-03/8.shtml
#2
你把你现在设备的配置贴上来,我帮你改改就好了!
#3
version 1.74
local-user ftp service-type ftp password simple 123
sysname router_252
ip host mserver 172.16.0.35
ip host office 172.16.0.3
firewall disable
aaa-enable
aaa accounting-scheme optional
ftp-server enable
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
description lan
mtu 1492
ip address 172.16.0.252 255.255.255.0
!
interface Ethernet1
description wan
mtu 1492
ip address 112.95.223.162 255.255.255.252
!
interface Ethernet2
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 112.95.223.161 preference 60
!
return
帮忙看看哪里不对
local-user ftp service-type ftp password simple 123
sysname router_252
ip host mserver 172.16.0.35
ip host office 172.16.0.3
firewall disable
aaa-enable
aaa accounting-scheme optional
ftp-server enable
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
description lan
mtu 1492
ip address 172.16.0.252 255.255.255.0
!
interface Ethernet1
description wan
mtu 1492
ip address 112.95.223.162 255.255.255.252
!
interface Ethernet2
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 112.95.223.161 preference 60
!
return
帮忙看看哪里不对
#4
这个配置,内网是上不了网的,因为 172.16.0.0/16 网段是私网地址,需要在 Wan 口开启 NAT 才能上网!
#5
不会吧,我的局域网不只一个网关,其它的网关是用LINKSYS-RV082,好象没开NAT也可以上
#6
能否给出具体的代码?
#7
LINKSYS 属于Soho型小路由器,默认都是打开的!
最简单的配置如下:
1.配置ACL,匹配需要上网的网段!
[Router] acl 2000 match-order auto
[Router-acl2000] rule normal permit source 10.0.0.0 0.0.0.255
[Router-acl2000] rule deny ip source any
2.接口上启用NAT功能!
[Router] interface Ethernet1
[Router-Ethernet1] nat outbound 2000 interface
最简单的配置如下:
1.配置ACL,匹配需要上网的网段!
[Router] acl 2000 match-order auto
[Router-acl2000] rule normal permit source 10.0.0.0 0.0.0.255
[Router-acl2000] rule deny ip source any
2.接口上启用NAT功能!
[Router] interface Ethernet1
[Router-Ethernet1] nat outbound 2000 interface
#8
是在外网接口上启用NAT吧
#9
10.0.0.0 0.0.0.255
这个我是不是设置成我的内网地址?
172.16.0.0 0.0.255
这个我是不是设置成我的内网地址?
172.16.0.0 0.0.255
#10
是的!
#11
通了,谢谢