华为三层交换机如何实现不同Vlan不同网段之间的互通

实验目标:如图可以使PC1、PC2、PC3、PC4、PC5、server1、之间可以互相ping通

实验步骤:1.配置PC1/PC2/PC3/PC4/PC5的IP,子网掩码,网关如图:

2.配置Switch1如下:
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]vlan 10
[SW1-vlan10]vlan 20
[SW1-vlan20]vlan 30
[SW1-vlan30]q
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
[SW1-GigabitEthernet0/0/1]undo shut
[SW1-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[SW1-GigabitEthernet0/0/1]q
[SW1]interface g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20
[SW1-GigabitEthernet0/0/2]undo shut
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[SW1-GigabitEthernet0/0/2]q
[SW1]interface g0/0/3
[SW1-GigabitEthernet0/0/3]port link-type ac
[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 30
[SW1-GigabitEthernet0/0/3]undo shut
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[SW1]interface g0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/4]undo shutdown
Info: Interface GigabitEthernet0/0/4 is not shutdown.
3.配置Switch2如下:
<Huawei>undo terminal monitor
<Huawei>system-view
[Huawei]sysname SW2
[SW2]vlan 40
[SW2-vlan40]vlan 50
[SW2-vlan50]q
[SW2]interface g0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 40
[SW2-GigabitEthernet0/0/2]undo shutdown
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[SW2-GigabitEthernet0/0/2]q
[SW2]interface g0/0/3
[SW2-GigabitEthernet0/0/3]port link-type access
[SW2-GigabitEthernet0/0/3]port default vlan 50
[SW2-GigabitEthernet0/0/3]undo shutdown
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[SW2-GigabitEthernet0/0/3]q
[SW2]interface g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]undo shutdown
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
Info: Interface GigabitEthernet0/0/1 is not shutdown.
4.配置Switch3如下:
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>system-view
[Huawei]sysname SW3
[SW3]vlan 10
[SW3-vlan10]vlan 20
[SW3-vlan20]vlan 30
[SW3-vlan30]vlan 40
[SW3-vlan40]vlan 50
[SW3-vlan50]q
[SW3]interface vlan 10
[SW3-Vlanif10]ip address 10.0.0.254 255.0.0.0
[SW3-Vlanif10]undo shutdown
Info: Interface Vlanif10 is not shutdown.
[SW3-Vlanif10]q
[SW3]interface vlan 20
[SW3-Vlanif20]ip address 20.0.0.254 255.0.0.0
[SW3-Vlanif20]undo shutdown
Info: Interface Vlanif20 is not shutdown.
[SW3-Vlanif20]q
[SW3]interface vlan 30
[SW3-Vlanif30]ip address 30.0.0.254 255.0.0.0
[SW3-Vlanif30]undo shutdown
Info: Interface Vlanif30 is not shutdown.
[SW3-Vlanif30]q
[SW3]interface vlan 40
[SW3-Vlanif40]ip address 40.0.0.254 255.0.0.0
[SW3-Vlanif40]undo shutdown
Info: Interface Vlanif40 is not shutdown.
[SW3-Vlanif40]q
[SW3]interface vlan 50
[SW3-Vlanif50]ip address 50.0.0.254 255.0.0.0
[SW3-Vlanif50]undo shutdown
Info: Interface Vlanif50 is not shutdown.
[SW3-Vlanif50]q
[SW3]interface g0/0/1
[SW3-GigabitEthernet0/0/1]port link-type trunk
[SW3-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW3-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[SW3-GigabitEthernet0/0/1]q
[SW3]interface g0/0/2
[SW3-GigabitEthernet0/0/2]port link-type trunk
[SW3-GigabitEthernet0/0/2]undo shutdown
[SW3-GigabitEthernet0/0/2]port link-type trunk
[SW3-GigabitEthernet0/0/2]port trunk allow-pass vlan all
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[SW3]vlan 60
[SW3-vlan60]q
[SW3]interface g0/0/3
[SW3-GigabitEthernet0/0/3]port link-type access
[SW3-GigabitEthernet0/0/3]port default vlan 60
[SW3-GigabitEthernet0/0/3]undo shutdown
[SW3]interface vlan 60
[SW3-Vlanif60]ip address 60.0.0.1 255.0.0.0
5.配置R1如下
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1-GigabitEthernet0/0/0]ip address 60.0.0.2 255.0.0.0
[R1-GigabitEthernet0/0/0]undo shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]q
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 70.0.0.254 255.0.0.0
[R1-GigabitEthernet0/0/1]undo shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
6.配置server1如图:

7.在R1配置默认路由:

8.在SW3上配置静态路由:

