Tuesday, June 7, 2016

1. Vlan

interface FastEthernet0/11
switchport access vlan 10

switchport mode access

2. DTP

3. Inter Vlan

switchport mode trunk

interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 172.17.10.1 255.255.255.0

inter fa0/0 no shut

4. VTP

Switch(config)# vtp domain name

Switch(config)# vtp mode mode

Switch(config)# vtp password password

show vtp status
show vtp counters

5. Port security

wg_sw_2950(config)#interface fa0/1
wg_sw_2950(config-if)#switchport mode access
wg_sw_2950(config-if)#switchport port-security
wg_sw_2950(config-if)#switchport port-security maximum 1
wg_sw_2950(config-if)#switchport port-security mac-address 0008.eeee.eeee
wg_sw_2950(config-if)#switchport port-security violation shutdown

6. STP

SW(config)#spanning-tree vlan 5 root
SW(config)#spanning-tree vlan 5 secondary

7. Etherchannel

SW(config-if)#channel-group 1 mode active

show interfaces etherchannel

8. HRPS, VRRP

Default Gateway Redundancy

HSRP:

RouterA(config)# interface GigabitEthernet0/0
RouterA(config-if)# ip address 10.1.10.2 255.255.255.0
RouterA(config-if)# standby 1 ip 10.1.10.1
RouterA(config-if)# standby 1 priority 110
RouterA(config-if)# standby 1 preempt

Router A chạy ở chế độ Active có lệnh preempt, router B chạy chế độ standby không cần lệnh này.

0 comments:

Post a Comment

Chuyên mục

Bài viết theo tháng

Bài đăng gần nhất