[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 ip`s on one interface



Hi Consultoria!

> How do i put 2 ip`s on a singlenet board????

Use ip aliasing

ifconfig eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up
ifconfig eth0:0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255 up
ifconfig eth0:1 192.168.3.1 netmask 255.255.255.0 broadcast 192.168.3.255 up

etc.

-- 

Regards
 Abraham

Every absurdity has a champion who will defend it.

___________________________________________________
 Abraham vd Merwe [ZR1BBQ] - The Debian Project
 P.O. Box 3472, Matieland, Stellenbosch, 7602
 Cell: +27 82 565 4451 Email: abz@debian.org
 Http: http://people.debian.org/~abz/

Attachment: pgpjjo2o6f3ah.pgp
Description: PGP signature


Reply to: