time to live exceeded [message #39464] |
Wed, 28 April 2010 10:51 |
romeor
Messages: 11 Registered: April 2010
|
Junior Member |
|
|
Hello,
First of all - openvz is great stuff, thank you.
here goes my question (i'm sure that there is some miss in my knowlege, so please could you help me?)
i've got host machine with openvz installed and running 3 containers.
host has 2 eths in different subnets one in public network and one in local one here is conf:
[root@watcher ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:9F:3C:D6:22
inet addr:193.40.142.225 Bcast:193.40.142.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe3c:d622/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6962 errors:0 dropped:0 overruns:0 frame:0
TX packets:1979 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:607673 (593.4 KiB) TX bytes:280738 (274.1 KiB)
Base address:0xecc0 Memory:fe100000-fe120000
eth1 Link encap:Ethernet HWaddr 00:04:75:DA:4C:1B
inet addr:172.16.0.25 Bcast:172.16.0.255 Mask:255.255.255.0
inet6 addr: fe80::204:75ff:feda:4c1b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82347 errors:0 dropped:0 overruns:1 frame:0
TX packets:71013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9093171 (8.6 MiB) TX bytes:10801807 (10.3 MiB)
Interrupt:185 Base address:0x6000
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:37309 errors:0 dropped:0 overruns:0 frame:0
TX packets:17915 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6980845 (6.6 MiB) TX bytes:2348837 (2.2 MiB)
i've read some faqs and figured out that i've got to set up some additional routing to get my containers to work, so i did:
ip rule add from 172.16.0.26 table 6
ip rule add from 172.16.0.21 table 6
ip route add default dev eth1 via 172.16.0.254 table 6
and here is the result:
[root@watcher ~]# ip rule
0: from all lookup 255
32764: from 172.16.0.21 lookup 6
32765: from 172.16.0.26 lookup 6
32766: from all lookup main
32767: from all lookup default
[root@watcher ~]# ip route
172.16.0.21 dev venet0 scope link
193.40.142.130 dev venet0 scope link
193.40.142.226 dev venet0 scope link
172.16.0.26 dev venet0 scope link
172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.25
193.40.142.0/24 dev eth0 proto kernel scope link src 193.40.142.225
169.254.0.0/16 dev eth1 scope link
default via 193.40.142.129 dev eth0
route:
[root@watcher ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.21 * 255.255.255.255 UH 0 0 0 venet0
dns2.tlulib.ee * 255.255.255.255 UH 0 0 0 venet0
monitor.tlulib. * 255.255.255.255 UH 0 0 0 venet0
172.16.0.26 * 255.255.255.255 UH 0 0 0 venet0
172.16.0.0 * 255.255.255.0 U 0 0 0 eth1
193.40.142.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 193.40.142.129 0.0.0.0 UG 0 0 0 eth0
so i'm runing fine network for my host and containers (2 containers with 172.16.0.0/24 network and 1 with 193.40.142.0/24)
BUT!
here goes the problem i need to solve>
both containers do not speak to each other, when i ping from one to another, i get
From 193.40.142.225 icmp_seq=629 Time to live exceeded
for both.
what should i do with that? any help is welcomed.
UPDATE:
SEEMS TO BE SOLVED!!
found some info in forums, i dont really know what these lines do, but they did help.
if some1 can, please explain !!!!
added theese lines:
ip route add 172.16.0.21 dev venet0 table 6
ip route add 172.16.0.26 dev venet0 table 6
Wel,, but now i cant ping these 2 ip addresses from other pcs ...
something weird...
[Updated on: Wed, 28 April 2010 13:07] Report message to a moderator
|
|
|
|
|