H3C常用命令-2

实验二

端口聚合

[S1]link-aggregation E 0/1 to E 0/2 { ingress | both }
* ingress : 根据源MAC地址进行数据分流
* both : 根据源MAC地址和目的MAC地址进行数据分流

[S1]undo link-aggregation { E 0/1 | all } 取消 起始端口号
display link-aggregation E 0/1 起始端口号

[S1]interface Bridge-Aggresgation 1
[S1-Bridge-Aggresgation 1]link-aggregation mode dynamic
[S1-Bridge-Aggresgation 1]port link-type trunk
[S1-Bridge-Aggresgation 1]port trunk permit vlan all
[S1]interface E 0/1
[S1-E0/1]port link-aggregation group 1 加入
[S1]interface E 0/2
[S1-E0/2]port link-aggregation group 1 加入

[S1]link-aggregation load-sharing mode destination-mac source-mac 配置聚合组的分发方式

Old
[S1]interface E 0/1
[S1-E0/1]duplex full
[S1-E0/1]speed 100
[S1-E0/1]interface E 0/2
[S1-E0/2]duplex full
[S1-E0/2]speed 100
[S1]link-aggregation E 0/1 to E 0/2 both


[S1]undo mac-address 清空MAC地址表
[S1]display mac-address 查看MAC地址表
[S1]stp enable 使能生成树协议
[S1]stp disable 撤销生成树协议


VLAN配置

*指定/删除端口的缺省VLAN ID
[S1-E0/1] [undo] port trunk vlan pvid vlan_id
[S1-E0/1] [undo] port hybrid vlan pvid vlan_id
指定/删除trunk可以通过的VLAN
[S1-E0/1] [undo] port trunk permit vlan 2 3

将Hybrid端口加入到已经存在的VLAN,并标记为tagged or untagged
[S1-E0/1] port hybrid vlan vlan_id_list { tagged | untagged }
[S1-E0/1] port hybrid vlan 30 40 untagged


PPP协议

[R1]interface Serial 0/0
[R1-S0/0]link-protocol ppp
[R1-S0/0]shutdown
[R1-S0/0]undo shutdown

PAP验证

R1为验证方,R2为被验证方,用户名为RTB,密码为aaa。
[R1]local-user RTB
[R1-user-RTB]service-type ppp
[R1-user-RTB]password simple aaa
[R1]interface S0/0
[R1-S0/0]ppp authentication pap

[R2]interface S 0/0
[R2-S0/0]ppp pap local-user RTB password simple aaa

< R1>debugging ppp pap all
< R1>terminal debugging

CHAP验证

R1为主验证方,R2为被验证方,用户为RTA和RTB,密码为aaa。
[R1]local-user RTB
[R1-user-RTB]service-type ppp
[R1-user-RTB]password simple aaa
[R1]interface S 0/0
[R1-S0/0]ppp authentication-mode chap
[R1-S0/0]ppp chap user RTA 本地名称

[R2]local-user RTA
[R2-user-RTA]service-type ppp
[R2-user-RTA]password simple aaa
[R2]interface S 0/0
[R2-S0/0]ppp chap user RTB

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值