核心交換機怎麼配置
核心交換機這個詞對於我們來說太過於陌生了,但是它在我們的網路生活中起到了非常必要的作用。小兔來簡單的做個比喻,我們可以將核心交換機比喻為一個大型的路由器,它可以將網路覆蓋到各個電腦,不過它的覆蓋範圍則是路由器的幾百倍甚至幾千倍。可以說沒有它的存在就沒有網路的傳播,我們便沒有網路的使用,這麼神奇的機器就由小編來講解它的配置。
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
聽完小編的介紹之後不知道大家明白沒有,核心交換機的配置固然是繁瑣的,但是它擔任的職責是非常重要的,它負責覆蓋一個鄉鎮甚至一個縣城的網路,如果核心交換機出現了故障那我們將無法正常上網,雖然我們大部分人是接觸不到核心交換機的,但是瞭解一下它的配置對於我們自身來說也是在增長知識。
關於歌頌祖國的詩文