OpenVZ Forum


Home » International » Russian » *SOLVED* debian and veth
*SOLVED* debian and veth [message #33501] Fri, 17 October 2008 16:12 Go to next message
rengel is currently offline  rengel
Messages: 13
Registered: December 2007
Junior Member
From: *cmk.ru
Доброго времени суток!

Настраиваю в ve veth-интерфейс сделал все по документации.
Интерфейс заработал. всё отлично. но возникла странная ситуация которую увидел при старте samba.

10:41:27.833497 arp who-has localhost tell test-pdc.test.lan
10:41:28.833124 arp who-has localhost tell test-pdc.test.lan
10:41:29.832791 arp who-has localhost tell test-pdc.test.lan
10:41:39.829461 arp who-has localhost tell test-pdc.test.lan


а при пинге из VE в ту же VE, трафик не идет
test-pdc:/# ping 192.168.0.13
PING 192.168.0.13 (192.168.0.13) 56(84) bytes of data.

--- 192.168.0.13 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3008ms

в tcpdump'e на интерфейсе VE eth0 пусто.

весь остальной трафик идет нормально.

HN: Debian lenny 5.0
VE: Debian lenny 5.0
vzctl: 3.0.22-11
kernel: linux-image-2.6.24-6-fza-686

интерфейс настраивается скриптом 12.start при старте ноды:
/sbin/ifconfig eth0 0
/sbin/ip addr add 192.168.0.13 dev eth0
/sbin/ip route add default dev eth0


в ноде производились следующие манипуляции:
ifconfig veth12.0 0
echo 1 > /proc/sys/net/ipv4/conf/veth101.0/forwarding
echo 1 > /proc/sys/net/ipv4/conf/veth101.0/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

sysctl -p на ноде
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.ip_forward = 1
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

спасибо.

[Updated on: Mon, 20 October 2008 08:29]

Report message to a moderator

Re: debian and veth [message #33509 is a reply to message #33501] Sat, 18 October 2008 18:57 Go to previous messageGo to next message
sHaggY_caT is currently offline  sHaggY_caT
Messages: 144
Registered: August 2008
Location: Moscow, Russian Federatio...
Senior Member

From: *pppoe.mtu-net.ru
А маршрутизация, которая получается в итоге, соответствует прописанной в старт-скрипте?
venet-интерфейс есть?


IT-outsource for UNIX servers,
http://ha-systems.ru
Re: debian and veth [message #33511 is a reply to message #33509] Sun, 19 October 2008 07:47 Go to previous messageGo to next message
rengel is currently offline  rengel
Messages: 13
Registered: December 2007
Junior Member
From: *112.72.255.pppoe.eltel.net
sHaggY_caT wrote on Sat, 18 October 2008 14:57

А маршрутизация, которая получается в итоге, соответствует прописанной в старт-скрипте?
venet-интерфейс есть?


да, соответствует. venet0-интерфейс присутствует, только маршрутов для него нет. по-моему они добавляются после --ipadd <...>

в VE
test-pdc:/# ip a
1: lo: <LOOPBACK> mtu 16436 qdisc noop state DOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: venet0: <BROADCAST,POINTOPOINT,NOARP> mtu 1500 qdisc noop state DOWN 
    link/void 
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:18:51:0c:cd:b3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.13/32 scope global eth0
    inet6 fe80::218:51ff:fe0c:cdb3/64 scope link 
       valid_lft forever preferred_lft forever
test-pdc:/# ip r
default dev eth0  scope link 


в HN
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    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
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:16:3e:3c:6c:ab brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.158/24 brd 192.168.0.255 scope global eth0
    inet6 fe80::216:3eff:fe3c:6cab/64 scope link 
       valid_lft forever preferred_lft forever
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/void 
4: veth12.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:18:51:6d:f8:15 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::218:51ff:fe6d:f815/64 scope link 
       valid_lft forever preferred_lft forever

192.168.0.13 dev veth12.0  scope link 
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.158 
default via 192.168.0.1 dev eth0 

Re: debian and veth [message #33524 is a reply to message #33511] Mon, 20 October 2008 08:15 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
From: *sw.ru
"ifconfig lo up" помогает?
Re: debian and veth [message #33525 is a reply to message #33524] Mon, 20 October 2008 08:27 Go to previous messageGo to next message
rengel is currently offline  rengel
Messages: 13
Registered: December 2007
Junior Member
From: *cmk.ru
угу. спасибо. Smile
Re: debian and veth [message #34141 is a reply to message #33525] Sun, 07 December 2008 13:16 Go to previous message
noOb0Bap is currently offline  noOb0Bap
Messages: 4
Registered: October 2008
Location: Russia
Junior Member

From: *obit.ru
ыыыыыыы
а ведь можно и не заметить Laughing
поначудили ведать в /etc/network/interfaces

[Updated on: Sun, 07 December 2008 13:16]

Report message to a moderator

Previous Topic: размонтирование каталогов в VPS
Next Topic: Глупый вопрос начинающего - установка VZ дистрибутива
Goto Forum:
  


Current Time: Sat Oct 20 16:57:50 GMT 2018