probs med inet
k, jeg kører iptables til masq og nat\'ing af min adsl forb. jeg skal så køre CBQ ovenpå for at handle min traffik, config som følger:ifconfig eth0:
eth0 Link encap:Ethernet HWaddr 00:00:F8:20:A5:D5
inet addr:10.0.0.8 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:573352 errors:0 dropped:0 overruns:0 frame:0
TX packets:742397 errors:0 dropped:0 overruns:0 carrier:0
collisions:297 txqueuelen:100
RX bytes:45023417 (42.9 Mb) TX bytes:917958874 (875.4 Mb)
Interrupt:10 Base address:0xec80
det er ifacet der går direkte til min router.
eth1: eth1 Link encap:Ethernet HWaddr 00:00:B4:B6:4C:20
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:743721 errors:0 dropped:0 overruns:0 frame:0
TX packets:512604 errors:0 dropped:0 overruns:0 carrier:0
collisions:307 txqueuelen:100
RX bytes:918178456 (875.6 Mb) TX bytes:41464794 (39.5 Mb)
Interrupt:11 Base address:0xef40
dette iface er gateway for de andre clienter.
her er mine cbq filer:
[root@poseidon]/etc/shaper$ cat cbq-0100
DEVICE=eth1,10mbit,1mbit
LEAF=none
RATE=512Kbit
WEIGHT=512Kbit
PRIO=5
[root@poseidon]/etc/shaper$ cat cbq-0101
DEVICE=eth1
PARENT=0100
RATE=128Kbit
WEIGHT=128Kbit
PRIO=5
BOUNDED=yes
RULE=192.168.1.2,
ipconfig fra win2k maskinen:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
and shows that shaper starts ok:
[root@poseidon]/etc/shaper$ /etc/init.d/shaper start
Starting CBQ traffic shaping: shaper.
[root@poseidon]/etc/shaper$
maskinen PÅ 192.168.1.2 downloader stadig med 512 kbit
hvad er der lige galt her?
-spike