On 14 Dec 2003 09:15:08 -0800, Dr. E <(E-Mail Removed)> wrote:
> Given the following values of a range of IPs, what's the proper way to
> bind the first few to etho using ifconfig? What value do I use for broadcast?
>
> The co-located server IP information is as follows:
> Base IP: 68.14.52.2
> IP Range: 68.14.52.2 - 68.14.52.126
> Subnet Mask: 255.255.240.0
> Gateway: 68.14.52.1
>
> What would be the proper way to write the following to bind the first few
> ip address to eth0? Do I have the right value for broadcast?
>
> ifconfig eth0:0 68.14.52.2 broadcast 68.14.52.255 netmask 255.255.240.0
> route add -host 68.14.52.2 dev eth0:0
> ifconfig eth0:1 68.14.52.3 broadcast 68.14.52.255 netmask 255.255.240.0
> route add -host 68.14.52.3 dev eth0:1
> ifconfig eth0:2 68.14.52.4 broadcast 68.14.52.255 netmask 255.255.240.0
> route add -host 68.14.52.4 dev eth0:2
Your 255.255.255.240 netmask would be network 68.14.48.0 broadcast
68.14.63.255 and any IPs between that.
Broadcast 68.14.52.255 would be for a netmask 255.255.255.0
Your listed IP range might be broadcast 68.14.52.127 netmask
255.255.255.127, but not if they are part of a larger network on eth0.
That is why your data does not compute. Broadcast and netmask should
match the local network on eth0, which is not clear from your data.
Depending upon what you are doing with these multiple IPs on the same
network, you may need to do some advanced routing (per Adv-Routing HOWTO).
--
David Efflandt - All spam ignored
http://www.de-srv.com/