Linux box on multiple subnets
Benjamin Scott
bscott at ntisys.com
Thu Dec 23 09:53:00 EST 2004
On Thu, 23 Dec 2004, at 7:35am, travis at scootz.net wrote:
> Can somebody help me out with the basics of setting up a Linux box to be
> on multiple subnets.
New way (iproute2):
ip addr add 192.168.10.5/24 broadcast 192.168.10.255 dev eth0
ip addr add 10.0.0.22/8 broadcast 10.255.255.255 dev eth0
Old way (interface aliases):
ifconfig eth0 192.168.10.5 netmask 255.255.255.0
ifconfig eth0:1 10.0.0.27 netmask 255.0.0.0
The new way is cleaner and more flexible, but may confuse people or
software used to the old "ifconfig" method (which assumes one IP address per
interface).
--
Ben Scott <bscott at ntisys.com>
| The opinions expressed in this message are those of the author and do |
| not represent the views or policy of any other person or organization. |
| All information is provided without warranty of any kind. |
More information about the gnhlug-discuss
mailing list