[LARTC] How to set a host with public IP within a private network?
panca sorin
psihozefir at yahoo.com
Tue Aug 2 19:38:37 CEST 2005
Hello! I have the following setup:
1) a connection to my ISP with a public IP (1.2.3.4)
with the gateway 1.2.3.1
2) an allocated IP class with 64 addresses
(5.6.7.192/26)
3) two LANs connected through two NICs:
a) 192.168.0.0/24 on eth1 (192.168.0.1)
b) 10.0.0.0/24 on eth2 (10.0.0.1)
The IPs from the allocated class are all assigned to
eth0.
The networks are SNATed to the external IP and to all
IPs in the allocated class in a round-robin fashion.
(-j SNAT --to 1.2.3.4 lowest_IP_in_class
highest_IP_in_class)
My question is:
Is it possible to assign one IP from my allocated
class to an internal machine without changing eth1 or
eth2 IPs *OR* without adding a subclass of my
allocated class to eth1 or eth2 in order to give an ip
to an internal networked machine?
What command should i give if that setup is possible?
Desired Network Diagram:
----------
/---|Internet|
| ----------
|eth0 192.168.0.1 10.0.0.1
| ---------- eth1 eth2
\--| Linux |--------------v--------------------v
| Router | | |
---------- | |
| |
------------- | ---------- |
|192.168.0.2|--------< |10.0.0.2|----<
------------- | ---------- |
. | . |
. | . |
. | . |
--------------- | ------------ |
|192.168.0.254|-------< |10.0.0.254|--<
--------------- | ------------
|
|
----------- |
|5.6.7.201|-----------<
-----------
I would de-assign some of the addresses from eth0 to
re-assign them to locally connected computers...
Thank you in advance for your help!
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the LARTC
mailing list