端口聚合协议(PAg,P)
S1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10 //设置排除地址范围
S1(config)#ip dhcp pool aaa //设置地址池名称
S1(dhcp-config)#default-router 192.168.10.1 //指定地址池的网关
S1(dhcp-config)#dns-server 119.6.6.6 //配置DNS地址
S1(dhcp-config)#network 192.168.10.0 255.255.255.0 //指定地址池的范围
S1(dhcp-config)#exit
S1(config)#ip dhcp pool bbb
S1(dhcp-config)#network 192.168.20.0 255.255.255.0
S1(dhcp-config)#default-router 192.168.20.1
S1(dhcp-config)#dns-server 119.6.6.6
基于LACP配置EtherChannel
S1(config)#interface range FastEthernet0/1-2
S1(config-if-range)#channel-group 1 mode active
s1(config-if-range)#interface port-channel 1
S1(config-if)#sswitchport mode trunk
S1(config-if)#switchport trunk allowed vlan 1,2,20
EtherChannel校验
Show interface port-channel 命令,显示EtherChannel接口的总体状态
Show etherchannel summary 命令,用列表每行显示一条通道的接口信息
showetherchannel port-channel命令,显示特定通道接口的信息
show interfaces etherchannel命令,显示EtherChannel内每个接口的相关信息
EtherChannel故障诊断
S1#show etherchannel summary
获取ip地址的四个步骤()
打开路由器
S1#Ip dhcp exclude-address 10.1.1.1 10.1.1.10(排出这些地址)
S1(config)#Ip dhcp pool vlan 10
S1(dhep-config)#network 10.1.1.10 255.255.255.128(128之内可以分配)
S1(dhep-config)#default-router 10.1.1.1
S1(dhep-config)#dns-server 119.6.6.6(dns服务器)
S1(dhep-config)#exit
路由器获取ip地址(网关得在同一网段)
S1(config)#ip dhcp pool vlan 20
S1(dhep-config)#default-router 20.1.1.1
S1(dhep-config)#network 20.1.1.1 255.255.255.224
S1(dhep-config)#dns-server 8.8.8.8文章来源:https://www.toymoban.com/news/detail-761081.html
S1(dhep-config)#文章来源地址https://www.toymoban.com/news/detail-761081.html
到了这里,关于思科:链路聚合的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!