LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Virtual network address (https://www.linuxquestions.org/questions/linux-networking-3/virtual-network-address-187966/)

silver2003 05-31-2004 07:37 AM

Virtual network address
 
I have search and i didn't find nothing about how to use more public ip's whit just one network card. Because i have a server and i have 5 computers and 5 public ip's and i want my 5 computers to go into the internet with diffrent public ip.

Thank you for your time.

maxut 05-31-2004 11:17 AM

ifconfig eth0:0 y.y.y.y netmask x.x.x.x
ifconfig eth0:1 y.y.y.z netmask x.x.x.x
...

LuggerHouse 05-31-2004 01:39 PM

Re: Virtual network address
 
Quote:

Originally posted by silver2003
I have search and i didn't find nothing about how to use more public ip's whit just one network card. Because i have a server and i have 5 computers and 5 public ip's and i want my 5 computers to go into the internet with diffrent public ip.

Thank you for your time.

Sorry to be slow here...

Max gave you the right way to get more than on ip (private or/and public) but you description of what you want is not reealy clear... 5 computers, 5 public ips but you what them to go out on internet with different IPs from THE SAME GATEWAY... Right ?? So if that's right, you will have to manage hosts based routing ont the gateway to do that...

i.e.

route add -net 192.168.0.1 netmask 255.255.255.255 gw 64.14.1.1
route add -net 192.168.0.2 netmask 255.255.255.255 gw 64.14.1.3
route add -net 192.168.0.3 netmask 255.255.255.255 gw 64.14.1.2

or someting similar....


All times are GMT -5. The time now is 01:10 PM.