Setting Static IP on bridged network - Fusion/Centos

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
HI,

I'm trying to set a static ip address on my public_network. My home network is 10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
Likewise if you do the same thing with a Ubuntu 14.04 basebox, it appears to hang at ==> default: Configuring network adapters within the VM... for quite some time.

jeff.


On Monday, September 15, 2014 1:59:21 PM UTC-3, Jeff MacDonald wrote:
HI,

I'm trying to set a static ip address on my public_network. My home network is <a href="http://10.0.1.0/24" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F10.0.1.0%2F24\46sa\75D\46sntz\0751\46usg\75AFQjCNF5eDsjS750KJ5INgJUT0vN0JyLuw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F10.0.1.0%2F24\46sa\75D\46sntz\0751\46usg\75AFQjCNF5eDsjS750KJ5INgJUT0vN0JyLuw';return true;">10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
Okay. Eventually Ubuntu does come up but attempts to setup en1 with DHCP as well, just like centos.

If DHCP for public_networks is the only way it works, thats fine but the documentation seems to say it works otherwise..

https://docs.vagrantup.com/v2/networking/public_network.html

Jeff.


On Monday, September 15, 2014 3:59:02 PM UTC-3, Jeff MacDonald wrote:
Likewise if you do the same thing with a Ubuntu 14.04 basebox, it appears to hang at ==> default: Configuring network adapters within the VM... for quite some time.

jeff.


On Monday, September 15, 2014 1:59:21 PM UTC-3, Jeff MacDonald wrote:
HI,

I'm trying to set a static ip address on my public_network. My home network is <a href="http://10.0.1.0/24" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F10.0.1.0%2F24\46sa\75D\46sntz\0751\46usg\75AFQjCNF5eDsjS750KJ5INgJUT0vN0JyLuw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F10.0.1.0%2F24\46sa\75D\46sntz\0751\46usg\75AFQjCNF5eDsjS750KJ5INgJUT0vN0JyLuw';return true;">10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Alvaro Miranda Aguilera
whats the full output of ifconfig -a ?

is not the same ip segment used in eth0 ?

On Tue, Sep 16, 2014 at 7:19 AM, Jeff MacDonald <[hidden email]> wrote:
Okay. Eventually Ubuntu does come up but attempts to setup en1 with DHCP as well, just like centos.

If DHCP for public_networks is the only way it works, thats fine but the documentation seems to say it works otherwise..


Jeff.


On Monday, September 15, 2014 3:59:02 PM UTC-3, Jeff MacDonald wrote:
Likewise if you do the same thing with a Ubuntu 14.04 basebox, it appears to hang at ==> default: Configuring network adapters within the VM... for quite some time.

jeff.


On Monday, September 15, 2014 1:59:21 PM UTC-3, Jeff MacDonald wrote:
HI,

I'm trying to set a static ip address on my public_network. My home network is 10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
Here are the relevant parts. The new inteface is the same subnet as my homes public network, however it uses DHCP and will not set static ip.

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
ether 40:6c:8f:40:e0:fd
nd6 options=1<PERFORMNUD>
media: autoselect (none)
status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 7c:d1:c3:72:6a:62
inet6 fe80::7ed1:c3ff:fe72:6a62%en1 prefixlen 64 scopeid 0x5
inet 10.0.1.205 netmask 0xffffff00 broadcast 10.0.1.255
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether d2:00:10:cf:0c:80
media: autoselect <full-duplex>
status: inactive
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:3e:e1:ff:fe:0c:f0:c8
nd6 options=1<PERFORMNUD>
media: autoselect <full-duplex>
status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 42:6c:8f:04:f3:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en4 flags=3<LEARNING,DISCOVER>
       ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive

On Mon, Sep 15, 2014 at 10:41 PM, Alvaro Miranda Aguilera <[hidden email]> wrote:
whats the full output of ifconfig -a ?

is not the same ip segment used in eth0 ?

On Tue, Sep 16, 2014 at 7:19 AM, Jeff MacDonald <[hidden email]> wrote:
Okay. Eventually Ubuntu does come up but attempts to setup en1 with DHCP as well, just like centos.

If DHCP for public_networks is the only way it works, thats fine but the documentation seems to say it works otherwise..


Jeff.


On Monday, September 15, 2014 3:59:02 PM UTC-3, Jeff MacDonald wrote:
Likewise if you do the same thing with a Ubuntu 14.04 basebox, it appears to hang at ==> default: Configuring network adapters within the VM... for quite some time.

jeff.


