日志文章

2007年08月22日 21:48:53

华为路由器配置VPN

环境:

路由器A
公网IP:202.101.1.2/24
Tunnel IP:192.168.0.1/30
Source IP:202.101.1.2
Destnation IP:202.101.2.2

路由器B
公网IP:202.101.2.2/24
Tunnel IP192.168.0.2/30
Source IP202.101.2.2
Destnation IP202.101.1.2

命令配置:

命令版本 V3.40

Router A
#
sysname RTA
#
interface Ethernet2/0
ip address 202.101.1.2 255.255.255.0 /公网IP/
#
interface Ethernet2/1
ip address 192.168.1.1 255.255.255.0 /内部私网IP/
#
interface Tunnel0 /创建tunnel 0/
ip address 192.168.0.1 255.255.255.252 /tunnel IP和对方tunnel IP在同一网段/
source 202.101.1.2 /源地址/
destination 202.101.2.2 /目的地址/
#
ip route-static 0.0.0.0 0.0.0.0 202.101.1.1 preference 60 /到公网的默认路由/
ip route-static 192.168.2.0 255.255.255.0 Tunnel 0 preference 60 /通过tunnel访问对方私网的路由/

Router B
#
sysname RTB
#
interface Ethernet2/0
ip address 202.101.2.2 255.255.255.0 /内部私网IP/
#
interface Tunnel0 /创建tunnel 0/
ip address 192.168.0.2 255.255.255.252 /tunnel IP和对方tunnel IP在同一网段/
source 202.101.2.2 /源地址/
destination 202.101.1.2 /目的地址/
#
ip route-static 0.0.0.0 0.0.0.0 202.101.2.1 preference 60 /到公网的默认路由/
ip route-static 192.168.1.0 255.255.255.0 Tunnel 0 preference 60 /通过tunnel访问对方私网的路由/
#
return

类别: 无分类 |  评论(4) |  浏览(3605) |  收藏
4楼 [匿名]sdf34fsdsdf 2008年09月05日 02:47:28 Says:
[url=http://www.shenzhenair.org.cn]
3楼 [匿名]guest 2008年08月30日 17:51:48 Says:
0830
2楼 [匿名]jzwch 2008年08月22日 23:34:50 Says:
[url=http://www.bjgreatwall.cn/]graphite[/url][url=http://www.bjgreatwall.cn/]crucible[/url][url=http://www.lyzx518.com/]?
1楼 [匿名]wow gold 2008年08月19日 16:11:36 Says:
In the sound.department you are not.[url=http://www.wowgold4europe.fr]wow gold[/url] short-changed either Things clang.grind crunch splatter and a whole.[url=http://www.mp3playerstore.fr]mp3[/url] lot more as you interact.[url=http://www.wowgold4europe.de]wow gold kaufen[/url] You can get a feel for a hit as.[url=http://www.gamesavor.com]world of warcraft gold[/url] an axe or sword buries itself into the mon.[url=http://www.gamesavor.com/WOW/WorldOfWarcraft-DE.aspx]wow geld[/url] or the swoosh of a fireball as it crackles towards.[url=http://www.wowgold4europe.de/WOW/WorldOfWarcraft-Power-Level/WOWPowerLevel-DE.aspx]wow powerlevel[/url] its target Music is also not stinted on[url=http://www.gamesavor.com]buy wow gold[/url] Each realm has it's own anthem that fits.[url=http://www.wowgold4europe.fr]wow[/url] its status within the world and the.[url=http://www.mp3playerstore.fr]mp4[/url] option to turn on and loop ambient.[url=http://www.gamesavor.com]cheap wow gold[/url] music is also there, an option that.[url=http://www.wowgold4europe.fr/WOW-GOLD-EU-SERVER/WoWGold4Europe-ServerList-europe.aspx]serveur wow[/url] does a good job of not swampig.[url=http://www.wowgold4europe.fr/SiteWeb/GameDoc/WOWGold4EuropeNews.aspx]wow europe[/url] the ambient sounds that are there.[url=http://www.gamesavor.com]cheapest wow gold[/url] anyway Again it should be released.
[url=http://www.gamesavor.com/WOW/WoW-PowerlevelingService-US.aspx]wow power leveling[/url] as a soundtrack There is no issue with game time.[url=http://www.gamesavor.com/WOW/WoW-PowerlevelingService-US.aspx]wow powerleveling [/url] You will either spend hours immersed.[url=http://www.gamesavor.com/WOW/WorldOfWarcraft-DE.aspx]gold wow[/url] within trying for that next thing or making.[url=http://www.digihedo.com]mp3 players[/url] a better sword or you will have made your mind up.[url=http://www.digihedo.de]mp3 player[/url] already and will not be seen anywhere near the game.
[url=http://www.mp3playerstore.fr]mp4[/url] There is enough for what everyone could want.Controls are configurable and can be altered.[url=http://www.gamesavor.com/WOW/WorldOfWarcraft-FR.aspx]wow[/url] to make the best use of your game style.[url=http://www.mp3playershopping.de]zubehoer mp3 player[/url] including the use of all five.[url=http://www.digihedo.com]mp4[/url] buttons on some mice.[url=http://www.mp3playerstore.fr]mp3[/url] Combat and magic are intuitive.[url=http://www.mp3playerstore.fr]mp4[/url] even when using a pet Level progression.

0楼 [匿名]sdf34fsdsdf 2008年07月26日 05:44:25 Says:
[url=http://www.jipiaoonline.cn]
-1楼 [匿名]sdf34fsdsdf 2008年07月22日 00:41:59 Says:
[url=http://www.jipiaoonline.cn]
-2楼 [匿名]iolov1987 2008年07月08日 14:08:52 Says:
<a href="http:www.goxk.com">
-3楼 [匿名]心急的人 2007年09月22日 20:55:45 Says:
我想家里计算机远程控制公司内网计算机,而不是路由器与路由器连接,我下面配置,能帮我找下问题吗?我是通过tunnel来实现的,写了如下命令,不过仍然无法实现,请指点:

[router]interface tunnel 100
        ip address 172.168.0.2   255.255.255.252
        source 60.182.*.*(这是家里的ip)
        destination 60.*.*.*(这是公司的公网ip)
[router]ip route-static 192.168.0.0 255.255.255.0 tunnel 100
发表评论