Linux box on multiple subnets
travis at scootz.net
travis at scootz.net
Thu Dec 23 11:28:01 EST 2004
Holy crap!
I clean, quick, easy to follow answer from Ben.. the world must be coming
to an end. :)
Thanks Ben, this is -EXACTLY- what I was looking for.
>> 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. |
>
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
More information about the gnhlug-discuss
mailing list