码迷,mamicode.com
首页 > 其他好文 > 详细

小型网络构架

时间:2018-01-21 17:37:38      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:inter   image   UI   oss   lan   cto   分享图片   技术   type   

技术分享图片



配置命令



交换机LSW1:

<Huawei>system-view
[Huawei]vlan batch 10 20 30
[Huawei]interface Ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/1]quit
[Huawei]interface Ethernet 0/0/2

[Huawei-Ethernet0/0/2]port link-type access

[Huawei-Ethernet0/0/2]port default vlan 20
[Huawei-Ethernet0/0/2]quit
[Huawei]interface Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port default vlan 30
[Huawei-Ethernet0/0/3]quit
[Huawei]interface Ethernet 0/0/4
[Huawei-Ethernet0/0/4]port link-type trunk
[Huawei-Ethernet0/0/4]port trunk allow-pass vlan all



交换机LSW2:


<Huawei>system-view
[Huawei]vlan batch 40 50
[Huawei]interface Ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 40

[Huawei-Ethernet0/0/1]quit

[Huawei]interface Ethernet 0/0/2
[Huawei-Ethernet0/0/2]port link-type access

[Huawei-Ethernet0/0/2]port default vlan 50
[Huawei-Ethernet0/0/2]quit

[Huawei]interface Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk

[Huawei-Ethernet0/0/3]port trunk allow-pass vlan all



交换机LSW3:


<Huawei>system-view
[Huawei]vlan batch 10 20 30 40 50 60

[Huawei]interface GigabitEthernet 0/0/1

[Huawei-GigabitEthernet0/0/1]port link-type trunk

[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[Huawei-GigabitEthernet0/0/1]quit

[Huawei]interface GigabitEthernet 0/0/2

[Huawei-GigabitEthernet0/0/2]port link-type trunk

[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[Huawei-GigabitEthernet0/0/2]quit

[Huawei]interface GigabitEthernet 0/0/3

[Huawei-GigabitEthernet0/0/3]port link-type access

[Huawei-GigabitEthernet0/0/3]port default vlan 60

[Huawei-GigabitEthernet0/0/3]quit

[Huawei]interface vlan 10

[Huawei-Vlanif10]ip address 192.168.10.254 24

[Huawei-Vlanif10]quit

[Huawei]interface vlan 20

[Huawei-Vlanif20]ip address 192.168.20.254 24

[Huawei-Vlanif20]quit

[Huawei]interface vlan 30

[Huawei-Vlanif30]ip address 192.168.30.254 24

[Huawei-Vlanif30]quit

[Huawei]interface vlan 40

[Huawei-Vlanif40]ip address 192.168.40.254 24

[Huawei-Vlanif40]quit

[Huawei]interface vlan 50

[Huawei-Vlanif50]ip address 192.168.50.254 24

[Huawei-Vlanif50]quit

[Huawei]interface vlan 60

[Huawei-Vlanif60]ip address 192.168.60.1 24

[Huawei-Vlanif60]quit

[Huawei]ip route-static 192.168.70.0 24 192.168.60.254




路由器R1:


<Huawei>system-view

[Huawei]interface Ethernet 0/0/0

[Huawei-Ethernet0/0/0]ip address 192.168.60.254 24

[Huawei-Ethernet0/0/0]quit

[Huawei]interface Ethernet 0/0/1

[Huawei-Ethernet0/0/1]ip address 192.168.70.254 24

[Huawei-Ethernet0/0/1]quit

[Huawei]ip route-static 0.0.0.0 0.0.0.0 192.168.60.1



PC机ip地址随意配置

小型网络构架

标签:inter   image   UI   oss   lan   cto   分享图片   技术   type   

原文地址:http://blog.51cto.com/13562306/2063377

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!