On Monday, September 15, 2014 1:59:21 PM UTC-3, Jeff MacDonald wrote:
HI,

I'm trying to set a static ip address on my public_network. My home network is 10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Alvaro Miranda Aguilera
seems that is for the host?

I am sorry, can you send from the vagrant guest once you get a dhcp ip?



On Wed, Sep 17, 2014 at 2:52 AM, Jeff MacDonald <[hidden email]> wrote:
Here are the relevant parts. The new inteface is the same subnet as my homes public network, however it uses DHCP and will not set static ip.

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
ether 40:6c:8f:40:e0:fd
nd6 options=1<PERFORMNUD>
media: autoselect (none)
status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 7c:d1:c3:72:6a:62
inet6 fe80::7ed1:c3ff:fe72:6a62%en1 prefixlen 64 scopeid 0x5
inet 10.0.1.205 netmask 0xffffff00 broadcast 10.0.1.255
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether d2:00:10:cf:0c:80
media: autoselect <full-duplex>
status: inactive
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:3e:e1:ff:fe:0c:f0:c8
nd6 options=1<PERFORMNUD>
media: autoselect <full-duplex>
status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 42:6c:8f:04:f3:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en4 flags=3<LEARNING,DISCOVER>
       ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive

On Mon, Sep 15, 2014 at 10:41 PM, Alvaro Miranda Aguilera <[hidden email]> wrote:
whats the full output of ifconfig -a ?

is not the same ip segment used in eth0 ?

On Tue, Sep 16, 2014 at 7:19 AM, Jeff MacDonald <[hidden email]> wrote:
Okay. Eventually Ubuntu does come up but attempts to setup en1 with DHCP as well, just like centos.

If DHCP for public_networks is the only way it works, thats fine but the documentation seems to say it works otherwise..


Jeff.


On Monday, September 15, 2014 3:59:02 PM UTC-3, Jeff MacDonald wrote:
Likewise if you do the same thing with a Ubuntu 14.04 basebox, it appears to hang at ==> default: Configuring network adapters within the VM... for quite some time.

jeff.


On Monday, September 15, 2014 1:59:21 PM UTC-3, Jeff MacDonald wrote:
HI,

I'm trying to set a static ip address on my public_network. My home network is 10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
SOrry about that. I was doing thigns too quickly and not paying attention.. I didn't ssh in.. silly me. Here we go..

