Vyliti IP routing cache

Jan Kasprzak kas na fi.muni.cz
Pátek Prosinec 10 15:11:34 CET 1999


Martin `MJ' Mares wrote:
: Zdravim,
: 
: > 	nevite nekdo, jakym zpusobem muzu vylit (flush) routing cache
: > v kernelu? To jest pokud si pres router pustim ping, a nasledne udelam
: > 
: > # ip rule add pref 1234 from 1.2.3.4 to 5.6.7.8 lookup main blackhole
: > 
: > tak ten ping z 1.2.3.4 na 5.6.7.8 porad bezi, protoze v routovaci cache je
: > stale pravidlo, ktere ten packet propousti.
: 
:    `echo 1 >/proc/sys/net/ipv4/route/flush' nepomuze?
: 
	Pomuze. Dokonce i "ip route flush cache" pomuze. Diky za napovedu.

-Yenya

-- 
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
/// I'd much prefer a sane architecture that doesn't continually try to  \\\
//  reinvent the bad idea of memory windows.   -Linus on Xeon 36-bit MM   \\


Další informace o konferenci Linux