On Tuesday 2012-04-03 23:32, richard lucassen wrote:
>
>> >Just a question:
>> >I have a NIC eth0 with address 10.0.0.1/24
>> >I want to add an ip address to that NIC. Both ways work:
>> >ip a a 10.0.0.2/32 dev eth0
>> >ip a a 10.0.0.2/24 dev eth0
>> >Is there anyhow some or other difference between the two? And is one
>> >of the two ways preferred?
>>
>> The difference lies in the route that is implicitly added.
>
>AFAIUI this is valid if it's another subnet, e.g.:
>
>ip a a 10.0.255.2/24 dev eth0
Anything is valid (save perhaps for 0.0.0.0/::) for addition.
Don't think up artificial limitations where there are none.
>But as long as the added ip is in the existing range of the NIC, then
>there is no difference between adding a 10.0.0.2/32 or a 10.0.0.2/24.
>
>Right or wrong? Or am I still missing something crucial?
>
>R.
>
>--
>___________________________________________________________________
>It is better to remain silent and be thought a fool, than to speak
>aloud and remove all doubt.
>
>+------------------------------------------------------------------+
>| Richard Lucassen, Utrecht |
>| Public key and email address: |
>| http://www.lucassen.org/mail-pubkey.html |
>+------------------------------------------------------------------+
>--
>To unsubscribe from this list: send the line "unsubscribe netfilter" in
>the body of a message to majordomo@xxxxxxxxxxxxxxx
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Netfilter Development]
[Linux Kernel Networking Development]
[Linux Networking Development]
[Linux Kernel Development]
[Linux Resources]
[LARTC]
[Bugtraq]
[Consulting]
[Free Internet Dating]
[Yosemite Forum]
[Photo]