At 04:52 PM 02/16/2000 -0600, Michael D. Kirkpatrick wrote:
>Timothy Litwiller wrote:
>
> > how do I put two ip addresses to the same network card -
> >
> > specifically I would like to use my public IP address 203.53.###.53 and
> > a private ip address 192.168.2.53 on the same card.
> >
> > also if this works then what do I need to do to make samba function
> only
> > on the private ip#
>
>I hate to break the news to you, but you can not have to different sub
>nets
>on the same card. The NIC itself will not support that. Install a second
>NIC (They are rather cheep) and place you private address on it. Check
>this
>out:
>
>Your NIC can access a large range of addresses on the same net, example:
>192.168.0.
>On that net, it can use any or all of these address: 192.168.0.1 -
>192.168.0.255
[deleted]
I have no idea where you got this idea from, but it is totally false. For
starters, the NIC has nothing to do with IP addresses or subnets. All it
deals with is a mac address. It is linux that does the mapping from IP to
MAC and back. Secondly, while it may not be the cleanest thing to do, it
is certainly allowed to have a NIC handle IP addresses in multiple
subnets. Routers do this all the time. Ex: 192.168.10.0 and 10.0.1.0 on
the same enet port. If a 192.168.10.0 host tries to (for example) ping a
10.0.1.0 host, the packet will go into the router and back out the same
enet port (this is called one-armed routing).