结果验证如图:

原文地址:http://blog.51cto.com/13568842/2059661

时间: 2024-10-03 04:00:15

华为三层交换机如何实现不同Vlan不同网段之间的互通的相关文章

华为模拟器如何实现不同Vlan不同网段之间的互通

如图可以使PC1.PC2.PC3.PC4.PC5.server1.之间可以互相ping通:实验步骤:1.配置PC1/PC2/PC3/PC4/PC5的IP,子网掩码,网关如图:2.配置Switch1如下:<Huawei>undo terminal monitor Info: Current terminal monitor is off.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei

华为三层交换机的配置!求指教

华为三层交换机的配置 先来看拓扑图 下来看看配置过程 SW2配置 <Huawei>sys [Huawei]vlan batch 10 20 30    创建vlan [Huawei]sysname SW2 [SW2]interface GigabitEthernet 0/0/1 [SW2-GigabitEthernet0/0/1]port link-type access      此端口加入VLAN [SW2-GigabitEthernet0/0/1]port default vlan 10

华为--单臂路由实现vlan通信

二层交换机配置:[s1]vlan batch 2 3Info: This operation may take a few seconds. Please wait for a moment...done.[s1]int e0/0/2[s1-Ethernet0/0/2]port link-type acc[s1-Ethernet0/0/2]port default vlan 2[s1-Ethernet0/0/2]q[s1]int e0/0/3[s1-Ethernet0/0/3]port link

华为三层交换机模拟互通(所有端口都是access端口)

目的:两个三层交换机下挂不同的vlan进行互通,所有端口都是access端口 配置完成后10.86.3.50可以ping通所在设备的任意联网ip LSW4配置: <Huawei>display current-configuration # sysname Huawei # vlan batch 2 to 4 # cluster enable ntdp enable ndp enable # drop illegal-mac alarm # diffserv domain default #

华为三层交换机基础配置

华为三层交换机工作原理:一次交换,多次转发作用:实现vlan间的数据互通ensp拓扑图如下: SW2 <Huawei>sys [Huawei]sysname SW2 [SW2]vlan batch 10 20 [SW2]int e0/0/2 [SW2-Ethernet0/0/2]port link-type access [SW2-Ethernet0/0/2]port default vlan 10 [SW2-Ethernet0/0/2]un sh [SW2-Ethernet0/0/2]int

使用WANem模拟不同网段之间的广域网环境

使用WANem模拟不同网段之间的广域网环境 网上找到的案例都是如下图所示,Developers2 与Development Server 位于同一网段的例子,不符合我现有测试需求,因为只有一台笔记本模拟广域网环境,并且该笔记本只有一块网卡无法使用**等要求双网卡的软件.所以决定对WANem的例子进行改造以符合我现有测试需求. 测试环境为Developers 2为194.128.32.0/24网段,DevelopmentServer为192.10.214.0/24网段. 具体相关基础配置可参见ht

华为三层交换机实现不同vlan,不同网段的互通

实验任务: 1. 不同vlan,不同网段实现互通: 2. 路由AR11用默认路由配置: 3. LSW8实现三层交换机功能: 如下华为拓扑图: 配置思路:1.将LSW8看成一个路由器,LSW8下面连接(LSW7和LSW6)的设备都看一个pc,这样就成两个路由互联,下面各接一个pc这样只需让左边的PC7和右边的PC8互通即可搞定:如下图: 2.LSW8是三层交换机,先不看192.168.6.0网段和192.168.7.0网段:只搞定vlan2到vlan6,如 3. 验证和测试vlan2到vlan6互

华为 三层交换机VLAN间路由配置详解

实验拓扑 实验需求 1.C1与C3属于VLAN10,C2与C4属于VLAN20,在SW1上创建VLAN100做上行VLAN 2.在SW1上终结所有VLAN 3.在所有VLAN成员使用DHCP获取IP 4.全网互通 IP规划 VLAN10 :192.168.10.0/24 VLAN20 :192.168.20.0/24 VLAN100:192.168.100.10/24 R1 G0/0/0:192.168.100.1/24 SW1配置: <SW1>system-view            

华为三层交换机实现vlan间路由

交换机:带三层模块如s3700,s5700的交换机等 [s1]vlan batch 2 5[s1]interface vlanif 1[s1-Vlanif1]ip add 192.168.1.1 24[s1-Vlanif1]q[s1]int Vlanif 2[s1-Vlanif2]ip add 192.168.2.1 24[s1-Vlanif2]q[s1]int vlanif 5[s1-Vlanif5]ip add 192.168.5.1 24[s1-Vlanif5][s1-Vlanif5]q[