hello Why you need that?
The nic name is generated by linux based on thinks like pci port. What requirement you have that relies on the nic name? alvaro. > On 1 Dec 2017, at 13:07, Mathew Abraham <logicthinker...@gmail.com> wrote: > > Hi guys, > > Is it possible to change the nic name to custom one using vagrantfile ? i.e > instead of 'enp0s8' could I specify 'ens100' ? > > c.vm.network :public_network, ip: 192.17.28.180 , netmask: > '255.255.255.0' > > > [vagrant@ansible ~]$ ifconfig > enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 > inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 > inet6 xxxxxxxxxxxxxxx prefixlen 64 scopeid 0x20<link> > ether 09:00:30:1f:gc:83 txqueuelen 1000 (Ethernet) > RX packets 45752 bytes 63057452 (60.1 MiB) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 7547 bytes 558118 (545.0 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 > inet 192.17.28.180 netmask 255.255.255.0 broadcast 192.17.28.255 > inet6 xxxxxxxxxxxxxx prefixlen 64 scopeid 0x20<link> > ether 09:00:30:gc:dc:92 txqueuelen 1000 (Ethernet) > RX packets 86 bytes 8543 (8.3 KiB) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 55 bytes 8108 (7.9 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > Thanks, > Mathew > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html > <https://www.hashicorp.com/community-guidelines.html>. Behavior in violation > of those guidelines may result in your removal from this mailing list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > <https://github.com/mitchellh/vagrant/issues> > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com > <mailto:vagrant-up+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/dfda4d37-4f2f-427b-abc0-d0ad5eda9ba7%40googlegroups.com > > <https://groups.google.com/d/msgid/vagrant-up/dfda4d37-4f2f-427b-abc0-d0ad5eda9ba7%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/52EBA1E0-FBE0-44AF-A2C7-BA4B9397431B%40gmail.com. For more options, visit https://groups.google.com/d/optout.