晴川综合网-西昌地区开办最早的个人网站之一

搜索
查看: 15870|回复: 0

关闭和开启交换机端口

[复制链接]
发表于 2019-4-19 22:36:42 | 显示全部楼层 |阅读模式
关闭:shutdown
开启:undo shutdown

关闭信息中心:undo info-center enable
关闭VLAN1通过端口混合模式:undo port hybrid vlan 1

混合端口带VLAN标签过:port hybrid tagged vlan all
混合端口不带VLAN标签过:port hybrid untagged vlan all

静态路由:ip route-static 10.231.8.0 255.255.255.0 192.168.1.1
查看路由状态:disp ip routing-table

禁止DHCP分配的地址范围:dhcp server excluded-ip-address 10.231.8.7 10.231.8.254vlan 20  基于MAC的VLAN划分(VLAN下)
mac-vlan mac-address 5489-9897-5985 priority 0
mac-vlan mac-address 5489-98ad-7ec9 priority 0
vlan 30  基于MAC的VLAN划分(VLAN下)
mac-vlan mac-address 5489-98d9-2079 priority 0
mac-vlan mac-address 5489-986e-3631 priority 0


interface Vlanif20 基于MAC的VLAN绑定(三层端口下)
ip address 10.231.8.1 255.255.255.0 IP地址
dhcp select interface 基于端口的DHCP
dhcp server static-bind ip-address 10.231.8.5 mac-address 5489-9897-5985  绑定
dhcp server static-bind ip-address 10.231.8.6 mac-address 5489-98ad-7ec9  绑定
dhcp server excluded-ip-address 10.231.8.7 10.231.8.254 不分配
dhcp server lease day 0 hour 0 minute 1 租期
dhcp server dns-list 10.231.15.205 默认的DNS



基于MAC的VLAN划分
interface GigabitEthernet0/0/1
undo port hybrid vlan 1 不允许VLAN1过
port hybrid untagged vlan 20 30 40 50 不带VLAN标签进来
mac-vlan enable  基于MAC的VLAN划分
关闭端口的MAC学习功能,遇到就丢弃:mac-address learning disable action discard



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|晴川综合网(晴川论坛) 蜀ICP备12004085号-1

GMT+8, 2024-11-27 08:36 , Processed in 0.109200 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表