pvc管易破吗:S2309交换机开局配置

来源:百度文库 编辑:偶看新闻 时间:2024/04/20 22:13:44
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