Routing
Antonis Kanavouras
ankan at med.auth.gr
Fri Oct 6 04:42:56 EEST 2000
OK, merikes fores pnigomai se mia koutalia nero alla...
Sto mikro diktyo pou sxediazw parakatw to linuxbox A filodoxei na
kanei firewalling se oti einai apo pisw molis ly8oun ta provlhmata tou
routing (to 123.2.12.x einai ... kapoiou allou)
|
|
| ppp 147.55.67.199
----------
| CISCO |
----------
| eth0 123.2.12.52
|
| eth0 123.2.12.50
----------
| |
| A |
| |
----------
| eth1 123.2.12.54
|
|
----------
| HUB |
----------
|
|
| eth0 123.2.12.51
------
| |
| |
| B |
-----
To B einai epishs linux.
========================
To routing table tou B:
GW netmask
123.2.12.51 * 255.255.255.255 eth0
123.2.12.54 * 255.255.255.255 eth0
default 123.2.12.54 0.0.0.0 eth0
==========================
To routing table tou A:
GW netmask
123.2.12.50 * 255.255.255.255 eth0
123.2.12.52 * 255.255.255.255 eth0
123.2.12.54 * 255.255.255.255 eth1
123.2.12.51 * 255.255.255.255 eth1
#-- Edw mesolavoun merika host targets
#-- me real IP's gia win boxes pou syndeontai sto HUB
default 123.2.12.52 0.0.0.0 eth0
==============================
A~# cat /proc/sys/net/ipv4/ip_forward
1
A~# ipchains -L
input Policy ACCEPT
forward Policy ACCEPT
output Policy ACCEPT
================================
To B kai ta ypoloipa mhxanakia pisw apo to A vlepoun to ena to allo,
vlepoun kai ta dyo interfaces toy A (ta win boxes exoun gateway
123.2.12.54). Den vlepoun omws tipote makrynotero, oyte to eth tou
Cisco. To A vlepei kai exw kai mesa. Apo exw fainetai mono to A.
An kai ta routing tables einai dwrikou ry8mou, mono me host targets ta
default routes einai swsta. Giati to A arneitai na perasei oti erxetai
apo exw sto 123.2.12.51 kai oti apo mesa sthn eth tou cisco enw kai oi
dyo ethernet tou einai orates kai apo mesa kai apo exw?
Eyxaristw
Antonis
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list