MCSE技术论坛

首页 » 考试认证 » 思科网络技术 » CIPE连接两个局域网(VPN)-----广州北大青鸟五羊新城电脑培训
benet0wangzi - 2007-11-28 15:38:00
[attach]14544[/attach]
linux主机redhat
1、ifcfg-cipcb0内容:
DEVICE=cipcb0
ONBOOT=yes
USERCTL=yes
2、options.cipcb0内容:
# Surprise, this file allows comments (but only on a line by themselves)
# This is probably the minimal set of options that has to be set
# Without a "device" line, the device is picked dynamically
device cipcb0
# the peer's IP address
ptpaddr  192.168.1.1
# our CIPE device's IP address
ipaddr  192.168.0.28
# my UDP address. Note: if you set port 0 here, the system will pick
# one and tell it to you via the ip-up scrīpt. Same holds for IP 0.0.0.0.
me  61.177.190.1:9000
# ...and the UDP address we connect to. Of course no wildcards here.
peer  61.177.190.2:9000
# The static key. Keep this file secret!
# The key is 128 bits in hexadecimal notation.
key  3248fd20adf9c00ccf9ecc2393bbb3e4
3、ip-up内容增加以下路由:
route add -host 192.168.1.1 dev cipcb0
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
linux主机rh9
1、ifcfg-cipcb0内容:
DEVICE=cipcb0
ONBOOT=yes
USERCTL=yes
2、options.cipcb0内容:
# Surprise, this file allows comments (but only on a line by themselves)
# This is probably the minimal set of options that has to be set
# Without a "device" line, the device is picked dynamically
device cipcb0
# the peer's IP address
ptpaddr 192.168.0.28
# our CIPE device's IP address
ipaddr 192.168.1.1
# my UDP address. Note: if you set port 0 here, the system will pick
# one and tell it to you via the ip-up scrīpt. Same holds for IP 0.0.0.0.
me 61.177.190.2:9000
# ...and the UDP address we connect to. Of course no wildcards here.
peer 61.177.190.1:9000
# The static key. Keep this file secret!
# The key is 128 bits in hexadecimal notation.
key 3248fd20adf9c00ccf9ecc2393bbb3e4
3、ip-up内容增加以下路由:
route add -host 192.168.0.28 dev cipcb0
route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.28
分别开启数据转发功能,并且分别chmod 6000 options.cipcb0,否则cipcb0端口无法启动。最强的师资!最好的设备!我信赖:北大青鸟(五羊新城学校)网络工程师培训中心 咨询电话:87318662 传真:87601353 地址:广州市越秀区达道路12号金达大厦三楼
wendel - 2007-11-30 22:56:00
还是广告在最后,不过谢谢您的资料
1
查看完整版本: CIPE连接两个局域网(VPN)-----广州北大青鸟五羊新城电脑培训