1.哪一種動物最容易懷孕?
刺蝟
被(背)上很多次(刺)
2.詩仙李白怎麼死的?
失血(詩寫)過多
3.
應該無所不能的MIS
2019年5月28日 星期二
2017年4月24日 星期一
2015年1月22日 星期四
匯集交換器鏈路PAgP LACP
設定PAgP EtherChannel
S1(config)#port-channel load-balance src-dst-port
S1(config)#interface range gi0/1-4
S1(config-if)#channge-protocol pagp
S1(config-if)#channel-group 1 mode desirable non-silent
設定LACP EtherChannel
S1(config)#lacp system-priority 100
S1(config)#interface range gi0/1-2
S1(config-if)#channge-protocol lacp
S1(config-if)#channel-group 1 mode active
S1(config-if)#lacp port-priority 100 需要備援時
S1(config-if)#exit
S1(config)#interface range gi0/3-4
S1(config-if)#channge-protocol lacp
S1(config-if)#channel-group 1 mode active
確認狀態
S1#show etherchannel summary
確認狀態
S1#show etherchannel summary
STP
STP狀態
S1#show spanning interface gi0/1
S1#debug spanning-tree switch state
設定根橋接器
S1(config)#spanning-tree vlan 100 root primary
S1(config)#spanning-tree vlan 100 priority 0
設定交換埠的路徑成本
S1(config)#spanning-tree vlan 10 cost 2
啟用根防護
S1(config-if)#spanning-tree guard root
BPDU防護
啟用BPDU防護作為預設
S1(config)#spanning-tree portfast bpduguard default
啟用BPDU防護
S1(config-if)#spanning-tree bpduguard enable
S1#show spanning interface gi0/1
S1#debug spanning-tree switch state
設定根橋接器
S1(config)#spanning-tree vlan 100 root primary
S1(config)#spanning-tree vlan 100 priority 0
設定交換埠的路徑成本
S1(config)#spanning-tree vlan 10 cost 2
啟用根防護
S1(config-if)#spanning-tree guard root
BPDU防護
啟用BPDU防護作為預設
S1(config)#spanning-tree portfast bpduguard default
啟用BPDU防護
S1(config-if)#spanning-tree bpduguard enable
2015年1月21日 星期三
2014年12月9日 星期二
第三層之備援-FHRP(HSRP,VRRP,GLBP)
熱備援路由協定HSRP
S1(config)#interface vlan 50
S1(config-if)#ip address 192.168.1.10 255.255.255.0
S1(config-if)#standby 1 priority 200
S1(config-if)#standby 1 ip 192.168.1.1
S1(config-if)#standby 1 authentication MyKey
S1(config-if)#standby 2 priority 100
S1(config-if)#standby 2 ip 192.168.1.2
S1(config-if)#standby 2 authentication MyKey
S2(config)#interface vlan 50
S2(config-if)#ip address 192.168.1.11 255.255.255.0
S2(config-if)#standby 1 priority 100
S2(config-if)#standby 1 ip 192.168.1.1
S2(config-if)#standby 1 authentication MyKey
S2(config-if)#standby 2 priority 200
S2(config-if)#standby 2 ip 192.168.1.2
S2(config-if)#standby 2 authentication MyKey
檢視HSRP
S1#show standby vlan 50 brief
--------------------------------------------------------
虛擬路由器備援VRRP
S1(config)#interface vlan 50
S1(config-if)#ip address 192.168.1.10 255.255.255.0
S1(config-if)#vrrp 1 priority 200
S1(config-if)#vrrp 1 ip 192.168.1.1
S1(config-if)#vrrp 2 priority 100
S1(config-if)#no vrrp 2 preempt
S1(config-if)#vrrp 2 ip 192.168.1.2
S2(config)#interface vlan 50
S2(config-if)#ip address 192.168.1.11 255.255.255.0
S2(config-if)#vrrp 1 priority 100
S2(config-if)#no vrrp 1 preempt
S2(config-if)#vrrp 1 ip 192.168.1.1
S2(config-if)#vrrp 2 priority 200
S2(config-if)#vrrp 2 ip 192.168.1.2
檢視VRRP
S1#show vrrp brief
---------------------------------------------------------
閘道負載平衡協定GLBP
S1(config)#interface vlan 50
S1(config-if)#ip address 192.168.1.10 255.255.255.0
S1(config-if)#glbp 1 priority 200
S1(config-if)#glbp 1 preempt
S1(config-if)#glbp 1 192.168.1.1
S2(config)#interface vlan 50
S2(config-if)#ip address 192.168.1.11 255.255.255.0
S2(config-if)#glbp 1 priority 150
S2(config-if)#glbp 1 preempt
S2(config-if)#glbp 1 192.168.1.1
S3(config)#interface vlan 50
S3(config-if)#ip address 192.168.1.12 255.255.255.0
S3(config-if)#glbp 1 priority 100
S3(config-if)#glbp 1 192.168.1.1
檢視GLBP
S1#show glbp brief
--------------------------------------------------------
設定備援模式
R1(config)#redundancy
R1(config-red)#mode rpr(rpr-plus | sso)
查看備援模式狀態
show redundancy states
S1(config)#interface vlan 50
S1(config-if)#ip address 192.168.1.10 255.255.255.0
S1(config-if)#standby 1 priority 200
S1(config-if)#standby 1 ip 192.168.1.1
S1(config-if)#standby 1 authentication MyKey
S1(config-if)#standby 2 priority 100
S1(config-if)#standby 2 ip 192.168.1.2
S1(config-if)#standby 2 authentication MyKey
S2(config)#interface vlan 50
S2(config-if)#ip address 192.168.1.11 255.255.255.0
S2(config-if)#standby 1 priority 100
S2(config-if)#standby 1 ip 192.168.1.1
S2(config-if)#standby 1 authentication MyKey
S2(config-if)#standby 2 priority 200
S2(config-if)#standby 2 ip 192.168.1.2
S2(config-if)#standby 2 authentication MyKey
檢視HSRP
S1#show standby vlan 50 brief
--------------------------------------------------------
虛擬路由器備援VRRP
S1(config)#interface vlan 50
S1(config-if)#ip address 192.168.1.10 255.255.255.0
S1(config-if)#vrrp 1 priority 200
S1(config-if)#vrrp 1 ip 192.168.1.1
S1(config-if)#vrrp 2 priority 100
S1(config-if)#no vrrp 2 preempt
S1(config-if)#vrrp 2 ip 192.168.1.2
S2(config)#interface vlan 50
S2(config-if)#ip address 192.168.1.11 255.255.255.0
S2(config-if)#vrrp 1 priority 100
S2(config-if)#no vrrp 1 preempt
S2(config-if)#vrrp 1 ip 192.168.1.1
S2(config-if)#vrrp 2 priority 200
S2(config-if)#vrrp 2 ip 192.168.1.2
檢視VRRP
S1#show vrrp brief
---------------------------------------------------------
閘道負載平衡協定GLBP
S1(config)#interface vlan 50
S1(config-if)#ip address 192.168.1.10 255.255.255.0
S1(config-if)#glbp 1 priority 200
S1(config-if)#glbp 1 preempt
S1(config-if)#glbp 1 192.168.1.1
S2(config)#interface vlan 50
S2(config-if)#ip address 192.168.1.11 255.255.255.0
S2(config-if)#glbp 1 priority 150
S2(config-if)#glbp 1 preempt
S2(config-if)#glbp 1 192.168.1.1
S3(config)#interface vlan 50
S3(config-if)#ip address 192.168.1.12 255.255.255.0
S3(config-if)#glbp 1 priority 100
S3(config-if)#glbp 1 192.168.1.1
檢視GLBP
S1#show glbp brief
--------------------------------------------------------
設定備援模式
R1(config)#redundancy
R1(config-red)#mode rpr(rpr-plus | sso)
查看備援模式狀態
show redundancy states
2014年12月7日 星期日
VLAN
ISL(Inter-Switch Link)跨交換器鏈路-Cisco設備專用
VTP(VLAN Trunking Protocol)VLAN主幹通訊協定
新增VLAN
S1#config t
S1(config)#vlan 20
S1(config-vlan)#Engineering
指派交換埠給vlan
S1(config)#interface fa0/0
S1(config-if)#switchport
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 20
VLAN Trunk設定
S1(config)#interface gi0/1
S1(config-if)#switchport trunk encapsulation dot1q
S1(config-if)#switchport trunk native vlan 20
S1(config-if)#switchport trunk allowed vlan all
S1(config-if)#switchport trunk mode dynamic desirable
檢視trunk狀態
S1#show interface fa0/1 trunk
S1#show interface status
S1#show vlan id 20
S1#show interface fa0/1 switchport
S1#show interface fa0/1 trunk
檢視vtp組態
S1#show vtp status
設定vtp管理領域
S1(config)#vtp domain Jason
設定vtp模式
S1(config)#vtp mode server
S1(config)#vtp password 12345
設定vtp版本
S1(config)#vtp vsesion 2
啟用vtp修剪
S1(config)#vtp pruning
VTP(VLAN Trunking Protocol)VLAN主幹通訊協定
新增VLAN
S1#config t
S1(config)#vlan 20
S1(config-vlan)#Engineering
指派交換埠給vlan
S1(config)#interface fa0/0
S1(config-if)#switchport
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 20
VLAN Trunk設定
S1(config)#interface gi0/1
S1(config-if)#switchport trunk encapsulation dot1q
S1(config-if)#switchport trunk native vlan 20
S1(config-if)#switchport trunk allowed vlan all
S1(config-if)#switchport trunk mode dynamic desirable
檢視trunk狀態
S1#show interface fa0/1 trunk
S1#show interface status
S1#show vlan id 20
S1#show interface fa0/1 switchport
S1#show interface fa0/1 trunk
檢視vtp組態
S1#show vtp status
設定vtp管理領域
S1(config)#vtp domain Jason
設定vtp模式
S1(config)#vtp mode server
S1(config)#vtp password 12345
設定vtp版本
S1(config)#vtp vsesion 2
啟用vtp修剪
S1(config)#vtp pruning
訂閱:
文章 (Atom)