美文网首页
思科网络配置交换机

思科网络配置交换机

作者: linux_python | 来源:发表于2020-02-13 17:23 被阅读0次

vlan划分,Access模式

Switch>enable    /进入特权模式
Switch井号  configure terminal    /进入编辑模式

vlan 200    /创建一个vlan仓库
    name 172.16.138.0/24    /添加说明,防止犯错,可以不写
exit

interface fastEthernet 0/8    /进入端口编辑
    description D16112301    /添加服务器说明,可以不写
    switchport mode access    /写模式
    switchport access vlan 200    /写vlan id
    no shutdown    /不关机

end
write    /保存,写入

show vlan brief  /查看vlan数据库信息

vlan划分,bond+Access模式

Switch>enable    /进入特权模式
Switch井号configure terminal    /进入编辑模式

vlan 300    /创建一个vlan仓库
    name 172.16.138.0/24    /添加说明,防止犯错,可以不写
exit

interface Port-channel 1    /创建一个组
    description D16112303    /添加服务器说明,可以不写
    switchport mode access     /写模式
    switchport access vlan 300    /写vlan id
    exit    /退出

interface fastEthernet 0/3    /进入端口编辑
    description D16112303    /添加服务器说明,可以不写
    switchport mode access    /写模式
    switchport access vlan 300    /写vlan id
    channel-group 1 mode on    /加入1组
    exit    /退出

interface fastEthernet 0/8    /进入端口编辑
    description D16112303    /添加服务器说明,可以不写
    switchport mode access    /写模式
    switchport access vlan 300    /写vlan id
    channel-group 1 mode on    /加入1组
    exit    /退出

end
write    /保存,写入

show vlan brief   /查看vlan数据库信息
show etherchannel summary    /查看聚合端口状态

access配置模板

刷就对了

enable
configure terminal

vlan 200
exit


interface fastEthernet 0/1
switchport mode access
switchport access vlan 200
no shutdown
exit

interface fastEthernet 0/2
switchport mode access
switchport access vlan 200
no shutdown
exit

interface fastEthernet 0/3
switchport mode access
switchport access vlan 200
no shutdown
exit



exit
write 

access bond 配置模板

enable
configure terminal
vlan 300 
exit

interface Port-channel 1
switchport mode access
switchport access vlan 300
exit

interface fastEthernet 0/1
description D16112303  
switchport mode access   
switchport access vlan 300    
channel-group 1 mode on    
exit  

interface fastEthernet 0/2
description D16112303  
switchport mode access   
switchport access vlan 300    
channel-group 1 mode on    
exit  

interface fastEthernet 0/3
description D16112303  
switchport mode access   
switchport access vlan 300    
channel-group 1 mode on    
exit  


exit
write
show vlan brief

相关文章

网友评论

      本文标题:思科网络配置交换机

      本文链接:https://www.haomeiwen.com/subject/ljpovctx.html