实验二
端口聚合
[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