Section1:Layer 2 Technologies
1.1 VLAN
vlan batch 10 15 24 30 35 255
interface x0/0/x
port link-type access
port default vlan xxx
1.2 Eth-trunk
interface Eth-trunk 1
mode lacp-static
trunkport GigabitEthernet 0/0/13 to G0/0/15
lacp priority 0
interface eth-trunk 1
mode lacp-static
trunkport GigabitEthernet 0/0/13 to G0/0/15
lacp preempt enable
lacp preempt delay 10
max active-linknumber 2
interface g0/0/13
lacp priority 33000
display Eth-trunk 1 #查看效果
1.3 Trunk
interface Eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
undo port trunk allow-pass vlan 1 #模拟环境有个bug, 可能需要重启交换机
1.4 MSTP
stp mode mstp
stp region-configuration
region-name HW
revision-level 1
instance 1 vlan 10 15 24
instance 2 vlan 30 35 255
active region-configuration
stp instance 1 root primary #全局模式下
stp instance 2 root secondary
dis stp instance 1 brief #在R3上查看现象一个根端口,一个阻塞端口
stp bpdu-protection #全局模式
Interface g0/0/10
stp edge-port enable #边缘端口
1.6 Frame-Relay
interface s1/0/0
link-protocol fr
undo fr inarp
fr map ip 10.1.145.4 104 broadcast
fr map ip 10.1.145.5 105 broadcast
ip address 10.1.145.1 24
1.7 PPP
aaa
authentication-scheme chap #创建一个认证计划"chap"
authentication-mode local #在认证计划中创建一个认证模式用本地用户名密码认证
aaa
domain pppchap #创建一个认证域"pppchap"
authentication-scheme chap #调用认证计划"chap"
aaa
local-user chapuser password cipher CHAP123 #创建一个本地用户帐号密码
local-user chapuser service-type ppp #服务类型为ppp
interface s2/0/0
ip address 10.1.12.1 24 #认证端接口配置
ppp authentication-mode chap domain pppchap
ppp chap user chapuser #被认证端接口配置
ppp chap password cipher CHAP123 #shutdown重启验证