Routing ??

Moore moore at mail.gr
Fri Aug 24 15:43:01 EEST 2001


Loipon, exo ena ethernet interface kai to fortono me dio IPs apo
diaforetika classes esto eth0=10.10.10.10/255.255.255.0 kai
eth0:1=20.20.20.20/255.255.255.0. To kathe class exei to diko tou
gateway 10.10.10.1 kai 20.20.20.1 antistixa.

To problima pou exo einai oti dilonontas default route to 10.10.10.1
tote ola ta paketa feugoune meso tou 10.10.10.10 (sosta auto) kai
tatoxrona auto to IP apantaei kai se exoterika requests (pera tou dikou
tou class). Apo tin alli pleura to 20.20.20.20 mporei kai milaei me
direct routing sto diko tou class, lambanei exoterika requests ALLA
prospathei na ta apantisei meso tou 10.10.10.1.... to opoio bebaios den
ta routarei.

Auto pou thelo einai na parameinei to "default route "opos einai, diladi
ton exo kosmo thelo na ton blepo meso tou 10.10.10.1 ALLA me kapio tropo
na apantaei kai to 20.20.20.20 meso tou 20.20.20.1.

(apokliete i ensomatosi deufteris kartas diktiou sto mixanima, opos kai
alages ston router) 

Idou kai to routing table:
10.10.10.0   *               255.255.255.0   U     0      0        0
eth0
20.20.20.0   *               255.255.255.0   U     0      0        0
eth0
127.0.0.0    *               255.0.0.0       U     0      0        0 lo
default         10.10.10.1   0.0.0.0         UG    0      0        0
eth0

kai me ping:
ping -I 20.20.20.20 www.google.com
PING www.google.com (216.239.39.100) from 20.20.20.20 : 56(84) bytes of
data.


More information about the Linux-greek-users mailing list