> hello
>
> How to define three ip addresses with only
> one interface card ?
Hi,
To keep it sharp and easy, I will explain how to configure multiple ip addresses with "hme0" interface,
Vitual interface can be configured to enable hme0 reply to more then one ip addresses. This is possible by using hme0 alias which can be configured by ifconfig command only . The new alias device name now becomes hme0:1 hme:2 etc.
#ifconfig hme0:1 172.40.30.4 netmask 255.255.0.0 up
ifconfig -a will show the original hme0 and alias interface :
hme0: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.9.2.106 netmask ffffff00 broadcast 192.9.2.255
ether 3:22:11:6d:2e:1f
hme0:1: flags=842<BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.40.30.4 netmask ffff0000 broadcast 172.40.255.255
> Can i use these virtual ip addresses to define
> others LAN with only this interface card ?
>
> for instance : 2 LAN with 192.168.0.0 and
> 172.15.0.0 and so ....
> Incoming traffic from these LAN can cross these
> virtual ip addresses ?
As long as other things on the wire understand those addresses, yes.
--
Darren