华为多交换机trunk.rip应用全网互通.以及搭建服务器

发布时间:2020-09-23 02:30:11 作者:会飞的云彩
来源:网络 阅读:1415

使用eNSP搭建实验环境

华为多交换机trunk.rip应用全网互通.以及搭建服务器


一.pc机192.168.10.254 网关192.168.10.254 以此为论推

二:sw7配置(端口加vlan )

[Huawei]vlan batch 10 20

[Huawei]int eth0/0/3

Huawei-Ethernet0/0/3]undo shutdown

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

 [Huawei-Ethernet0/0/3]port default valn 10

[Huawei]int eth 0/0/2

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

 [Huawei-Ethernet0/0/2]port default valn 20

[Huawei-Ethernet0/0/1]int eth 0/0/1

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

[Huawei-Ethernet0/0/1]port trunk allow-pass valn all

三:sw8配置

[sw8]vlan 10

[sw8]int eth0/0/2

 [sw8-Ethernet0/0/2]undo shutdown

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

 [sw8-Ethernet0/0/2]port default vlan 10

 [sw8]int eth0/0/1

 [sw8-Ethernet0/0/1]port link-type trunk

 [sw8-Ethernet0/0/1]port trunk   allow-pass vlan all

三:sw10配置

[sw10]vlan 40

[sw10-vlan40]int eth0/0/2

[sw10-Ethernet0/0/2]port   link-type a   

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

 [sw10-Ethernet0/0/2]port default vlan 40

 [sw10-Ethernet0/0/2]undo shutdown

Info: Interface Ethernet0/0/2 is   not shutdown.

[sw10-Ethernet0/0/2]q

[sw10]int eth0/0/3

[sw10-Ethernet0/0/3]undo shutdown

 [sw10-Ethernet0/0/3]port link-type access

 [sw10-Ethernet0/0/3]port default vlan 40

 [sw10-Ethernet0/0/4]undo shutdown

[sw10-Ethernet0/0/4]port link-type access

  [sw10-Ethernet0/0/4]port   default vlan 40

[sw10]int eth0/0/1

 [sw10-Ethernet0/0/1]port link-type trunk

 [sw10-Ethernet0/0/1]port trunk   allow-pass vlan all

 [sw10-Ethernet0/0/1]undo   shutdown

,sw9配置(sw9.10trunk)

 

[sw9]vlan batch 30 40 50

Info: This operation may take a   few seconds. Please wait for a moment...done.

[sw9]int vlan 30

 [sw9-Vlanif30]undo shutdown

Info: Interface Vlanif30 is not   shutdown.

[sw9-Vlanif30]ip add   192.168.30.254 24

[sw9-Vlanif30]q

[sw9]int vlan 50

[sw9-Vlanif50]ip add 192.168.50.2   24

 [sw9-Vlanif50]q

[sw9]int vlan 40

 [sw9-Vlanif40]undo shutdown

 [sw9-Vlanif40]ip add 192.168.40.254 24

[sw9-Vlanif40]q

[sw9]int g0/0/1

[sw9-GigabitEthernet0/0/1]undo shutdown

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

[sw9-port-group-trunk]port trunk allow-pass vlan all

[sw9-port-group-trunk]q

[sw9]int g0/0/2

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

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

 [sw9-GigabitEthernet0/0/2]undo   shutdown

 [sw9-GigabitEthernet0/0/2]q

[sw9]rip

[sw9-rip-1]version 2

[sw9-rip-1]network 192.168.30.0

[sw9-rip-1]network 192.168.40.0

[sw9-rip-1]network 192.168.50.0

五,Sw6配置(sw6.9、6.8、6.7trunk)

[sw6]vlan batch 10 20 30 50

[sw6-GigabitEthernet0/0/3]undo   shutdown

[sw6-GigabitEthernet0/0/3]port   link-type trunk

 [sw6-GigabitEthernet0/0/3]port trunk   allow-pass vlan all

[sw6-GigabitEthernet0/0/3]q

[sw6]int g0/0/4

 [sw6-GigabitEthernet0/0/4]port link-type   trunk

[sw6-GigabitEthernet0/0/4]port   trunk allow-pass vlan all

 [sw6-GigabitEthernet0/0/4]undo shutdown

 [sw6-GigabitEthernet0/0/4]q

[sw6]int vlan 10

[sw6-Vlanif10]ip add   192.168.10.254 24

 [sw6-Vlanif10]undo shutdown

 [sw6-Vlanif10]q

[sw6]int vlan 20

 [sw6-Vlanif20]und shutdown

Info: Interface Vlanif20 is not   shutdown.

[sw6-Vlanif20]ip add   192.168.20.254 24

[sw6-Vlanif20]q

 [sw6]int g0/0/5

[sw6-GigabitEthernet0/0/5]port   link-type access

[sw6-GigabitEthernet0/0/5]port link-type trunk

[sw6-GigabitEthernet0/0/5]port trunk allow-pass vlan all

[sw6-GigabitEthernet0/0/5]q

[sw6-GigabitEthernet0/0/5]undo shutdown

[sw6]int g0/0/1

[sw6-GigabitEthernet0/0/1]port   link-type access

 [sw6-GigabitEthernet0/0/1]port default vlan   30

 [sw6-GigabitEthernet0/0/1]undo shutdown

 [sw6-GigabitEthernet0/0/1]q

[sw6]int g0/0/2

 [sw6-GigabitEthernet0/0/2]undo shutdown

 [sw6-GigabitEthernet0/0/2]port link-type   access

[sw6-GigabitEthernet0/0/2]port   default vlan 30

 [sw6]int vlan 50

[sw6-Vlanif50]undo shutdown

[sw6-Vlanif50]ip add 192.168.50.1   255.255.255.0

[sw6]rip

[sw6-rip-1]ver 

[sw6-rip-1]version 2

[sw6-rip-1]network 192.168.10.0

[sw6-rip-1]network 192.168.20.0

[sw6-rip-1]network 192.168.30.0

[sw6-rip-1]network 192.168.50.0

六.全网互通

华为多交换机trunk.rip应用全网互通.以及搭建服务器

华为多交换机trunk.rip应用全网互通.以及搭建服务器

 

 

 

 

 


 

推荐阅读:
  1. 华为交换机如何ssh管理?
  2. OSPF、VLAN、RIP、单臂路由如何实现全网互通

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ensp 交换机 为多

上一篇:AIO on AIX 6.1 (文档 ID 1328019.1)

下一篇:Server-U 14版本的的安装使用方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》