打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
S2309交换机开局配置
<HuangRong>system-view
Enter system view, return user view with Ctrl+Z.
[HuangRong]dis cu
#
 sysname HuangRong
#
 vlan batch 1 100 200
#
 bpdu enable
#
 cluster enable
 ntdp enable
 ntdp hop 16
 ndp enable
#
 voice-vlan mac-address 0001-e300-0000 mask ffff-ff00-0000 description Simens phone
 voice-vlan mac-address 0003-6b00-0000 mask ffff-ff00-0000 description Cisco phone
 voice-vlan mac-address 0004-0d00-0000 mask ffff-ff00-0000 description Avaya phone
 voice-vlan mac-address 0060-b900-0000 mask ffff-ff00-0000 description Philips/NEC phone
 voice-vlan mac-address 00d0-1e00-0000 mask ffff-ff00-0000 description Pingtel phone
 voice-vlan mac-address 00e0-7500-0000 mask ffff-ff00-0000 description Polycom phone
 voice-vlan mac-address 00e0-bb00-0000 mask ffff-ff00-0000 description 3com phone
#
vlan 100                                      --------------------------------创建VlAN
 description To_Client                       --------------------------------VLAN描述
vlan 200
 description To_ShangXing                  
#
interface Vlanif1
#
interface Vlanif100                          -----------------------------------创建VLAN虚拟接口
 description To_TEST                         -----------------------------------描述
 ip address 10.38.18.65 255.255.255.192      -----------------------------------对虚拟接口配置IP地址
#
interface Ethernet0/0/1                      ------------------------------------交换机端口
  description To_Client                      ------------------------------------端口描述
 port default vlan 100                       -----------------------------------将端口模式设置为access模式,
 ntdp enable
 ndp enable
#
interface Ethernet0/0/2
 port default vlan 1
 ntdp enable
 ndp enable
#
interface Ethernet0/0/3
 port default vlan 1
 ntdp enable
 ndp enable
#
interface Ethernet0/0/4                  
 port default vlan 1
 ntdp enable
 ndp enable
#
interface Ethernet0/0/5
 port default vlan 1
 ntdp enable
 ndp enable
#
interface Ethernet0/0/6
 port default vlan 1
 ntdp enable
 ndp enable
#
interface Ethernet0/0/7
 port default vlan 1
 ntdp enable
 ndp enable
#
interface Ethernet0/0/8                                 ------------------------配置交换机上联接口
 description To_ShangXing
 port link-type trunk                                   ------------------------将交换机端口模式配置为Trunk
 port trunk allow-pass vlan 2 to 4094                  -------------------------配置端口允许通过的VLAN  
 ntdp enable
 ndp enable
#
interface GigabitEthernet0/0/1
 port default vlan 1
 ntdp enable
 ndp enable
#
interface NULL0
#
aaa                                                  ----------------进入AAA模式
 local-user shonghua password cipher U%%-E+'-/U_Q=^Q`MAF4<1!! ------配置用户名和密码(simple明文,ciper密码)
 local-user shonghua service-type terminal telnet    ----------------设置交换机远程访问方式(telnet,ssh)
 authentication-scheme default
 #
 authorization-scheme default
 #
 accounting-scheme default
 #
 domain default
 #
#
 ip route-static 0.0.0.0 0.0.0.0 10.38.18.64        ----------------配置交换机默认路由,在交换机是(stub)末梢时起默认路由,指向网关设备
#
user-interface con 0                                ---------------交换机Console配置
 authentication-mode aaa                            ---------------Console认证方式
user-interface vty 0 4                              ---------------远程登录0-4表述可以同时在线5个人
 authentication-mode aaa                            ---------------VTY认证方式
 user privilege level 15                            ---------------设置访问权限
#
return
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
华为交换机常用命令行操作总结
思科Cisco 2960系列交换机配置命令
【新提醒】H3C交换机配置详解
H3C交换机基础配置命令
华为交换机配置实用手册
H3C交换机配置命令大全
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服