Issue #1574 has been reported by ssm.
----------------------------------------
Bug #1574: ipaddress fact does not show all IP addresses when using "ip" to
configure networking
http://projects.reductivelabs.com/issues/show/1574
Author: ssm
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Keywords: ip
address
iproute
h1. Description
The "ipaddress" fact does not show all IP addresses on every interface when the
"ip" command from "iproute" is use to configure networking.
h1. Example output
Example output from "ip" shows several addresses on a network interface.
"ifconfig" will only show the first inet and the first inet6 address on the
interface.
h2. Output from "ip"
<pre>
$ ip address show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:1a:6b:6d:65:d7 brd ff:ff:ff:ff:ff:ff
inet 62.92.3.234/27 brd 62.92.3.255 scope global eth0
inet 192.0.2.1/24 brd 192.0.2.255 scope global eth0
inet 192.0.2.2/24 brd 192.0.2.255 scope global secondary eth0
inet6 fe80::21a:6bff:fe6d:65d7/64 scope link
valid_lft forever preferred_lft forever
</pre>
h2. Output from "ifconfig"
Even if "ip" is used to configure the network and routing, "ifconfig" will. if
installed, only display a subset of the information.
<pre>
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1a:6b:6d:65:d7
inet addr:62.92.3.234 Bcast:62.92.3.255 Mask:255.255.255.224
inet6 addr: fe80::21a:6bff:fe6d:65d7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9268 errors:0 dropped:0 overruns:0 frame:0
TX packets:8746 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5327086 (5.0 MB) TX bytes:1152726 (1.0 MB)
Base address:0x1820 Memory:fe000000-fe020000
</pre>
h2. Output from facter
<pre>
$ facter | grep ipaddress
ipaddress => 62.92.3.234
ipaddress_eth0 => 62.92.3.234
$ facter | grep netmask
netmask => 255.255.255.224
netmask_eth0 => 255.255.255.224
</pre>
h2. Information about the host
<pre>
$ facter | grep lsb
lsbdistcodename => hardy
lsbdistdescription => Ubuntu 8.04.1
lsbdistid => Ubuntu
lsbdistrelease => 8.04
</pre>
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---