eth0      Link encap:Ethernet  HWaddr 00:0C:29:E1:97:1D
          inet addr:172.16.81.194  Bcast:172.16.81.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fee1:971d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:617 errors:0 dropped:0 overruns:0 frame:0
          TX packets:384 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:69885 (68.2 KiB)  TX bytes:57472 (56.1 KiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:29:E1:97:27
          inet addr:10.0.1.216  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fee1:9727/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2817 (2.7 KiB)  TX bytes:1805 (1.7 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)





On Tue, Sep 16, 2014 at 6:29 PM, Alvaro Miranda Aguilera <[hidden email]> wrote:
seems that is for the host?

I am sorry, can you send from the vagrant guest once you get a dhcp ip?



On Wed, Sep 17, 2014 at 2:52 AM, Jeff MacDonald <[hidden email]> wrote:
Here are the relevant parts. The new inteface is the same subnet as my homes public network, however it uses DHCP and will not set static ip.

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
ether 40:6c:8f:40:e0:fd
nd6 options=1<PERFORMNUD>
media: autoselect (none)
status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 7c:d1:c3:72:6a:62
inet6 fe80::7ed1:c3ff:fe72:6a62%en1 prefixlen 64 scopeid 0x5
inet 10.0.1.205 netmask 0xffffff00 broadcast 10.0.1.255
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether d2:00:10:cf:0c:80
media: autoselect <full-duplex>
status: inactive
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:3e:e1:ff:fe:0c:f0:c8
nd6 options=1<PERFORMNUD>
media: autoselect <full-duplex>
status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 42:6c:8f:04:f3:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en4 flags=3<LEARNING,DISCOVER>
       ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive

On Mon, Sep 15, 2014 at 10:41 PM, Alvaro Miranda Aguilera <[hidden email]> wrote:
whats the full output of ifconfig -a ?

is not the same ip segment used in eth0 ?

On Tue, Sep 16, 2014 at 7:19 AM, Jeff MacDonald <[hidden email]> wrote:
Okay. Eventually Ubuntu does come up but attempts to setup en1 with DHCP as well, just like centos.

If DHCP for public_networks is the only way it works, thats fine but the documentation seems to say it works otherwise..


Jeff.


On Monday, September 15, 2014 3:59:02 PM UTC-3, Jeff MacDonald wrote:
Likewise if you do the same thing with a Ubuntu 14.04 basebox, it appears to hang at ==> default: Configuring network adapters within the VM... for quite some time.

jeff.


On Monday, September 15, 2014 1:59:21 PM UTC-3, Jeff MacDonald wrote:
HI,

I'm trying to set a static ip address on my public_network. My home network is 10.0.1.0/24 and I'd like the host to be on that.

My line inside my Vagrantfile is as follows:

config.vm.network "public_network", ip: "10.0.1.111"

When i run vagrant up && vagrant ssh  then ifconfig -a, a new interface eth1 is created however its clearly getting its ipaddress via DHCP.

eth1      Link encap:Ethernet  HWaddr 00:0C:29:78:F7:1F
          inet addr:10.0.1.215  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe78:f71f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28658 (27.9 KiB)  TX bytes:1236 (1.2 KiB)

[vagrant@localhost ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
[vagrant@localhost ~]$ cat !$
cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO=dhcp
ONBOOT=yes
DEVICE=eth1
#VAGRANT-END

So, vagrant is ignoring the IP address for public networks.

My environment is as follows:

Host : Mavericks
Guest : Centos 6.5
Vagrant: 1.6.5
Using the VMWare Fusion provider.

Thoughts?

Jeff.






--
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 [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
In reply to this post by Jeff MacDonald

The folks @vagrant got back to me. Its a bug with the provider. Or a feature not implemented yet.

Jeff.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Scott Carleton
Jeff,

What was the bug?  Having a very similar situation.

On Wednesday, October 1, 2014 4:04:26 PM UTC-4, Jeff MacDonald wrote:

The folks @vagrant got back to me. Its a bug with the provider. Or a feature not implemented yet.

Jeff.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
Just the fact that it won't work was the bug. Perhaps more like "a feature not yet implemented"

On Wed, Nov 5, 2014 at 5:14 PM, Scott Carleton <[hidden email]> wrote:
Jeff,

What was the bug?  Having a very similar situation.


On Wednesday, October 1, 2014 4:04:26 PM UTC-4, Jeff MacDonald wrote:

The folks @vagrant got back to me. Its a bug with the provider. Or a feature not implemented yet.

Jeff.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Scott Carleton
Thanks.  Had started to suspect a bug within the core of VirtualBox

On Thursday, November 6, 2014 5:38:13 AM UTC-5, Jeff MacDonald wrote:
Just the fact that it won't work was the bug. Perhaps more like "a feature not yet implemented"

On Wed, Nov 5, 2014 at 5:14 PM, Scott Carleton <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="66UTtdCFk2cJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">carleto...@...> wrote:
Jeff,

What was the bug?  Having a very similar situation.


On Wednesday, October 1, 2014 4:04:26 PM UTC-4, Jeff MacDonald wrote:

The folks @vagrant got back to me. Its a bug with the provider. Or a feature not implemented yet.

Jeff.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe" target="_blank" onmousedown="this.href='https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe';return true;" onclick="this.href='https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe';return true;">https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="66UTtdCFk2cJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">vagrant-up+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="66UTtdCFk2cJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">je...@...

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

Jeff MacDonald
Oh, it works fine in virtualbox. It only happens with teh vmware fusion provider.

On Thu, Nov 6, 2014 at 1:21 PM, Scott Carleton <[hidden email]> wrote:
Thanks.  Had started to suspect a bug within the core of VirtualBox

On Thursday, November 6, 2014 5:38:13 AM UTC-5, Jeff MacDonald wrote:
Just the fact that it won't work was the bug. Perhaps more like "a feature not yet implemented"

On Wed, Nov 5, 2014 at 5:14 PM, Scott Carleton <[hidden email]> wrote:
Jeff,

What was the bug?  Having a very similar situation.


On Wednesday, October 1, 2014 4:04:26 PM UTC-4, Jeff MacDonald wrote:

The folks @vagrant got back to me. Its a bug with the provider. Or a feature not implemented yet.

Jeff.

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/1XZXcG4n_oc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
If my reply seems terse or short, it's nothing personal.
Jeff MacDonald
[hidden email]

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting Static IP on bridged network - Fusion/Centos

csmith
This post has NOT been accepted by the mailing list yet.
I am running Vagrant 1.6.5 with Virtualbox and having the same exact issue.