Networking Forums

Networking Forums > Computer Networking > Linux Networking > Network interface bandwidth setting

Reply
Thread Tools Display Modes

Network interface bandwidth setting

 
 
Ben B
Guest
Posts: n/a

 
      12-29-2003, 04:15 PM
Does anyone know how to change the network interface setting in Linux?
<---------100Mbps------------>
PC1 <------->Switched Hub<------->PC2

For instance, I would like to change the link (PC1 to PC2) from 100Mbps
downto 1Mbps.

Thanks,
Ben B


 
Reply With Quote
 
 
 
 
Yves Cognet
Guest
Posts: n/a

 
      12-31-2003, 09:13 AM
change tcp buffer size on both machine and this will lower the bandwidth
(bandwith=RTT*buffer_size)
"Ben B" <(E-Mail Removed)> a écrit dans le message de
news:bspnfs$kld$(E-Mail Removed)...
> Does anyone know how to change the network interface setting in Linux?
> <---------100Mbps------------>
> PC1 <------->Switched Hub<------->PC2
>
> For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> downto 1Mbps.
>
> Thanks,
> Ben B
>
>



 
Reply With Quote
 
Ben B
Guest
Posts: n/a

 
      12-31-2003, 10:35 AM
I got it working with this:
tc qdisc add dev eth0 root tbf rate 1Mbit buffer 200kB limit 100kB

Cheers,
Ben B

"Yves Cognet" <(E-Mail Removed)> wrote in message
news:bsu7e9$vjr$(E-Mail Removed)...
> change tcp buffer size on both machine and this will lower the bandwidth
> (bandwith=RTT*buffer_size)
> "Ben B" <(E-Mail Removed)> a écrit dans le message de
> news:bspnfs$kld$(E-Mail Removed)...
> > Does anyone know how to change the network interface setting in Linux?
> > <---------100Mbps------------>
> > PC1 <------->Switched Hub<------->PC2
> >
> > For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> > downto 1Mbps.
> >
> > Thanks,
> > Ben B
> >
> >

>
>



 
Reply With Quote
 
Jeroen Geilman
Guest
Posts: n/a

 
      01-02-2004, 08:59 AM
Ben B wrote:
> Does anyone know how to change the network interface setting in Linux?
> <---------100Mbps------------>
> PC1 <------->Switched Hub<------->PC2
>
> For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> downto 1Mbps.


You can't.
Fast Ethernet has two link speeds, normal (10mbit) and fast (100mbit).

You can easily force the segment to run on 10mbit by forcing one
interface to 10mbit and setting the other to auto (default), but to slow
it down any more you'll have to apply bandwidth throttling.

No, I'm not contradicting myself - your question was "I want to change
the *link* speed" - which you can't.

Limiting the bandwidth is certainly possible, see Ben's reply.

I'm none too sure about the advisability of lowering the tcp buffer
size, since this may well have adverse side-effects.
 
Reply With Quote
 
Kerry Cox
Guest
Posts: n/a

 
      01-02-2004, 05:25 PM
Why not simply use "mii-tool"?
# /sbin/mii-tool eth0 -F 10baseTx-HD
If he wants to set it for full duplex, then change the HD to FD.
Likewise, "ethtool" will do the same for more recent versions.
Hope that helps.
KJ


Jeroen Geilman <(E-Mail Removed)> wrote in message news:<3ff4dee3$0$325$(E-Mail Removed)>...
> Ben B wrote:
> > Does anyone know how to change the network interface setting in Linux?
> > <---------100Mbps------------>
> > PC1 <------->Switched Hub<------->PC2
> >
> > For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> > downto 1Mbps.

>
> You can't.
> Fast Ethernet has two link speeds, normal (10mbit) and fast (100mbit).
>
> You can easily force the segment to run on 10mbit by forcing one
> interface to 10mbit and setting the other to auto (default), but to slow
> it down any more you'll have to apply bandwidth throttling.
>
> No, I'm not contradicting myself - your question was "I want to change
> the *link* speed" - which you can't.
>
> Limiting the bandwidth is certainly possible, see Ben's reply.
>
> I'm none too sure about the advisability of lowering the tcp buffer
> size, since this may well have adverse side-effects.

 
Reply With Quote
 
Ben B
Guest
Posts: n/a

 
      01-05-2004, 01:12 PM
This is excatly what I was looking for!!!

Cheers,
Ben B

"Kerry Cox" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Why not simply use "mii-tool"?
> # /sbin/mii-tool eth0 -F 10baseTx-HD
> If he wants to set it for full duplex, then change the HD to FD.
> Likewise, "ethtool" will do the same for more recent versions.
> Hope that helps.
> KJ
>
>
> Jeroen Geilman <(E-Mail Removed)> wrote in message

news:<3ff4dee3$0$325$(E-Mail Removed)>...
> > Ben B wrote:
> > > Does anyone know how to change the network interface setting in Linux?
> > > <---------100Mbps------------>
> > > PC1 <------->Switched Hub<------->PC2
> > >
> > > For instance, I would like to change the link (PC1 to PC2) from

100Mbps
> > > downto 1Mbps.

> >
> > You can't.
> > Fast Ethernet has two link speeds, normal (10mbit) and fast (100mbit).
> >
> > You can easily force the segment to run on 10mbit by forcing one
> > interface to 10mbit and setting the other to auto (default), but to slow
> > it down any more you'll have to apply bandwidth throttling.
> >
> > No, I'm not contradicting myself - your question was "I want to change
> > the *link* speed" - which you can't.
> >
> > Limiting the bandwidth is certainly possible, see Ben's reply.
> >
> > I'm none too sure about the advisability of lowering the tcp buffer
> > size, since this may well have adverse side-effects.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting/setting eth frame interface for raw socket boltar2003@yahoo.co.uk Linux Networking 1 09-30-2009 11:54 AM
setting up lax security on one ethernet interface while leaving theother strict dan Linux Networking 8 09-30-2008 12:30 AM
Setting DNS for an interface ? Polaris Windows Networking 4 10-11-2005 10:53 AM
Suse 8.2: Setting up an ethernet-interface without an ip-address xantos Linux Networking 3 10-29-2003 01:48 PM
Bandwidth capping on interface Nick Linux Networking 2 08-17-2003 09:30 PM



1 2 3 4 5 6 7 8 9 10 11