自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

路由DHCP設置經典實例

網絡 網絡管理
在DHCP以及路由設置中,是比較復雜的。這里我們就來看一個小型辦公網絡,有兩家公司(A、B)在一個寫字樓辦公,共申請一條4M獨享VDSL專線(其中A是繳3M的專線費用,B是繳1M的專線費用),共60臺電腦左右,各30臺電腦,各三臺非網管24口D-LINK交換機,一臺華為1821路由器(1wan口,4lan口)。

在DHCP以及路由設置中,是比較復雜的。這里我們就來看一個小型辦公網絡,有兩家公司(A、B)在一個寫字樓辦公,共申請一條4M獨享VDSL專線(其中A是繳3M的專線費用,B是繳1M的專線費用),共60臺電腦左右,各30臺電腦,各三臺非網管24口D-LINK交換機,一臺華為1821路由器(1wan口,4lan口)。

用戶特殊需求:

(1)、A、B不能互訪。

(2)、A、B都通過華為路由器DHCP獲取地址。

(3)、A、B帶寬必須劃分開,A享受3M帶寬,B享受1M帶寬(原來的時候B公司網絡流量過大經常影響到A公司網絡辦公)。

簡單解決方案:

根據現有網絡條件,實際上僅通過華為1821路由器可以實現以上功能,具體實施如下:

(1)、在華為路由器1821內部網關口(eth1/0)劃分子接口(eth1/0.1、eth1/0.2),分別配置兩個網關(192.168.0.1、192.168.0.2),并分別進行封裝與vlan2、vlan3相對應。

(2)、在華為路由器1821兩個lan口(eth1/1、eth1/2)劃分兩個vlan(vlan2、vlan3)。

(3)、分別在兩個不同的邏輯子接口(eth1/0.1、eth1/0.2)配置nat并應用。

(4)、分別在兩個不同的邏輯子接口(eth1/0.1、eth1/0.2)配置dhcp,在同一物理接口針對兩個vlan網絡應用dhcp來分配兩個不同的網段。

(5)、由于該路由器lan口為二層端口,無法實現qos car限速,只能考慮在其唯一的內部網關接口(eth1/0)的子接口上實現qos car限速達到帶寬限制的作用。

(6)、配置wan口地址(X、X、X、X),配置static route地址,大功告成。

(7)、配置用戶登錄(super、console、vty等)用戶名及密碼(這里僅配置密碼模式)。

(8)、測試并觀察端口信息、負載信息等,隨時調整相應策略,由于考慮到其設備處理能力及時間緊迫,并未增加太多策略(如ACL等)和功能。

