eNSP网络构建—企业部门ip地址划分规划
企業部門IP劃分拓撲:
注:使用S5700交換機及S3700交換機。
各PC機IP地址及網關參照下方拓撲圖綠色背景文字。
項目地址規劃:
按照題目要求設置各部門的IP地址,將各個端口分配到不同vlan10 20 30 40 50 100并按照拓撲連接。
假設一臺主機對應一個部門,根據每個部門人數不同劃分子網,將地址信息(ip地址,子網掩碼,網關地址)配置到對應的PC上。
研發部(100人):IP地址 10.0.8.1-10.0.8.100子網掩碼255.255.240.0 網關10.0.8.254
技術部(100人):IP地址10.0.32.1-10.0.32.100 子網掩碼255.255.240.0網關 10.0.32.254
綜合部(50人):IP地址 10.0.80.1-10.0.80.50子網掩碼255.255.240.0網關 10.0.80.254
銷售部(100人):IP地址 10.0.16.1-10.0.16.100子網掩碼255.255.240.0 網關 10.0.16.254
財務部(50人):IP地址 10.0.64.1-10.0.64.50 子網掩碼255.255.240.0 網關 10.0.64.254
遠程(1人): IP地址 10.0.240.11 子網掩碼 255.255.240.0 網關 10.0.240.254
需求:
1、創建Vlan
在SW1、SW2、LSW6、LSW7中創建Vlan10、20、30,LSW5創建Vlan2、10、20、30。
在SW3、SW4、LSW9、LSW10中創建Vlan 40、50、100,LSW8創建Vlan2、40、50、100。
2、劃分部門Vlan
研發部的接口劃分配置為Vlan10,
銷售部的接口劃分配置為Vlan20,
技術部的接口劃分配置為Vlan30,
財務部的接口劃分配置為Vlan40,
綜合部的接口劃分配置為Vlan50,
遠程的接口劃分配置為Vlan100 。
3、 配置trunk端口
4、 配置鏈路聚合
5、 配置生成樹協議
將LSW5、LSW8設置為根橋
6、 靜態路由( LSW5、 LSW8之間)
7、 配置網關
8、測試連通性
1.LSW5配置:
[SW5]vlan batch 2 10 20 30 //創建Vlan [SW5]interface Vlanif 10 [SW5-Vlanif10]IP address 10.0.8.254 20 //設置Vlan IP及子網掩碼 [SW5-Vlanif10]quit [SW5] [SW5]interface Vlanif 20 [SW5-Vlanif20]ip address 10.0.16.254 20 [SW5-Vlanif20]quit [SW5] [SW5]interface Vlanif 30 [SW5-Vlanif30]ip address 10.0.32.254 20 [SW5-Vlanif30]quit [SW5] [SW5]interface Vlanif 2 [SW5-Vlanif2]ip address 172.16.1.1 20 [SW5-Vlanif2]quit [SW5] [SW5]interface GigabitEthernet 0/0/4 [SW5-GigabitEthernet0/0/4]port link-type trunk [SW5-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 10 20 30 [SW5-GigabitEthernet0/0/4]quit [SW5] [SW5]interface GigabitEthernet 0/0/3 [SW5-GigabitEthernet0/0/3]port link-type trunk [SW5-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 30 [SW5-GigabitEthernet0/0/3]quit [SW5] [SW5]interface Eth-Trunk 0 //創建并進入聚合組Eth-Ttrunk0 [SW5-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 //增加聚合組成員接口 [SW5-Eth-Trunk0]trunkport GigabitEthernet 0/0/2 [SW5-Eth-Trunk0]port link-type trunk [SW5-Eth-Trunk0]port trunk allow-pass vlan 10 20 30 [SW5-Eth-Trunk0]quit [SW5] [SW5]stp region-configuration //進入MST域視圖 [SW5-mst-region]region-name RG1 //配置MST域的域名 [SW5-mst-region]instance 1 vlan 2 //配置實例與VLAN映射關系 [SW5-mst-region]active region-configuration //激活MST域的配置 [SW5-mst-reaion]quit [SW5]stp instance 1 root primary //配置當前設備為根橋設備。 [SW5]stp pathcost-standard legacy //配置端口路徑開銷計算方法。 [SW5]stp enable //開啟STP2.LSW6交換機配置:
<SW6>sys Enter system view, return user view with Ctrl+Z. [SW6]vlan batch 10 20 30 [SW6]interface GigabitEthernet 0/0/1 [SW6-GigabitEthernet0/0/1]port link-type trunk [SW6-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 30 [SW6-GigabitEthernet0/0/1]quit [SW6] [SW6]interface GigabitEthernet 0/0/2 [SW6-GigabitEthernet0/0/2]port link-type trunk [SW6-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 30 [SW6-GigabitEthernet0/0/2]quit [SW6] [SW]6interface Eth-Trunk 0 [SW6-Eth-Trunk0]mode lacp-static [SW6-Eth-Trunk0]trunkport GigabitEthernet 0/0/24 [SW6-Eth-Trunk0]trunkport GigabitEthernet 0/0/23 [SW6-Eth-Trunk0]port link-type trunk [SW6-Eth-Trunk0]port trunk allow-pass vlan 10 20 30 [SW6-Eth-Trunk0]quit [SW6]3.LSW7交換機配置:
[SW7]vlan batch 10 20 30 [SW7]interface GigabitEthernet 0/0/1 [SW7-GigabitEthernet0/0/1]port link-type trunk [SW7-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 30 [SW7-GigabitEthernet0/0/1]quit [SW7] [SW7]interface GigabitEthernet 0/0/2 [SW7-GigabitEthernet0/0/2]port link-type trunk [SW7-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 30 [SW7-GigabitEthernet0/0/2]quit [SW7] [SW7]interface GigabitEthernet 0/0/24 [SW7-GigabitEthernet0/0/24]port link-type trunk [SW7-GigabitEthernet0/0/24]port trunk allow-pass vlan 10 20 30 [SW7-GigabitEthernet0/0/24]quit [SW7]4.SW1交換機配置:
<SW1>sys Enter system view, return user view with Ctrl+Z. [SW1]vlan batch 10 20 30 [SW1]interface GigabitEthernet 0/0/2 [SW1-GigabitEthernet0/0/2]port link-type trunk [SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 30 [SW1-GigabitEthernet0/0/2]quit [SW1] [SW1]interface Ethernet0/0/1 [SW1-Ethernet0/0/1]port link-type access [SW1-Ethernet0/0/1]port default vlan 10 [SW1-Ethernet0/0/1]quit [SW1] [SW1]interface Ethernet0/0/2 [SW1-Ethernet0/0/2]port link-type access [SW1-Ethernet0/0/2]port default vlan 20 [SW1-Ethernet0/0/2]quit [SW1] [SW1]interface Ethernet0/0/3 [SW1-Ethernet0/0/3]port link-type access [SW1-Ethernet0/0/3]port default vlan 30 [SW1-Ethernet0/0/3]quit [SW1]5.SW2交換機配置:
同SW1交換機配置一樣
6.LSW8交換機配置
[SW8]vlan batch 2 40 50 100 [SW8]interface Vlanif 40 [SW8-Vlanif40]ip address 10.0.64.254 20 [SW8-Vlanif40]quit [SW8] [SW8]interface Vlanif 50 [SW8-Vlanif50]ip address 10.0.80.254 20 [SW8-Vlanif50]quit [SW8] [SW8]interface Vlanif 100 [SW8-Vlanif100]ip address 10.0.240.254 20 [SW8-Vlanif100]quit [SW8] [SW8]interface Vlanif 2 [SW8-Vlanif2]ip address 172.16.1.2 20 [SW8-Vlanif2]quit [SW8] [SW8]interface GigabitEthernet 0/0/4 [SW8-GigabitEthernet0/0/4]port link-type trunk [SW8-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 40 50 100 [SW8-GigabitEthernet0/0/4]quit [SW8] [SW8]interface GigabitEthernet 0/0/1 [SW8-GigabitEthernet0/0/1]port link-type trunk [SW8-GigabitEthernet0/0/1]port trunk allow-pass vlan 40 50 100 [SW8-GigabitEthernet0/0/1]quit [SW8] [SW8]interface Eth-Trunk 0 [SW8-Eth-Trunk0]trunkport GigabitEthernet 0/0/3 [SW8-Eth-Trunk0]trunkport GigabitEthernet 0/0/2 [SW8-Eth-Trunk0]port link-type trunk [SW8-Eth-Trunk0]port trunk allow-pass vlan 40 50 100 [SW8-Eth-Trunk0]quit [SW8]stp region-configuration //進入MST域視圖 [SW8-mst-region]region-name RG1 //配置MST域的域名 [SW8-mst-region]instance 1 vlan 2 //配置實例與VLAN映射關系 [SW8-mst-region]active region-configuration //激活MST域的配置 [SW8-mst-reaion]quit [SW8]stp instance 1 root primary //配置當前設備為根橋設備。 [SW8]stp pathcost-standard legacy //配置端口路徑開銷計算方法。 [SW8]stp enable7.LSW10交換機配置:
<SW10>sys Enter system view, return user view with Ctrl+Z. [SW10]vlan batch 40 50 100 [SW10]interface GigabitEthernet 0/0/1 [SW10-GigabitEthernet0/0/1]port link-type trunk [SW10-GigabitEthernet0/0/1]port trunk allow-pass vlan 40 50 100 [SW10-GigabitEthernet0/0/1]quit [SW10] [SW10]interface Eth-Trunk 0 [SW10-Eth-Trunk0]mode lacp-static [SW10-Eth-Trunk0]trunkport GigabitEthernet 0/0/23 [SW10-Eth-Trunk0]trunkport GigabitEthernet 0/0/24 [SW10-Eth-Trunk0]port link-type trunk [SW10-Eth-Trunk0]port trunk allow-pass vlan 40 50 100 [SW10-Eth-Trunk0]quit [SW10]8.LSW9交換機配置:
<SW9>sys Enter system view, return user view with Ctrl+Z. [SW9]vlan batch 40 50 100 [SW9]interface GigabitEthernet 0/0/1 [SW9-GigabitEthernet0/0/1]port link-type trunk [SW9-GigabitEthernet0/0/1]port trunk allow-pass vlan 40 50 100 [SW9-GigabitEthernet0/0/1]quit [SW9] [SW9]interface GigabitEthernet 0/0/24 [SW9-GigabitEthernet0/0/24]port link-type trunk [SW9-GigabitEthernet0/0/24]port trunk allow-pass vlan 40 50 100 [SW9-GigabitEthernet0/0/24]quit [SW9]9.SW3交換機配置:
<SW3>sys Enter system view, return user view with Ctrl+Z. [SW3]vlan batch 40 50 100 [SW3]interface GigabitEthernet 0/0/2 [SW3-GigabitEthernet0/0/2]port link-type trunk [SW3-GigabitEthernet0/0/2]port trunk allow-pass vlan 40 50 100 [SW3-GigabitEthernet0/0/2]quit [SW3] [SW3]interface Ethernet0/0/1 [SW3-Ethernet0/0/1]port link-type access [SW3-Ethernet0/0/1]port default vlan 40 [SW3-Ethernet0/0/1]quit [SW3] [SW3]interface Ethernet0/0/2 [SW3-Ethernet0/0/2]port link-type access [SW3-Ethernet0/0/2]port default vlan 50 [SW3-Ethernet0/0/2]quit [SW3]10.SW4交換機配置:
<SW4>sys Enter system view, return user view with Ctrl+Z. [SW4]vlan batch 40 50 100 [SW4]interface GigabitEthernet 0/0/2 [SW4-GigabitEthernet0/0/2]port link-type trunk [SW4-GigabitEthernet0/0/2]port trunk allow-pass vlan 40 50 100 [SW4-GigabitEthernet0/0/2]quit [SW4] [SW4]interface Ethernet0/0/1 [SW4-Ethernet0/0/1]port link-type access [SW4-Ethernet0/0/1]port default vlan 40 [SW4-Ethernet0/0/1]quit [SW4] [SW4]interface Ethernet0/0/2 [SW4-Ethernet0/0/2]port link-type access [SW4-Ethernet0/0/2]port default vlan 50 [SW4-Ethernet0/0/2]quit [SW4] [SW4]interface Ethernet0/0/3 [SW4-Ethernet0/0/3]port link-type access [SW4-Ethernet0/0/3]port default vlan 100 [SW4-Ethernet0/0/3]quit [SW4]11.測試連通性
(1)PC1[研發部] Ping PC2及PC6
(2)PC1[研發部] Ping PC7及PC11
(3)PC11[遠程] Ping PC8、PC5及PC3。
總結
以上是生活随笔為你收集整理的eNSP网络构建—企业部门ip地址划分规划的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 记录钱德拉望远镜天文软件ciao的一些简
- 下一篇: UG NX 12 沿引导线扫掠