HCIE实验LAB_1(1)

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重启验证

 

转载于:https://www.cnblogs.com/xuebing666666/p/6647606.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值