華為1821路由器具體配置如下:

  1. #  
  2. sysname Quidway  
  3.  
  4. #  
  5. clock timezone gmt-12:000 minus 12:00:00  
  6.  
  7. #  
  8. cpu-usage cycle 1min  
  9.  
  10. #  
  11. connection-limit disable  
  12. connection-limit default action deny  
  13. connection-limit default amount upper-limit 50 lower-limit 20  
  14.  
  15. #  
  16. web set-package force flash:/http.zip  
  17.  
  18. #  
  19. radius scheme system  
  20.  
  21. #  
  22. domain system  
  23.  
  24. #  
  25. local-user *******  
  26. password cipher .]@*********  
  27. service-type telnet terminal  
  28.  
  29. level 3  
  30. service-type ftp  
  31.  
  32. #  
  33. acl number 2000    \\ 配置nat Acl  
  34. rule 0 permit source 192.168.0.0 0.0.0.255  
  35.  
  36. #  
  37. acl number 3000    \\ 配置nat Acl  
  38. rule 0 permit ip source 192.168.1.0 0.0.0.255  
  39.  
  40. acl number 3001    \\配置 Firewall Acl  
  41. rule 0 deny ip destination 192.168.1.0 0.0.0.255  
  42.  
  43. acl number 3002   \\配置 Firewall Acl  
  44. rule 0 deny ip destination 192.168.0.0 0.0.0.255  
  45.  
  46. #  
  47. interface Ethernet1/0  
  48. ip address dhcp-alloc  
  49.  
  50. #  
  51. interface Ethernet1/0.1  
  52. ip address 192.168.0.1 255.255.255.0  
  53.  
  54. dhcp select interface   \\ dhcp 應用于子接口  
  55.  
  56. dhcp server dns-list 202.106.0.20 202.106.196.115  
  57.  
  58. firewall packet-filter 3001 inbound   \\ firewall ACL過濾應用于接口  
  59.  
  60. vlan-type dot1q vid 2    \\子接口封裝dot1q  
  61.  
  62. qos car inbound any cir 3072000 cbs 153600 ebs 1000 green pass red discard  
  63. \\流量限速qos car 配置  
  64.  
  65. qos car outbound any cir 3072000 cbs 153600 ebs 1000 green pass red discard  
  66. \\流量限速qos car 配置  
  67.  
  68. #  
  69. interface Ethernet1/0.2  
  70. ip address 192.168.1.1 255.255.255.0  
  71.  
  72. dhcp select interface       \\ dhcp 應用于子接口  
  73.  
  74. dhcp server dns-list 202.106.0.20 202.106.196.115  
  75.  
  76. firewall packet-filter 3002 inbound     \\ firewall ACL過濾應用于接口  
  77.  
  78. vlan-type dot1q vid 3     \\子接口封裝dot1q  
  79.  
  80. qos car inbound any cir 1024000 cbs 51200 ebs 1000 green pass red discard  
  81. \\流量限速qos car 配置  
  82.  
  83. qos car outbound any cir 1024000 cbs 51200 ebs 1000 green pass red discard  
  84. \\流量限速qos car 配置  
  85.  
  86. #  
  87. interface Ethernet1/1  
  88. port access vlan 2       \\將e1/1端口加入vlan2  
  89.  
  90. #  
  91. interface Ethernet1/2  
  92.  
  93. port access vlan 3                                    \\將e1/1端口加入vlan2  
  94.  
  95. #  
  96. interface Ethernet1/3  
  97.  
  98. #  
  99. interface Ethernet1/4  
  100.  
  101. #  
  102. interface Ethernet2/0     \\進入wan口配置  
  103.  
  104. ip address X、X、X、X 255.255.255.224  
  105. nat outbound 3000  
  106. nat outbound 2000  
  107.  
  108. #  
  109. interface NULL0  
  110.  
  111. #  
  112. FTP server enable  
  113.  
  114. #  
  115. ip route-static 0.0.0.0 0.0.0.0  y、y、y、y  preference 60  
  116.  
  117. #  
  118. user-interface con 0                                     \\用戶登錄配置  
  119.  
  120. authentication-mode password  
  121. set authentication password cipher 0HB8%-MB%I^[Q1R','&6NQ!!  
  122. user-interface vty 0 4  
  123. user privilege level 3  
  124. set authentication password cipher 0HB8%-MB%I^[Q1R','&6NQ!!  
  125. #  
  126. return  
  127. [Quidway] 

 

責任編輯:佟健 來源: 網絡整理
相關推薦

2010-09-06 13:50:01

PPPOEDHCP

2010-09-29 14:30:54

路由DHCP設置

2010-09-29 16:00:22

思科路由DHCP設置

2010-08-23 17:02:12

DHCP路由

2010-09-29 14:30:54

Cisco路由DHCP

2010-09-27 10:14:13

路由器DHCP功能

2010-01-28 15:58:50

路由交換設備

2009-12-04 17:05:18

Routeros軟路由

2009-12-16 10:22:52

2011-08-16 10:50:35

DHCP路由器配置

2009-11-19 15:01:58

2009-12-21 16:52:52

靜態(tài)路由設置

2010-08-23 17:07:40

DHCP服務器

2010-08-26 15:44:26

DHCP路由器

2009-11-10 11:01:15

無線路由器設置

2011-04-02 10:26:04

2010-09-26 14:42:58

路由器DHCP設置

2010-08-23 10:54:12

DHCP備份Linux DHCP

2009-12-23 13:42:22

無線路由安全功能

2010-08-26 15:36:30

DHCP路由
點贊
收藏

51CTO技術棧公眾號