必備知識(shí):
首先我門應(yīng)當(dāng)了解Catalsty 4908G-L3,實(shí)際上他是一臺(tái)路由器,完全使用CISCO的IOS配置接口。默認(rèn)的狀態(tài)下所有的接口都是可以路由的接口。Catalsty 4908G-L3并不支持面向二層協(xié)議,VLAN主干協(xié)議,動(dòng)態(tài)主干協(xié)議,端口聚合協(xié)議。
Catalsty 4908不支持以下幾種:基于12.0(7)版本的IOS
1 訪問控制列表。
2 802.1q
3 apple talk routing
4 port snooping
Catalsty 4908 swtich-router running Cisco IOS 12.0 ( 7 )W5 (15D)
Three Catalsty 3512xl switch running cisco iso 12.0 ( 5 )xu
配置Catalsty 4908交換機(jī)達(dá)到兩個(gè)目的。
讓五個(gè)VLAN 1 10 20 30 40 運(yùn)行在二層交換機(jī)上
不 同 的VLAN間可以進(jìn)行通訊
兩個(gè)Catalsty 3512xl交換機(jī)使用使用吉比特以太網(wǎng)鏈路連接到4908G-L3,其他的一個(gè)使用單一的吉比特鏈路連接。
來支持內(nèi)部VLAN的路由,集成路由和橋接。所有的端用戶和服務(wù)器都連接到Catalsty 3512XL,如果一個(gè)VLAN中的設(shè)備想連接到另一個(gè)VLAN中的設(shè)備的時(shí)候,數(shù)據(jù)將會(huì)發(fā)送到4908G-L3,他將數(shù)據(jù)路由到虛擬的橋接的接口上。
以下配置應(yīng)當(dāng)應(yīng)用的交換機(jī)上:
基本的出始化的配置
IP地址和默認(rèn)的網(wǎng)關(guān)應(yīng)當(dāng)分配到交換機(jī)上為管理
VTP模式應(yīng)當(dāng)配置成透明的模式, 以便在3512XL交換機(jī)上配置VLAN
吉比特以太網(wǎng)通道在4908G-L3和3512XL01 3512XL02
橋節(jié)和虛擬接口, IP和IPX的路由應(yīng)當(dāng)配置在4908上
ISL TRUNKS應(yīng)當(dāng)配置在4908G-L3和3512XL橋接應(yīng)當(dāng)配置在TRUNK的子接口上
Vlan IP subnet IPX NETWORK
1 10.10.1.0/24 N/A
10 10.10.10.0/24 1000
20 10.10.20.0/24 2000
30 10.10.30.0/24 3000
40 10.10.40.0/24 4000
在Catalsty3512xl上配置一個(gè)IP地址和默認(rèn)的網(wǎng)關(guān)為交換機(jī)的管理,默認(rèn)網(wǎng)關(guān)的地址是橋接虛擬接口的地址在Catalsty 4908G-L3上。
Switch#configure terminal
Switch(config)#hostname 3512xl-switch01
3512xl-switch01(config)#interface vlan 1
3512xl-switch01(config-if)#ip address 10.10.1.10 255.255.255.0
3512xl-switch01(config-if)#management
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#ip default-gateway 10.10.1.1
3512xl-switch01(config)#end
3512xl-switch01#
3512xl-switch02(config)#interface vlan 1
3512xl-switch02(config-if)#ip address 10.10.1.20 255.255.255.0
3512xl-switch02(config-if)#management
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#ip default-gateway 10.10.1.1
3512xl-switch02(config)#end
3512xl-switch02#
3512xl-switch03(config)#interface vlan 1
3512xl-switch03(config-if)#ip address 10.10.1.30 255.255.255.0
3512xl-switch03(config-if)#management
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#ip default-gateway 10.10.1.1
3512xl-switch03(config)#end
3512xl-switch03#
由于Catalsty 4908G-L3并不支持VTP所以Catalsty 3512xl配置成透明的模式,
3512xl-switch01#vlan database
3512xl-switch01(vlan)#vtp transparent
3512xl-switch01(vlan)#vlan 10 name vlan10
3512xl-switch01(vlan)#vlan 20 name vlan20
3512xl-switch01(vlan)#vlan 30 name vlan30
3512xl-switch01(vlan)#vlan 40 name vlan40
配置以太網(wǎng)通道
在3512XL-01上的GIG0/1和GIG0/2分別連接到4908G-L3上的GIG1和GIG2上,在3512XL-02上的GIG0/1和GIG0/2連接到4908G-L3上的GIG3和GIG4上
4908G-L3#configure terminal
4908G-L3(config)#interface port-channel 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig1
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig2
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface port-channel 2
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig3
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 2
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig4
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 2
在Catalsty 3512xl-02上
3512xl-switch01#configure terminal
3512xl-switch01(config)#interface gig0/1
3512xl-switch01(config-if)#port-group 2
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface gig0/2
3512xl-switch01(config-if)#port-group 2
3512xl-switch01(config-if)#end
3512xl-switch01#
檢查以太網(wǎng)通道組配置使用show port group
配置CAT4908使用橋接和路由的功能,為VLAN間的路由,使用bridge ibr來啟動(dòng)路由和橋接功能。在交換機(jī)之間來配置ISL,VLAN的子接口在ISL TRUNK會(huì)被加入到相應(yīng)的橋接組創(chuàng)建一個(gè)單獨(dú)的2層的域
在Catalsty 4908G-l3上
4908G-L3#configure terminal
4908G-L3(config)#ipx routing
4908G-L3(config)#bridge ibr
4908G-L3(config)#bridge 1 protocol ieee
4908G-L3(config)#bridge 1 route ip
4908G-L3(config)#bridge 10 protocol ieee
4908G-L3(config)#bridge 10 route ip
4908G-L3(config)#bridge 10 route ipx
4908G-L3(config)#bridge 20 protocol ieee
4908G-L3(config)#bridge 20 route ip
4908G-L3(config)#bridge 20 route ipx
4908G-L3(config)#bridge 30 protocol ieee
4908G-L3(config)#bridge 30 route ip
4908G-L3(config)#bridge 30 route ipx
4908G-L3(config)#bridge 40 protocol ieee
4908G-L3(config)#bridge 40 route ip
4908G-L3(config)#bridge 40 route ipx
4908G-L3(config)#interface bvi 1
4908G-L3(config-if)#ip address 10.10.1.1 255.255.255.0
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 10
4908G-L3(config-if)#ip address 10.10.10.1 255.255.255.0
4908G-L3(config-if)#ipx network 1000
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 20
4908G-L3(config-if)#ip address 10.10.20.1 255.255.255.0
4908G-L3(config-if)#ipx network 2000
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 30
4908G-L3(config-if)#ip address 10.10.30.1 255.255.255.0
4908G-L3(config-if)#ipx network 3000
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 40
4908G-L3(config-if)#ip address 10.10.40.1 255.255.255.0
4908G-L3(config-if)#ipx network 4000
ipx routing 在4908G-L3上啟動(dòng)IPX的路由
Bridge IBR啟動(dòng),是集成了路由和橋接的功能。并允許在橋接組中路由通訊。
Bridge number protocol ieee 創(chuàng)建一個(gè)運(yùn)行在IEEE協(xié)議的生成樹具有橋接功能。
配置ISL TRUNK 在交換機(jī)上
在Catalsty 4908G-L3上配置ISL TRUNK需要在主接口下配置子接口,每個(gè)子接口為彼此每個(gè)VLAN傳輸數(shù)據(jù),兩個(gè)TRUNK配置在邏輯的PORT-CHANNEL接口,第三個(gè)TRUNK配置在物理的接口上
4908G-L3#configure terminal
4908G-L3(config)#interface port-channel 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface port-channel 1.1
4908G-L3(config-if)#encapsulation isl 1
4908G-L3(config-if)#bridge-group 1
4908G-L3(config)#interface port-channel 1.10
4908G-L3(config-if)#encapsulation isl 10
4908G-L3(config-if)#bridge-group 10
4908G-L3(config)#interface port-channel 1.20
4908G-L3(config-if)#encapsulation isl 20
4908G-L3(config-if)#bridge-group 20
4908G-L3(config)#interface port-channel 1.30
4908G-L3(config-if)#encapsulation isl 30
4908G-L3(config-if)#bridge-group 30
4908G-L3(config)#interface port-channel 1.40
4908G-L3(config-if)#encapsulation isl 40
4908G-L3(config-if)#bridge-group 40
4908G-L3(config)#interface port-channel 2.1
4908G-L3(config-if)#encapsulation isl 1
4908G-L3(config-if)#bridge-group 1
4908G-L3(config)#interface port-channel 2.10
4908G-L3(config-if)#encapsulation isl 10
4908G-L3(config-if)#bridge-group 10
4908G-L3(config)#interface port-channel 2.20
4908G-L3(config-if)#encapsulation isl 20
4908G-L3(config-if)#bridge-group 20
4908G-L3(config)#interface port-channel 2.30
4908G-L3(config-if)#encapsulation isl 30
4908G-L3(config-if)#bridge-group 30
4908G-L3(config)#interface port-channel 2.40
4908G-L3(config-if)#encapsulation isl 40
4908G-L3(config-if)#bridge-group 40
4908G-L3(config)#interface gig 5
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig 5.1
4908G-L3(config-if)#encapsulation isl 1
4908G-L3(config-if)#bridge-group 1
4908G-L3(config-if)#exit
4908G-L3(config)# interface gig 5.20
4908G-L3(config-if)#encapsulation isl 20
4908G-L3(config-if)#bridge-group 20
4908G-L3(config-if)#exit
4908G-L3(config)# interface gig 5.30
4908G-L3(config-if)#encapsulation isl 30
4908G-L3(config-if)#bridge-group 30
4908G-L3(config-if)#exit
4908G-L3(config)# interface gig 5.40
4908G-L3(config-if)#encapsulation isl 40
4908G-L3(config-if)#bridge-group 40
encapsulation isl vlan 命令在這個(gè)接口上接收VLAN
3512xl-switch01#configure terminal
3512xl-switch01(config)#interface gig 0/1
3512xl-switch01(config-if)#switchport mode trunk
3512xl-switch01#configure terminal
3512xl-switch01(config)#interface fastethernet0/1
3512xl-switch01(config-if)#switchport access vlan 10
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/2
3512xl-switch01(config-if)#switchport access vlan 10
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/3
3512xl-switch01(config)#switchport access vlan 10
3512xl-switch01(config)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/4
3512xl-switch01(config-if)#switchport access vlan 20
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/5
3512xl-switch01(config-if)#switchport access vlan 20
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/6
3512xl-switch01(config-if)#switchport access vlan 20
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/7
3512xl-switch01(config-if)#switchport access vlan 30
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/8
3512xl-switch01(config-if)#switchport access vlan 30
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/9
3512xl-switch01(config-if)#switchport access vlan 30
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/10
3512xl-switch01(config-if)#switchport access vlan 40
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/11
3512xl-switch01(config-if)#switchport access vlan 40
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/12
3512xl-switch01(config-if)#switchport access vlan 40
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface gig 0/2
3512xl-switch01(config-if)#switchport mode trunk
3512xl-switch01#configure terminal
3512xl-switch02(config)#interface gig 0/1
3512xl-switch02(config-if)#switchport mode trunk
3512xl-switch02#configure terminal
3512xl-switch02(config)#interface fastethernet0/1
3512xl-switch02(config-if)#switchport access vlan 10
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/2
3512xl-switch02(config-if)#switchport access vlan 10
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/3
3512xl-switch02(config)#switchport access vlan 10
3512xl-switch02(config)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/4
3512xl-switch02(config-if)#switchport access vlan 20
3512xl-switch02config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/5
3512xl-switch02(config-if)#switchport access vlan 20
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/6
3512xl-switch02(config-if)#switchport access vlan 20
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/7
3512xl-switch02(config-if)#switchport access vlan 30
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/8
3512xl-switch02(config-if)#switchport access vlan 30
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/9
3512xl-switch02(config-if)#switchport access vlan 30
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/10
3512xl-switch02(config-if)#switchport access vlan 40
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/11
3512xl-switch02(config-if)#switchport access vlan 40
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/12
3512xl-switch02(config-if)#switchport access vlan 40
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface gig 0/2
3512xl-switch02(config-if)#switchport mode trunk
3512xl-switch03#configure terminal
3512xl-switch03(config)#interface gig 0/1
3512xl-switch03(config-if)#switchport mode trunk
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/2
3512xl-switch03(config-if)#switchport access vlan 10
3512xl-switch03config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/3
3512xl-switch03(config)#switchport access vlan 10
3512xl-switch03(config)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/4
3512xl-switch03(config-if)#switchport access vlan 20
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/5
3512xl-switch03(config-if)#switchport access vlan 20
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/6
3512xl-switch03(config-if)#switchport access vlan 20
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/7
3512xl-switch03(config-if)#switchport access vlan 30
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/8
3512xl-switch03(config-if)#switchport access vlan 30
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/9
3512xl-switch03(config-if)#switchport access vlan 30
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/10
3512xl-switch03(config-if)#switchport access vlan 40
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/11
3512xl-switch03(config-if)#switchport access vlan 40
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/12
3512xl-switch03(config-if)#switchport access vlan 40
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
上傳的圖像