Newbie Question about network.. [message #38818] |
Thu, 04 February 2010 08:02  |
Lord Daedra
Messages: 5 Registered: February 2010 Location: Kolchugino
|
Junior Member |
|
|
Hello!
Host OS: Centos 5.4, VPS OS: Ubuntu 9.10.
I can't ping google.com on my VPS.
I used default Ubuntu template from this site, google nameserver 8.8.8.8 for VPS and ip 174.142.167.217.
vzctl create 217 --ostemplate ubuntu-9.10-x86 --ipadd 174.142.167.217 --hostname database.entropia.us --name database
vzctl set 217 --onboot yes --nameserver 8.8.8.8 --save
I need install public VEs (with their own IP addresses) so I'm look at http://wiki.openvz.org/Common_Networking_HOWTOs and use this command:
[host-node]# echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig on my host system:
Quote: | [root@cl-t127-072cl ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:67.205.67.10 Bcast:67.205.67.31 Mask:255.255.255.224
inet6 addr: fe80::230:48ff:feb0:bad8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:339100 errors:0 dropped:0 overruns:0 frame:0
TX packets:178932 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:492718192 (469.8 MiB) TX bytes:12945821 (12.3 MiB)
Memory:d0100000-d0120000
eth0:1 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:174.142.167.217 Bcast:174.142.167.223 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:d0100000-d0120000
eth0:2 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:174.142.167.218 Bcast:174.142.167.223 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:d0100000-d0120000
eth0:3 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:174.142.167.219 Bcast:174.142.167.223 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:d0100000-d0120000
eth0:4 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:174.142.167.220 Bcast:174.142.167.223 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:d0100000-d0120000
eth0:5 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:174.142.167.221 Bcast:174.142.167.223 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:d0100000-d0120000
eth0:6 Link encap:Ethernet HWaddr 00:30:48:B0:BA:D8
inet addr:174.142.167.222 Bcast:174.142.167.223 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:d0100000-d0120000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:504 (504.0 b) TX bytes:504 (504.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
next i start and enter to my VPS and see ifconfig command blank result..
Info from datacenter:
Primary IP address : 67.205.67.10
Primary IP mask : 255.255.255.224
Gateway : 67.205.67.1
Usable secondary addresses: 174.142.167.217-222
Mask : 255.255.255.248
So also I replaced all 255.255.255.255 in /etc/vz/dists/scripts/debian-add_ip.sh to 255.255.255.248 in debian add ip script...
P.S.
[root@cl-t127-072cl ~]# ip rule list
0: from all lookup 255
32766: from all lookup main
32767: from all lookup default
[root@cl-t127-072cl ~]# iptables -t nat -L && iptables -t filter -L && iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Please help me, where is my error?
|
|
|