靜下心來慢慢複習複習;
網絡七層模型知識:
應用層(Application Layer) 對應應用程序服務層;主要服務有 telnet http ftp smtp等;
表示層(Presentation Layer)定義數據格式及加密功能;
會話層(session Layer)定義瞭如何開始,控制和結束一個會話;
傳輸層(Tarnsport Layer)對收到的順序不對的數據包進行重新排序等;如:TCP/UDP/SPX;
網絡層(Network Layer)主要功能路由的選擇和中繼;如:IP IPX等;
數據鏈路層(Data link Layer)定義了在單個鏈路上如何傳輸數據; 如:ATM
物理層(Physical Layer) 規範了傳輸介質的特性標準;
Port Channel 知識學習
Port group是配置層面上的一個物理接口組,配置到port group裏面的物理端口纔可以參加鏈路匯聚,併成爲portchannel裏的某個成員端口。在邏輯上port channel並不是一個端口,而是一個端口序列,加入port group中的物理端口滿足某種條件時進行端口匯聚,形成一個port channel,這個port channel具備了邏輯端口的屬性,才成爲一個獨立的邏輯端口。端口匯聚是一種邏輯上的抽象過程,將一組具備相同屬性的端口,抽象成一個邏輯端口。Port channel是一組物理接口的集合,在邏輯上被當作一個物理接口。
個人理解:
使用網絡設備的端口匯聚功能port channel 把N個端口邏輯上綁定成一個物理接口來實現增加帶寬及提供鏈路備份功能。
Port channel 配置實例:
端口均爲全雙工模式
端口速率相同
端口的類型必須一樣,比如同爲以太口或同爲光纖口
端口同爲access端口並屬於同一個Vlan或同爲Trunk口
如果端口同爲trunk口,則其allowed vlan和 native vlan屬性也應該相同。
SW01配置文件如下:
CISCOSW001#show running-config
Building configuration...
Current configuration : 1992 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname CISCOSW001
an100
network 192.168.100.0 255.255.255.0
default-router 192.168.100.1
dns-server 8.8.8.8
ip dhcp pool vlan200
network 192.168.200.0 255.255.255.0
default-router 192.168.200.1
dns-server 8.8.8.8
ip routing
interface FastEthernet0/1
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Port-channel 10
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan100
ip address 192.168.100.1 255.255.255.0
!
interface Vlan200
ip address 192.168.200.1 255.255.255.0
!
SW02配置文件如下;
!
!
!
interface FastEthernet0/1
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
channel-group 10 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
interface Port-channel 10
switchport trunk encapsulation dot1q
switchport mode trunk
兩臺主機 VLAN 100 /200 各一臺 分別加入sw01/02 24口 自動獲取IP地址 相互ping 可以通過;