lkml.org 
[lkml]   [2001]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Aliases
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/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:4.463 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site