> I want to config two ip address in my machine which has only one
>network adaptor. One ip is used internally, the other is used externally,
>the machine acts as a gateway.
> How to config so?
>
If I understand you correctly, your internal network and external network
are on the same physical network. I think you want an IP Alias. This
allows you to have two interfaces (eth0 and eth0:0) for one network card,
and each interface can have a different IP address, subnet mask, etc. See
/usr/src/linux/Documentation/networking/alias.txt.
However, remember that the data for both networks will be on the same
wire and can be read by anyone attached to it (regardless of which network
they are 'supposed' to be in.) This might also annoy people on the outside
network as they will be losing their bandwidth to your internal network's
local traffic.
-Mike
[EMAIL PROTECTED]
"...the simple solution is to not do anything stupid as root." - Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]