From: Anton Gorlov <stalker@altlinux.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] tc Date: Wed, 22 Aug 2007 09:41:33 +0400 Message-ID: <46CBCC8D.6000001@altlinux.ru> (raw) In-Reply-To: <20070822110038.36676dba.zver@altlinux.org> Denis Klimov пишет: > Если я правильно понял и ip клиентов 10.10.65.xx, внутреняя сеть > 10.10.165.xx то применяя htb можно сделать так: Не..внутренняя сеть имеет реальные IP-адресса.. а клиенты и реальные и серые. Для чего чесно говоря они сейчас натятся из 1 серого ипишника в другой и потмо ещё раз натятся на циске я чесно говоря не совсем понимаю..всё было украдено до нас.. > tc qdisc add dev eth0 root handle 1: htb; > # Задаем общую скорость > tc class add dev eth0 parent 1: classid 1:1 htb rate 100M; > > #Даем 128К из внутренней сети, нужно повторить для каждого клиента, > #увеличивая classid 1:x в первой строке и соответственно flowid 1:х во второй. IP клиента в данном примере 10.10.65.123 > tc class add dev eth0 parent 1:1 classid 1:1 htb rate 128kbit; > tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 10.10.65.123 match ip src 10.10.165.0/24 flowid 1:1; Ммм..а если клиентов от 1К и более? писать тысячу правил представляется не совсем масштабируемым решением имхо.
next prev parent reply other threads:[~2007-08-22 5:41 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-08-21 20:28 Anton Gorlov 2007-08-22 5:00 ` Denis Klimov 2007-08-22 5:41 ` Anton Gorlov [this message] 2007-08-23 6:11 ` Anton Gorlov 2007-08-23 6:55 ` Dmytro O. Redchuk 2007-08-23 8:46 ` Dmytro O. Redchuk
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=46CBCC8D.6000001@altlinux.ru \ --to=stalker@altlinux.ru \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git