View previous topic :: View next topic |
Author |
Message |
Deepak420 Apprentice
Joined: 12 Jan 2005 Posts: 173 Location: Beantown
|
Posted: Thu Jun 16, 2005 10:56 pm Post subject: No eth0 node in /dev |
|
|
Well, I decided to use network shaping to keep my download from getting choked by my upload rate, got my script written up real nice - but ran into a snag. I don't seem to have an eth0 node. I'm using dhcp, and the funny thing is that I'm getting network i/o.
dmesg |grep -i eth
Code: | 8139too Fast Ethernet driver 0.9.27
eth0: RealTek RTL8139 at 0xd000, 00:e0:18:43:e5:df, IRQ 21
eth0: Identified 8139 chip type 'RTL-8100'
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
|
cat /proc/pci | grep -i eth
Code: | Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16) |
find /dev/ -iname '*eth*' returns nothing though, and after running my shaping script watch tc -s class show eth0 says something like "what is eth0". Anybody know what could be happening here? |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Jun 16, 2005 11:09 pm Post subject: |
|
|
eth0 is not a /dev node - so ?
It never is.
What happens when you run just tc ? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Deepak420 Apprentice
Joined: 12 Jan 2005 Posts: 173 Location: Beantown
|
Posted: Fri Jun 17, 2005 12:00 am Post subject: |
|
|
Here's my script:
Code: | tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 20
tc class add dev eth0 parent 1: classid 1:1 htb rate 340Kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 40Kbit ceil 340Kbit cburst 1752b prio 1
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 300Kbit ceil 340Kbit cburst 1675b prio 2
tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
tc filter add dev eth0 parent 1: protocol ip u32 match ip sport 80 0xffff flowid 1:10
tc filter add dev eth0 parent 1: protocol ip u32 match ip sport 6969 0xffff flowid 1:10 |
And here's the output of
watch tc -s class show eth0
Code: | What is "eth0"? Try "tc class help".
What is "eth0"? Try "tc class help".
What is "eth0"? Try "tc class help".
What is "eth0"? Try "tc class help".
... |
When this script runs, my traffic still gets queued on the modem even though I have a higher upload rate than my max rate and ceil. Most likely because it cannot resolve eth0. |
|
Back to top |
|
|
|