OpenVZ Forum


Home » International » Russian » [solved]проблемы с сетью в VE
[solved]проблемы с сетью в VE [message #34741] Thu, 29 January 2009 20:19 Go to next message
anray is currently offline  anray
Messages: 13
Registered: January 2009
Junior Member
Здравствуйте.
Почему-то сеть не работает в VE - вроде все распрекрасно настроил, а не работает даже пинг на HN.
===================================
На HN:
ip a
2: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:1c:c0:41:84:80 brd ff:ff:ff:ff:ff:ff
inet 192.168.176.11/24 brd 192.168.176.255 scope global eth0
inet 192.168.176.12/24 brd 192.168.176.255 scope global secondary eth0:0
inet6 fe80::21c:c0ff:fe41:8480/64 scope link
valid_lft forever preferred_lft forever
1: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
11: tunl0: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
13: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
==================================================
На VE:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 192.168.176.12/32 brd 192.168.176.12 scope global venet0:0
========================================================
На VE пингую ya.ru:
ping 213.180.204.8
PING 213.180.204.8 (213.180.204.Cool 56(84) bytes of data.

--- 213.180.204.8 ping statistics ---
35 packets transmitted, 0 received, 100% packet loss, time 33998ms
=========================================================
На HN tcpdump -n -i venet0 показывает:
22:10:56.283829 IP 192.168.176.12 > 213.180.204.8: ICMP echo request, id 37436, seq 5, length 64
22:10:57.283962 IP 192.168.176.12 > 213.180.204.8: ICMP echo request, id 37436, seq 6, length 64
22:10:58.284094 IP 192.168.176.12 > 213.180.204.8: ICMP echo request, id 37436, seq 7, length 64
22:10:59.283228 IP 192.168.176.12 > 213.180.204.8: ICMP echo request, id 37436, seq 8, length 64
==========================================================
На HN все работает - пинги идут. Из-за чего это может быть? Система - centos 5.2 с последним ядром(на прошлом тоже самое), все сделано по хауту, но сеть не работает.

[Updated on: Sun, 01 February 2009 06:53]

Report message to a moderator

Re: проблемы с сетью в VE [message #34749 is a reply to message #34741] Fri, 30 January 2009 16:46 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Здравствуйте,

скажите, пожалуйста, по какому howto сделано?
На HN не должно быть никаких alias'ов с IP адресами, используемыми внутри VE!
Re: проблемы с сетью в VE [message #34751 is a reply to message #34749] Fri, 30 January 2009 23:12 Go to previous messageGo to next message
anray is currently offline  anray
Messages: 13
Registered: January 2009
Junior Member
IP-адреса должны быть прописаны получается только на VE или как?
Про это просто совершенно нигде не пишется. Сейчас удалил алиас, попробую без него.
UPD: Все, сделал. Кстати, на wiki.openvz.org ошибки в howto

[Updated on: Fri, 30 January 2009 23:33]

Report message to a moderator

Re: проблемы с сетью в VE [message #34759 is a reply to message #34751] Sat, 31 January 2009 20:45 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Здравствуйте,
скажите, пожалуйста, по какому конкретному how to вы делали?
http://wiki.openvz.org/Venet
Re: проблемы с сетью в VE [message #34761 is a reply to message #34759] Sun, 01 February 2009 06:52 Go to previous messageGo to next message
anray is currently offline  anray
Messages: 13
Registered: January 2009
Junior Member
Вот по этому:
http://wiki.openvz.org/Quick_installation
Из-за того, что sysctl был неверно настроен, вот это там пишется:
===============================================
# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0

# Enables source route verification
net.ipv4.conf.all.rp_filter = 1

# Enables the magic-sysrq key
kernel.sysrq = 1

# We do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
================================================
Нужно это:
net.ipv6.conf.default.forwarding = 1
Сменить на это:
net.ipv4.conf.default.forwarding=1

Я так настроил в самом начале, но так как не заработало, поставил алиас, но и с ним не работало.
Re: проблемы с сетью в VE [message #34768 is a reply to message #34761] Mon, 02 February 2009 08:21 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Проставление
net.ipv4.ip_forward = 1
влечет за собой
net.ipv4.conf.default.forwarding=1
Previous Topic: Снимать показания трафика с VE
Next Topic: Как сделать бридж внутри VE?
Goto Forum:
  


Current Time: Tue Mar 19 08:52:54 GMT 2024

Total time taken to generate the page: 0.02566 seconds