fixed networking issues of Arch Linux with netctl changes

This commit is contained in:
Alper Kanat 2013-05-24 00:16:26 +03:00
parent ccfd321ef9
commit dbfce678bf
3 changed files with 12 additions and 12 deletions

View File

@ -13,8 +13,9 @@ module VagrantPlugins
temp.close
machine.communicate.upload(temp.path, "/tmp/vagrant_network")
machine.communicate.sudo("mv /tmp/vagrant_network /etc/network.d/interfaces/eth#{network[:interface]}")
machine.communicate.sudo("netcfg interfaces/eth#{network[:interface]}")
machine.communicate.sudo("ln -sf /dev/null /etc/udev/rules.d/80-net-name-slot.rules")
machine.communicate.sudo("mv /tmp/vagrant_network /etc/netctl/eth#{network[:interface]}")
machine.communicate.sudo("netctl start eth#{network[:interface]}")
end
end
end

View File

@ -1,4 +1,4 @@
CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection'
INTERFACE='eth<%= options[:interface] %>'
IP='dhcp'
Description='A basic dhcp ethernet connection'
Interface=eth<%= options[:interface] %>
Connection=ethernet
IP=dhcp

View File

@ -1,6 +1,5 @@
CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection'
INTERFACE='eth<%= options[:interface] %>'
IP='static'
ADDR='<%= options[:ip]%>'
NETMASK='<%= options[:netmask] %>'
Connection=ethernet
Description='A basic static ethernet connection'
Interface=eth<%= options[:interface] %>
IP=static
Address=('<%= options[:ip]%>/24')