核心交換機(jī)怎么配置
核心交換機(jī)這個(gè)詞對于我們來說太過于陌生了,但是它在我們的網(wǎng)絡(luò)生活中起到了非常必要的作用。小兔來簡單的做個(gè)比喻,我們可以將核心交換機(jī)比喻為一個(gè)大型的路由器,它可以將網(wǎng)絡(luò)覆蓋到各個(gè)電腦,不過它的覆蓋范圍則是路由器的幾百倍甚至幾千倍??梢哉f沒有它的存在就沒有網(wǎng)絡(luò)的傳播,我們便沒有網(wǎng)絡(luò)的使用,這么神奇的機(jī)器就由學(xué)習(xí)啦小編來講解它的配置。
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服務(wù)器用(端口15-26) Vlan2-9保持不變(端口5-12) Vlan10-11原Vlan1計(jì)算機(jī)使用(端口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
三、設(shè)定端口所在
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
五、設(shè)置路由
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
聽完學(xué)習(xí)啦小編的介紹之后不知道大家明白沒有,核心交換機(jī)的配置固然是繁瑣的,但是它擔(dān)任的職責(zé)是非常重要的,它負(fù)責(zé)覆蓋一個(gè)鄉(xiāng)鎮(zhèn)甚至一個(gè)縣城的網(wǎng)絡(luò),如果核心交換機(jī)出現(xiàn)了故障那我們將無法正常上網(wǎng),雖然我們大部分人是接觸不到核心交換機(jī)的,但是了解一下它的配置對于我們自身來說也是在增長知識。