OpenVZ Forum


Home » General » Support » *SOLVED* Static ARP setting in VM
*SOLVED* Static ARP setting in VM [message #13209] Wed, 23 May 2007 12:27 Go to next message
HRogge is currently offline  HRogge
Messages: 16
Registered: April 2007
Junior Member
I'm trying to set a fixed ARP cache entry inside a VM, but I always get an error.

vn101:/# arp -s 10.0.0.101 00:11:22:33:44:55
SIOCSARP: Operation not permitted

[Updated on: Fri, 25 May 2007 10:41] by Moderator

Report message to a moderator

Re: Static ARP setting in VM [message #13211 is a reply to message #13209] Wed, 23 May 2007 12:37 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

In case you are using venet networking for a VE (venet is default), host system acts as a router, and VE has a macless venet device -- so there is no arp and you can not add arp entries.

I'm not sure what you try to achieve, but you can either add arp entry on the host system, or try using veth (see http://wiki.openvz.org/Veth), which is brigded (as opposed to routed) networking for a VE with a mac address.

Last way is to use real ethernet device (vzctl set --netdev_add)


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Static ARP setting in VM [message #13221 is a reply to message #13209] Wed, 23 May 2007 12:54 Go to previous messageGo to next message
HRogge is currently offline  HRogge
Messages: 16
Registered: April 2007
Junior Member
I think this should be the relevant part of my /etc/vz/conf/101.conf:

NETIF="ifname=eth0,mac=00:00:00:00:02:01,host_ifname=veth101.0,host_mac=00:00:00
:00:01:01;ifname=eth1,mac=00:00:00:00:04:01,host_ifname=veth101.1,host_mac=00:00
:00:00:03:01"


I would like to achive that the VM does not have to ask for the MAC address of it's communication partner by an ARP packet (there is a fixed number of MACs/IPs).
Re: Static ARP setting in VM [message #13372 is a reply to message #13221] Fri, 25 May 2007 10:40 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Thank you for the report, I attach the path that fixes your problem. It probably will be included in next OVZ kernel release.

Thanks,
Vasily.
icon7.gif  Re: *SOLVED* Static ARP setting in VM [message #13376 is a reply to message #13209] Fri, 25 May 2007 10:59 Go to previous messageGo to next message
HRogge is currently offline  HRogge
Messages: 16
Registered: April 2007
Junior Member
Thank you, I will try to test this patch soon...
Re: Static ARP setting in VM [message #13408 is a reply to message #13372] Fri, 25 May 2007 14:46 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

commited in 028stab034

http://static.openvz.org/userbars/openvz-developer.png
Re: *SOLVED* Static ARP setting in VM [message #13509 is a reply to message #13209] Tue, 29 May 2007 06:19 Go to previous message
HRogge is currently offline  HRogge
Messages: 16
Registered: April 2007
Junior Member
It works nice, thank you for the quick patch. Razz
Previous Topic: E: You don't have enough free space in /var/cache/apt/archives/.
Next Topic: *BUG REPORTED* support for grsecurity-patched kernels?
Goto Forum:
  


Current Time: Sat Apr 27 13:46:25 GMT 2024

Total time taken to generate the page: 0.03292 seconds