Re: Aliases

From: David Ford (david@blue-labs.org)
Date: Sat Aug 18 2001 - 14:29:21 EST


Try before you buy.

# ip a a 192.168.0.0/24 brd + dev eth0
# ip r a 192.168.0.1/32 via 208.179.59.1 dev eth0

# ip r g 192.168.0.1
192.168.0.1 via 208.179.59.1 dev eth0 src 208.179.59.2
    cache mtu 1500 advmss 1460

# ip r g 192.168.0.2
192.168.0.2 dev eth0 src 192.168.0.0
    cache mtu 1500 advmss 1460

David

David Lang wrote:

>the problem with adding an entire netblock to an interface is that you
>frequently have a gateway on that netblock that belongs to another
>machine so you want to add 253 out of 256 addresses to your machine.
>
>how do you do that easily?
>
>example gateway is 192.168.1.1 and you want the rest of the 192.168.1.x
>network aliased on the machine.
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:28 EST