shaper doplneni...
Tomas Riha
tor na digisvet.cz
Úterý Březen 13 17:02:54 CET 2001
Dobry den, tady je jeste nastaveni...
problem:
mohu pingnout v naznacenem smeru pouze na rozhrani shaper1 a eth0
pocitace B. dal se nedostanu.
nevite nekdo co by mohlo byt spatne?
A jeste jeden dotaz, jsou nejake problemy shaper + maskarada?
schema:
| pocitac A | | pocitac B |
--->>|eth0....shaper1|----->>|eth0.......eth1|-------->>
| | | |
| 192.168.2.2| |192.168.2.1 |
postup:
/sbin/insmod -o shaper /lib/modules/2.2.15/net/shaper.o
/sbin/insmod -o shaper1 /lib/modules/2.2.15/net/shaper.o
/sbin/shapecfg attach shaper1 eth1
/sbin/shapecfg speed shaper1 32000
/sbin/ifconfig shaper1 192.168.2.2 netmask 255.255.255.0 up
/sbin/route add default gw 192.168.2.1 dev shaper1
route -n:
0.0.0.0 192.168.100.1 255.255.255.252 UG 0 0 0 eth1
0.0.0.0 192.168.100.1 255.255.255.252 UG 2 0 0 shaper1
172.16.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 shaper1
tomas
Další informace o konferenci Linux