# Choosing ipaddress value in multi-NIC systems

**URL:** <https://discourse.chef.io/t/choosing-ipaddress-value-in-multi-nic-systems/1920>\
**Category:** Chef Infra (archive)\
**Created:** [June 15, 2011, 10:01pm UTC](https://discourse.chef.io/t/choosing-ipaddress-value-in-multi-nic-systems/1920 "2011-06-15T22:01:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonjwwilliams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jasonjwwilliams/32/101_2.png) [@jasonjwwilliams](https://discourse.chef.io/u/jasonjwwilliams)\
**Post date:** [June 15, 2011, 10:01pm UTC](https://discourse.chef.io/t/choosing-ipaddress-value-in-multi-nic-systems/1920/1 "2011-06-15T22:01:11Z")

</div>

Is there a way to force node[:ipaddress] to take a different value  
than the default? I have one system where it’s grabbing it off the  
last NIC instead of eth0.

-J

---

<div class="post-metadata">

**Author:** ![dennybaa](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/dennybaa/32/286_2.png) [@dennybaa](https://discourse.chef.io/u/dennybaa)\
**Post date:** [June 15, 2011, 10:12pm UTC](https://discourse.chef.io/t/choosing-ipaddress-value-in-multi-nic-systems/1920/2 "2011-06-15T22:12:05Z")

</div>

I don't why you get different value. But it might be somehow connected with  
node[:network][:default\_interface]. Find out what's where and perhaps you'll  
come to an understanding of this.  
As for me I prefer to work with particular vales got from  
node[:network][:interfaces] because I always know the proper interface...

2011/6/16 Jason J. W. Williams [jasonjwwilliams@gmail.com](mailto:jasonjwwilliams@gmail.com)

> Is there a way to force node[:ipaddress] to take a different value  
> than the default? I have one system where it's grabbing it off the  
> last NIC instead of eth0.
> 
> -J

---

<div class="post-metadata">

**Author:** ![jasonjwwilliams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jasonjwwilliams/32/101_2.png) [@jasonjwwilliams](https://discourse.chef.io/u/jasonjwwilliams)\
**Post date:** [June 15, 2011, 10:16pm UTC](https://discourse.chef.io/t/choosing-ipaddress-value-in-multi-nic-systems/1920/3 "2011-06-15T22:16:43Z")

</div>

I see why it's selecting that NIC now, it has the default route. Guess  
we'll need to come up with a different solution. Thank you for your  
help.

-J

On Wed, Jun 15, 2011 at 4:12 PM, Денис Барышев [denis.barishev@gmail.com](mailto:denis.barishev@gmail.com) wrote:

> I don't why you get different value. But it might be somehow connected with  
> node[:network][:default\_interface]. Find out what's where and perhaps you'll  
> come to an understanding of this.  
> As for me I prefer to work with particular vales got from  
> node[:network][:interfaces] because I always know the proper interface...
> 
> 2011/6/16 Jason J. W. Williams [jasonjwwilliams@gmail.com](mailto:jasonjwwilliams@gmail.com)
> 
> > Is there a way to force node[:ipaddress] to take a different value  
> > than the default? I have one system where it's grabbing it off the  
> > last NIC instead of eth0.
> > 
> > -J
