Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No eth0 node in /dev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Deepak420
Apprentice
Apprentice


Joined: 12 Jan 2005
Posts: 173
Location: Beantown

PostPosted: Thu Jun 16, 2005 10:56 pm    Post subject: No eth0 node in /dev Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Jun 16, 2005 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Deepak420
Apprentice
Apprentice


Joined: 12 Jan 2005
Posts: 173
Location: Beantown

PostPosted: Fri Jun 17, 2005 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum