Iphone etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Iphone etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

19 Ekim 2010 Salı

iPhone + Linux tethering via USB cable!

trafic shaping

# Configure our ethernet devices

#

ifconfig eth0 192.168.1.1 netmask 255.255.255.0

broadcast 192.168.1.255 up

ifconfig eth1 192.168.2.1 netmask 255.255.255.0

broadcast 192.168.2.255 up



# Associate the shaper device with our eth1

# device and apply the rate limit

#

# You must do this before bringing the shaper

# device up.

#

shapecfg attach shaper0 eth1

# associate with eth0

shapecfg speed shaper0 5000000

# shape rate limit set to 5Mbps



# Configure our shaper device

#

# The shaper device will usually be configured

# with the same IP address as

# that of the associated physical device.

#

ifconfig shaper0 192.168.2.1 netmask 255.255.255.0 up



# Configure our routing such that traffic destined

# for the 192.168.3 network is shaped and all other

# traffic is unshaped.

#

route add default gw 192.168.2.2 dev eth1

route add 192.168.3.0 netmask 255.255.255.0

gw 192.168.2.2 dev shaper0