routerOS做wan口的交換器擴充和頻寬疊加

來源:互聯網
上載者:User

標籤:思科   路由   交換   軟路由   ros   

實驗裝置:

1台routeros5.24版路由器

1台思科2960交換器

2條100M電信頻寬:1條下行100M 上行8M,另一條下行100M上行4M

實驗目的:

疊加多條上網寬頻,以增大公司用網需求。本實驗中只有兩條寬頻,實際可能到達百條寬頻接入,這時再用網卡接入就不太現實了。故用交換器擴充來增加頻寬接入連接埠

實驗步驟:

一:先做wan口交換器擴充

1.在2960上做Vlan,並加入連接埠,每連接埠一個Vlan

En

Conf t

Vlan 2

Exit

Vlan 3

Exit

Inter f0/1

Sw mode trunk

exit

Inter f 0/2

Sw acc vlan 2

Exit

Inter f 0/3

Sw acc vlan 3

End

Write

並將ADSL1、ADSL2從貓分別接入交換器連接埠2、3(貓的撥號模式要為橋接模式),

Routeros的wan1口接到交換器的連接埠1,

 

2.在routeros上做Vlan連接埠,橋接連接埠,pppoe

添加VLAN

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/83/B8/wKiom1d7QLbhtXB5AAAf2uk4ktQ282.png" title="routeros做wan口交換器擴充和頻寬疊加463.png" style="float:none;" alt="wKiom1d7QLbhtXB5AAAf2uk4ktQ282.png" />


建立Vlan2和Vlan3(必須和交換器上設定的Vlan號對應)




650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/83/B7/wKioL1d7QLfBOE0MAAA1KBsDPVw409.png" title="routeros做wan口交換器擴充和頻寬疊加498.png" style="float:none;" alt="wKioL1d7QLfBOE0MAAA1KBsDPVw409.png" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/83/B8/wKiom1d7QLeBHr2TAAA0FhKgB8Q838.png" title="routeros做wan口交換器擴充和頻寬疊加500.png" style="float:none;" alt="wKiom1d7QLeBHr2TAAA0FhKgB8Q838.png" />

Vlan的對應連接埠都是wan1口

 

開啟橋接器視窗,添加橋接器

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/83/B7/wKioL1d7QLey7OVMAABE2TU65NU178.png" title="routeros做wan口交換器擴充和頻寬疊加532.png" style="float:none;" alt="wKioL1d7QLey7OVMAABE2TU65NU178.png" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/83/B8/wKiom1d7QLiTHR7HAAAya40hI-M207.png" title="routeros做wan口交換器擴充和頻寬疊加534.png" style="float:none;" alt="wKiom1d7QLiTHR7HAAAya40hI-M207.png" />

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/83/B7/wKioL1d7QLjjqHAEAAAzDIWOJiw055.png" title="routeros做wan口交換器擴充和頻寬疊加536.png" style="float:none;" alt="wKioL1d7QLjjqHAEAAAzDIWOJiw055.png" />




選擇橋接器視窗中的協議選項卡並增加橋接器和VLAN的對應連接埠

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M02/83/B8/wKiom1d7QLjxhdRHAABK0yzS4Z0186.png" title="routeros做wan口交換器擴充和頻寬疊加567.png" style="float:none;" alt="wKiom1d7QLjxhdRHAABK0yzS4Z0186.png" />

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/83/B7/wKioL1d7QLijmUqvAABKWJUrPkE560.png" title="routeros做wan口交換器擴充和頻寬疊加569.png" style="float:none;" alt="wKioL1d7QLijmUqvAABKWJUrPkE560.png" />

建好後就可以在介面中添加pppoe撥號了

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M00/83/B8/wKiom1d7QLjSV0qdAAA1VjhUudg197.png" title="routeros做wan口交換器擴充和頻寬疊加592.png" style="float:none;" alt="wKiom1d7QLjSV0qdAAA1VjhUudg197.png" />


ADSL1的撥號設定

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/83/B7/wKioL1d7QLnQnEkfAAA1u0TJ5wc713.png" title="routeros做wan口交換器擴充和頻寬疊加605.png" style="float:none;" alt="wKioL1d7QLnQnEkfAAA1u0TJ5wc713.png" />

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M01/83/B8/wKiom1d7QLmCturZAAA8t_WbpB8625.png" title="routeros做wan口交換器擴充和頻寬疊加607.png" style="float:none;" alt="wKiom1d7QLmCturZAAA8t_WbpB8625.png" />

