学习啦>学习电脑>网络知识>网络基础知识>

核心交换机怎么配置

时间: 孙胜龙652 分享

  核心交换机这个词对于我们来说太过于陌生了,但是它在我们的网络生活中起到了非常必要的作用。小兔来简单的做个比喻,我们可以将核心交换机比喻为一个大型的路由器,它可以将网络覆盖到各个电脑,不过它的覆盖范围则是路由器的几百倍甚至几千倍。可以说没有它的存在就没有网络的传播,我们便没有网络的使用,这么神奇的机器就由学习啦小编来讲解它的配置。

学习啦在线学习网   System-view 一、激活combo端口,启用DHCP interface GigabitEthernet0/0/5 undo shutdown interface GigabitEthernet0/0/6 undo shutdown interface GigabitEthernet0/0/7 undo shutdown interface GigabitEthernet0/0/8 undo shutdown dhcp enable

学习啦在线学习网   二、建立vlan Vlan1防火墙用(端口27-28) Vlan20服务器用(端口15-26) Vlan2-9保持不变(端口5-12) Vlan10-11原Vlan1计算机使用(端口13-14)

  Vlan 1 interface Vlan-interface1 ip address 10.0.1.1 255.255.255.0 dhcp select server global-pool

  Vlan 2 interface Vlan-interface2 ip address 10.0.2.1 255.255.255.0 dhcp select server global-pool

  Vlan 3 interface Vlan-interface3 ip address 10.0.3.1 255.255.255.0 dhcp select server global-pool

  Vlan 4 interface Vlan-interface4 ip address 10.0.4.1 255.255.255.0 dhcp select server global-pool

  Vlan 5 interface Vlan-interface5 ip address 10.0.5.1 255.255.255.0 dhcp select server global-pool

学习啦在线学习网   Vlan 6 interface Vlan-interface6 ip address 10.0.6.1 255.255.255.0 dhcp select server global-pool

  Vlan 7 interface Vlan-interface7 ip address 10.0.7.1 255.255.255.0 dhcp select server global-pool

  Vlan 8 interface Vlan-interface8 ip address 10.0.8.1 255.255.255.0 dhcp select server global-pool

学习啦在线学习网   Vlan 9 interface Vlan-interface9 ip address 10.0.9.1 255.255.255.0 dhcp select server global-pool

学习啦在线学习网   Vlan 10 interface Vlan-interface10 ip address 10.0.10.1 255.255.255.0 dhcp select server global-pool

  Vlan 11 interface Vlan-interface11 ip address 10.0.11.1 255.255.255.0 dhcp select server global-pool

学习啦在线学习网   Vlan 20 interface Vlan-interface20 ip address 10.0.0.1 255.255.255.0 dhcp select server global-pool

学习啦在线学习网   三、设定端口所在

学习啦在线学习网   vlan interface GigabitEthernet0/0/5 port access vlan 2 interface GigabitEthernet0/0/6 port access

学习啦在线学习网   vlan 3 interface GigabitEthernet0/0/7 port access

  vlan 4 interface GigabitEthernet0/0/8 port access

学习啦在线学习网   vlan 5 interface GigabitEthernet0/0/9 port access

学习啦在线学习网   vlan 6 interface GigabitEthernet0/0/10 port access

  vlan7 interface GigabitEthernet0/0/11 port access

  vlan 8 interface GigabitEthernet0/0/12 port access

学习啦在线学习网   vlan 9 interface GigabitEthernet0/0/13 port access

  vlan 10 interface GigabitEthernet0/0/14 port access

学习啦在线学习网   vlan 11 interface GigabitEthernet0/0/15 port access

  vlan 20 interface GigabitEthernet0/0/16 port access

学习啦在线学习网   vlan 20 interface GigabitEthernet0/0/17 port access

  vlan 20 interface GigabitEthernet0/0/18 port access

学习啦在线学习网   vlan 20 interface GigabitEthernet0/0/19 port access

学习啦在线学习网   vlan 20 interface GigabitEthernet0/0/20 port access

  vlan 20 interface GigabitEthernet0/0/21 port access

  vlan 20 interface GigabitEthernet0/0/22 port access

  vlan 20 interface GigabitEthernet0/0/23 port access

  vlan 20 interface GigabitEthernet0/0/24 port access

学习啦在线学习网   vlan 20 interface GigabitEthernet0/0/25 port access

学习啦在线学习网   vlan 20 interface GigabitEthernet0/0/26 port access

  vlan 20 interface GigabitEthernet0/0/27 port access

学习啦在线学习网   vlan 1 interface GigabitEthernet0/0/28 port access

  四、定义地址池

  dhcp server ip-pool vlan1 network 10.0.1.0 mask 255.255.255.0

学习啦在线学习网   gateway-list 10.0.1.1

  dns-list 10.0.0.16 domain-name

  dfic.net dhcp server ip-pool

  vlan2 network 10.0.2.0

  mask 255.255.255.0

  gateway-list 10.0.2.1

学习啦在线学习网   dns-list 10.0.0.16

  domain-name dfic.net

学习啦在线学习网   dhcp server ip-pool

  vlan3 network 10.0.3.0

  mask 255.255.255.0

  gateway-list 10.0.3.1

  五、设置路由

学习啦在线学习网   Undo ip route-static 0.0.0.0 0.0.0.0 10.0.1.1

  preference 60 dhcp server forbidden-ip 10.0.0.1

  dhcp server forbidden-ip 10.0.1.1

  dhcp server forbidden-ip 10.0.1.250 10.0.1.254

学习啦在线学习网   dhcp server forbidden-ip 10.0.2.1

  dhcp server forbidden-ip 10.0.3.1

  dhcp server forbidden-ip 10.0.4.1

学习啦在线学习网   dhcp server forbidden-ip 10.0.5.1

学习啦在线学习网   dhcp server forbidden-ip 10.0.7.1

学习啦在线学习网   dhcp server forbidden-ip 10.0.8.1

  dhcp server forbidden-ip 10.0.9.1

  dhcp server forbidden-ip 10.0.10.1

  dhcp server forbidden-ip 10.0.11.1

学习啦在线学习网   听完学习啦小编的介绍之后不知道大家明白没有,核心交换机的配置固然是繁琐的,但是它担任的职责是非常重要的,它负责覆盖一个乡镇甚至一个县城的网络,如果核心交换机出现了故障那我们将无法正常上网,虽然我们大部分人是接触不到核心交换机的,但是了解一下它的配置对于我们自身来说也是在增长知识。

286783