metrics & ifconfig

Tassos Mavroudeas amavroudeas at yahoo.co.uk
Sat Feb 21 17:41:12 EET 2004


Hmm, dev 8elw va mple3w me to default route!
Alla skeutika kati allo:
* Otan o user1 otav kavei login kai trexei 'wget' 'h kati avtistoixo 
tote to connection va ginete apo to to eth0/IP1
* Otav o user2 otav kavei download to connection va bgevei apo to eth0:1/IP2

Givetai auto?
Diladi va kavw map users<->available_IPs

Euxaristo kai pali,
Tassos


V13 wrote:
> On Saturday 21 February 2004 12:54, Tassos Mavroudeas wrote:
> 
>>Filtatoi,
>>   exw eva server me 2 IP addresses sthv idia ethernet:
>>	eth0 	10.10.10.1
>>	eth0:1 	10.10.11.2
>>
>>   Ola ta outgoing TCP/IP connections feugouv by default apo thv
>>eth0/10.10.10.1
>>
>>   Auto pou 8elw eivai: ava takta xrovika diastimata va alazw to default
>>interface kai ara ta ougoing va feugouv mia apo thv prwth IP kai meta
>>apo thv allh IP.
> 
> 
> Ayto poy thes den ginetai sto 100% ton periptoseon, alla isos na se kalypsei 
> mia apli alagi toy default route.
> 
> 
>>   Episeis dev 8elw va exw ka8olou downtime. Apla ava 'x' wres o cron na
>>trexei mia evtolh tou tupou:
>>ifconfig eth0:1 Metrics 2
> 
> 
> Mporeis na exeis default route, na prostheteis ena deytero kai sti synexeia na 
> afereis to proto. Kati tetoio tha exei epidrasi mono gia ta diktya poy den 
> einai directly connected. Episis den tha isxyei gia ola ta programmata poy 
> kanoyn bind se kapoia sygkekrimeni dieythynsi kai xrisimopoioyn ekeinh anti 
> gia to 0.0.0.0.
> 
> Ayto bebaia proypothetei oti prepei na exeis kai dyo gateway h ena me 2 IP.
> 
> 
>>Tassos
> 
> <<V13>>
> 




More information about the Linux-greek-users mailing list