資源描述:
《ROS軟路由超詳細(xì)的PCC設(shè)置步驟,實(shí)現(xiàn)一線多撥,五條寬帶疊加》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫(kù)。
1、PCC實(shí)驗(yàn)一、基本配置,使網(wǎng)絡(luò)能夠正常連通1.pppoe撥號(hào):撥通五個(gè)帳號(hào)PPPOEclient的連接狀態(tài),已連接設(shè)備NAT:5個(gè)接口出去都做NAT創(chuàng)建一個(gè)bridge,把其他局域網(wǎng)口添加到bridge中。添加其他局域網(wǎng)口到bridge中DHCP服務(wù)器設(shè)置(局域網(wǎng)自動(dòng)獲取IP地址)局域網(wǎng)的網(wǎng)段為192.168.10.0/24把192.168.10.254作為內(nèi)網(wǎng)的網(wǎng)關(guān)設(shè)置網(wǎng)關(guān)的地址,接口添加到bridge1上一般我們用DHCPsetup來(lái)自動(dòng)設(shè)置DHCPserver這種設(shè)置比較簡(jiǎn)單快速路由配置:所有的基本配置都設(shè)置好了,局域
2、網(wǎng)可以正常上網(wǎng)了,但是為了實(shí)現(xiàn)更好的網(wǎng)絡(luò)環(huán)境,我們需要做更好的策略。這就需要使用PCC了,下面就看看PCC怎么做的吧。二、PCC的配置Mangle標(biāo)記標(biāo)記內(nèi)網(wǎng)地址為192.168.10.0的五條線路的連接標(biāo)記標(biāo)記第一條連接:同理:配置剩余的4調(diào)鏈路:5/1,c2;5/2.c3;5/3,c4;5/4,c5.從連接中提取路由標(biāo)記:從連接里提取路由標(biāo)記標(biāo)記第一條連接c1,命令為R1同理:提出其他4調(diào)路由命名為R2,R3,R4,R5.標(biāo)記連接,的命名配置方式為:[admin@MikroTik]/ipfirewallmangle>pr
3、intFlags:X-disabled,I-invalid,D-dynamic0chain=preroutingaction=mark-connectionnew-connection-mark=c1passthrough=yessrc-address=192.168.10.0/24dst-address-type=!localper-connection-classifier=both-addresses:5/01chain=preroutingaction=mark-connectionnew-connection-ma
4、rk=c2passthrough=yessrc-address=192.168.10.0/24dst-address-type=!localper-connection-classifier=both-addresses:5/12chain=preroutingaction=mark-connectionnew-connection-mark=c3passthrough=yessrc-address=192.168.10.0/24dst-address-type=!localper-connection-classifier
5、=both-addresses:5/23chain=preroutingaction=mark-connectionnew-connection-mark=c4passthrough=yessrc-address=192.168.10.0/24dst-address-type=!localper-connection-classifier=both-addresses:5/34chain=preroutingaction=mark-connectionnew-connection-mark=c5passthrough=yes
6、src-address=192.168.10.0/24dst-address-type=!localper-connection-classifier=both-addresses:5/4提取路由的命令5chain=preroutingaction=mark-routingnew-routing-mark=R1passthrough=yessrc-address=192.168.10.0/24connection-mark=c16chain=preroutingaction=mark-routingnew-routing-m
7、ark=R2passthrough=yessrc-address=192.168.10.0/24connection-mark=c27chain=preroutingaction=mark-routingnew-routing-mark=R3passthrough=yessrc-address=192.168.10.0/24connection-mark=c38chain=preroutingaction=mark-routingnew-routing-mark=R4passthrough=yessrc-address=19
8、2.168.10.0/24connection-mark=c49chain=preroutingaction=mark-routingnew-routing-mark=R5passthrough=yessrc-address=192.168.10.0/24connection-mark=c