On Tue, Jan 12, 2010 at 11:47 PM, Bharathi Subramanian <
[email protected]> wrote:

> Bharathi Subramanian said:
> > It is not like direct assignment of IP. Some other trick and is
> > related to multicast. Let me try to recollect that.
>
> No. You can do this using the following command:
> # ip address add dev eth0 192.168.10.1/24 broadcast +
> # ip address add dev eth0 192.168.20.1/24 broadcast +
>
> Show the associated IPs (ifconfig won't show this):
> $ ip address show eth0
>
> IPs are locally reachable. Please test the reachability of this
> IP(s) from an another machine and share the result.
>

I'd like to know use cases where one needs an address without the secondary
prefix on the device.

wlan0: <BROADCAST,MULTICAST,UP,LOWER_
UP> mtu 1300 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:13:02:ac:65:90 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.3/24 brd 192.168.1.255 scope global wlan0
    inet 192.168.1.124/24 brd 192.168.1.255 scope global secondary wlan0

On the broadcast IP being reachable from outside, I'd reckon it would be
reachable as ip ad sh shows its scope as global. The address terms it as
secondary and broadcast is still all-ones bitwise OR. ifconfig does not show
this.

Seems to me that ifconfig does not show this address as it does not have a
label. Not sure though.

-- Mohan Sundaram
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to