[lug] netmasks for interface aliases?

Scott Herod herod at dimensional.com
Mon Nov 29 15:27:48 MST 2004


Hello all,

It appears that I cannot have different netmasks for an interface and an 
alias of that interface.  Is that reasonable?

For example, the following works:

[root at my_machine root]# ip addr
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:01:11:11:11:11 brd ff:ff:ff:ff:ff:ff
    inet 1.2.3.4/24 brd 1.2.3.255 scope global eth0
    inet 1.2.3.5/24 brd 1.2.3.255 scope global secondary eth0:0


while this does not:

[root at my_machine root]# ip addr
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:01:11:11:11:11 brd ff:ff:ff:ff:ff:ff
    inet 1.2.3.4/24 brd 1.2.3.255 scope global eth0
    inet 1.2.3.5/16 brd 1.2.255.255 scope global secondary eth0:0

"Does not" in this case means that I cannot access the network either
going in or coming out.  BTW, if it matters I using ifconfig from
net-tools-1.60-7tummy to modify the network.

Thanks,

Scott




More information about the LUG mailing list