在Freebsd和Linux之间创建IP隧道
[
2008/09/29 19:47 | by askwan ]
2008/09/29 19:47 | by askwan ]
OS1:Linux
Network Interface: eth0
IP: 61.152.1.1
OS2: FreeBSD
Network Interface: fxp0
IP: 210.51.1.1
预配置:
OS1: 10.0.0.1 / 255.255.255.252
OS2: 10.0.0.2 / 255.255.255.252
OS1上配置
配置ipip隧道
OS2配置隧道
OS1测试:
#ping -c 4 10.0.0.2
Network Interface: eth0
IP: 61.152.1.1
OS2: FreeBSD
Network Interface: fxp0
IP: 210.51.1.1
预配置:
OS1: 10.0.0.1 / 255.255.255.252
OS2: 10.0.0.2 / 255.255.255.252
OS1上配置
配置ipip隧道
Quotation
#ip tunnel add tun0 mode ipip remote 210.51.1.1 local 61.152.1.1 dev eth0
#ifconfig tun0 10.0.0.1 netmask 255.255.255.252 pointopoint 10.0.0.2
#ifconfig tun0 mtu 1500 up
#ifconfig tun0 10.0.0.1 netmask 255.255.255.252 pointopoint 10.0.0.2
#ifconfig tun0 mtu 1500 up
OS2配置隧道
Quotation
#ifconfig gif0 create
#gifconfig gif0 inet 210.51.1.1 61.152.1.1
#ifconfig gif0 10.0.0.2 netmask 255.255.255.252 10.0.0.1
#ifconfig gif0 mtu 1500 up
#gifconfig gif0 inet 210.51.1.1 61.152.1.1
#ifconfig gif0 10.0.0.2 netmask 255.255.255.252 10.0.0.1
#ifconfig gif0 mtu 1500 up
OS1测试:
#ping -c 4 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.139 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.138 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.138 ms
64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.136 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.139 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.138 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.138 ms
64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.136 ms
httpd: apr_sockaddr_info_get() failed 错误
[
2008/09/11 09:50 | by askwan ]
2008/09/11 09:50 | by askwan ]
今天一客户机器出现这种错误
一般是由于系统hostname设置不当或者混乱造成的
解决方法:
确保系统hostname指令得出的值与 /etc/hosts 和 /etc/sysconfig/network所对应的值一致
这也提醒我们 修改系统的主机名 为了不必要的麻烦 就要同时修改这两个文件才行
再次启动httpd 就不会有这个错误了
至于下面这一行 设置apache配置文件 将ServerName 设置为对应IP地址即可
Quotation
[root@server ]/usr/local/apache2/bin/apachectl start
httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
一般是由于系统hostname设置不当或者混乱造成的
解决方法:
确保系统hostname指令得出的值与 /etc/hosts 和 /etc/sysconfig/network所对应的值一致
这也提醒我们 修改系统的主机名 为了不必要的麻烦 就要同时修改这两个文件才行
再次启动httpd 就不会有这个错误了
至于下面这一行 设置apache配置文件 将ServerName 设置为对应IP地址即可
rrdtool画的图
[
2008/08/27 16:54 | by askwan ]
2008/08/27 16:54 | by askwan ]




