Routing problems...

Giannis Tsotilis sadow at indigo.gr
Thu Aug 10 17:00:52 EEST 2000


Exw to e3hs to problhma:

Einai enas server pou prosferei uphresies virtual hosting. O server autos
einai sundedemenos sto diktuo me asurmath zeu3h ston provider. Praktika,
einai san na exoume sundesei ton server kateu8eian sto hub tou provider
(etsi mou exoun pei toulaxiston).
Ston server exoun apodw8ei 8 IPs, ta xxx.xxx.138.112 ews xxx.xxx.138.120.
To prwto kai to teleutaio IP den xrhsimopoiountai.
Sthn eth0 (karta diktuou 3Com) dhlwnw to IP: xxx.xxx.152.252, netmask
255.255.255.0 (auto to IP mas eipe o provider na xrhsimopoihsoume. San
default gateway, dhlwnw to xxx.xxx.152.65 (pou einai to gateway tou
provider).
Apo ekei kai meta, dhlwnw thn eth1 (epishs 3Com karta diktuou) to IP:
xxx.xxx.138.113 me netmask 255.255.255.248. Ta upoloipa IPs (114,115 klp)
ta dhlwnw panw sthn eth1 san eth1:0, eth1:1 klp.
Auto to configuration mas proteine o provider na xrhsimopoihsoume.

To problhma einai to e3hs. Meta apo 1 wra peripou leitourgias, o server
3afnika stamata na antapokrinetai se e3wterika paketa. Oute kan se ping
den apanta. An egw twra apo ton server kanw ena ping kapou ston e3w kosmo,
tote to link epanerxetai... An den ekana auto to ping, tote o server 8a
3anaenergopoiotan meta apo peripou 3 wres...

Poio pisteuete oti einai to problhma? Exei ginei kammia ru8mish sto
routing la8os? Mia proxeirh lush pou exw brei twra, einai na balw sto
crontab na kanei ping ka8e ena 1 lepto ston provider. Auto krataei ton
server up ep'apeiron. Akolou8ei to rc.inet1, opws to exw diamorfwsei twra:

/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
/sbin/ifconfig eth0 xxx.xxx.152.252 netmask 255.255.255.0
/sbin/ifconfig eth1 xxx.xxx.138.113 netmask 255.255.255.248
/sbin/route add default gw xxx.xxx.152.65
/sbin/ifconfig eth1:0 xxx.xxx.138.114 netmask 255.255.255.248
/sbin/route add -host xxx.xxx.138.114 dev eth1:0
/sbin/ifconfig eth1:1 xxx.xxx.138.115 netmask 255.255.255.248
/sbin/route add -host xxx.xxx.138.115 dev eth1:1
/sbin/ifconfig eth1:2 xxx.xxx.138.116 netmask 255.255.255.248
/sbin/route add -host xxx.xxx.138.116 dev eth1:2
/sbin/ifconfig eth1:3 xxx.xxx.138.117 netmask 255.255.255.248
/sbin/route add -host xxx.xxx.138.117 dev eth1:3
/sbin/ifconfig eth1:4 xxx.xxx.138.118 netmask 255.255.255.248
/sbin/route add -host xxx.xxx.138.118 dev eth1:4
/sbin/ifconfig eth1:5 xxx.xxx.138.119 netmask 255.255.255.248
/sbin/route add -host xxx.xxx.138.119 dev eth1:5

Me route -n pairnw ta e3hs:
plegma:/usr/home/sad# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
xxx.xxx.138.115 0.0.0.0         255.255.255.255 UH    0      0        0
eth1
xxx.xxx.138.114 0.0.0.0         255.255.255.255 UH    0      0        0
eth1
xxx.xxx.138.118 0.0.0.0         255.255.255.255 UH    0      0        0
eth1
xxx.xxx.138.117 0.0.0.0         255.255.255.255 UH    0      0        0
eth1
xxx.xxx.138.116 0.0.0.0         255.255.255.255 UH    0      0        0
eth1
xxx.xxx.138.112 0.0.0.0         255.255.255.248 U     0      0        0
eth1
xxx.xxx.152.0   0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         xxx.xxx.152.65  0.0.0.0         UG    0      0        0
eth0

To leitourgiko susthma einai Slackware 7.0 me purhna 2.2.16
O provider xrhsimopoiei Windows NT (an exei shmasia)

Ka8e boh8eia euprosdekth.


--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list