小型网络构架

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了小型网络构架相关的知识,希望对你有一定的参考价值。

技术分享图片



配置命令



交换机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地址随意配置

以上是关于小型网络构架的主要内容,如果未能解决你的问题,请参考以下文章

中小企业网络构架环境搭建

软件定义网络基础---SDN的主流构架

SDN -- CR19000 是面向 SDN 构架设计

twisted是python实现的基于事件驱动的异步网络通信构架。

中型网络构架拓扑图解析

PCP构架设计