ADSL2的撥號設定

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M01/83/B8/wKiom1d7QLmhLvDlAAAvvH4SaDs774.png" title="routeros做wan口交換器擴充和頻寬疊加620.png" style="float:none;" alt="wKiom1d7QLmhLvDlAAAvvH4SaDs774.png" />

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/83/B7/wKioL1d7QLqRZb50AAA17hdwmU8273.png" title="routeros做wan口交換器擴充和頻寬疊加622.png" style="float:none;" alt="wKioL1d7QLqRZb50AAA17hdwmU8273.png" />

防火牆設定NAT

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/83/B7/wKioL1d7QLqyiN_KAAA2RTkAV40556.png" title="routeros做wan口交換器擴充和頻寬疊加633.png" style="float:none;" alt="wKioL1d7QLqyiN_KAAA2RTkAV40556.png" />

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/83/B8/wKiom1d7QLqzdXhCAAAxj1mYhG4623.png" title="routeros做wan口交換器擴充和頻寬疊加635.png" style="float:none;" alt="wKiom1d7QLqzdXhCAAAxj1mYhG4623.png" />

至此routeros的wan口交換器擴充配置已經完成,連接埠匯聚還沒有做,雖然兩條線路已經撥通,但只有一條線路有資料

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M00/83/B7/wKioL1d7QLqz3JldAAAyvDUlGXc881.png" title="routeros做wan口交換器擴充和頻寬疊加696.png" style="float:none;" alt="wKioL1d7QLqz3JldAAAyvDUlGXc881.png" />


二,現在開始做頻寬疊加實驗,WAN口交換器擴充的疊加和多網卡的疊加設定方法是不同的。

winbox上直接設定有些地方不能正常選擇,直接上命令

1.設定多線疊加標記及PCC

/ip firewall mangle   

add action=change-mss chain=forward comment="" disabled=no new-mss=1400 protocol=tcp tcp-flags=syn   

:for i from=2 to=3 do= {/ip firewall mangle add action=mark-connection chain=input comment="" disabled=no\\   

 in-interface=("pppoe-out".$i) new-connection-mark=("pppoe-out".$i) passthrough=yes}   

:for i from=2 to=3 do= {/ip firewall mangle add action=mark-routing chain=output comment="" connection-mark=("pppoe-out".$i)\\   

 disabled=no new-routing-mark=("to_pppoe-out".$i) passthrough=yes}   

:for i from=2 to=3 do= {/ip firewall mangle add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local\\   

 new-connection-mark=("pppoe-out".$i) passthrough=yes per-connection-classifier=("both-addresses:2/".($i-1)) src-address=192.168.0.0/24}   

:for i from=2 to=3 do= {/ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=("pppoe-out".$i)\\   

 disabled=no new-routing-mark=("to_pppoe-out".$i) passthrough=yes src-address=192.168.0.0/24}  

 

2.添加路由

:for i from=2 to=3 do= {/ip route add comment=("ADSL".$i) disabled=no distance=1 dst-address=0.0.0.0/0\\ 

 gateway=("pppoe-out".$i) routing-mark=("to_pppoe-out".$i)}   

:for i from=2 to=3 do= {/ip route add check-gateway=ping comment=("ADSL".$i) disabled=no distance=10 dst-address=0.0.0.0/0\\   

 gateway=("pppoe-out".$i)}   

 

設定完畢,上面的代碼的代碼自己做時,自行修改

。現在看看我們的兩個撥號寬頻情況

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/83/B8/wKiom1d7QLugifiIAABM52_RnK8503.png" style="float:none;" title="routeros做wan口交換器擴充和頻寬疊加2167.png" alt="wKiom1d7QLugifiIAABM52_RnK8503.png" />


兩個寬頻都有資料了,再看看頻寬大小,因網卡最大速率是100M所有下行最大還是100M,就看上行頻寬是否為12M左右

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/83/B7/wKioL1d7QLvDbp7xAADg01Yc-sw208.png" title="routeros做wan口交換器擴充和頻寬疊加2227.png" style="float:none;" alt="wKioL1d7QLvDbp7xAADg01Yc-sw208.png" />


上行實際測試可達14M,說明寬頻疊加實驗成功。




本文出自 “星星之火” 部落格,請務必保留此出處http://ajun168.blog.51cto.com/9381567/1795898

routerOS做wan口的交換器擴充和頻寬疊加

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.