迪普交换机配置总结

迪普交换机配置总结 前段时间我们分享了迈普交换机配置总结XX今天我们来看一下迪普交换机的配置。迪普的前身大家可能不清楚这里给大家普及一下迪普前身是老华三安全产品线分出去的成了迪普厂家其他的宇视也是老华三监控产品线分出去的的如今成了和海康、大华可以比拼的公司存储产品线也分出去成立了红杉国产化存储不错的企业还有其他的语音、视频会议等当年华三产品线还是比较齐全的当然现在新华三也非常好进入紫光系后各个产品线更加齐全了。1.设备命名hostname 1F-SW2.进入配置模式conf-mode3.配置lldp需同时全局和接口下配置lldp enableinterface gige0_XXswitchport mode trunkswitchport trunk allowed vlan 24,1000lldp enable4.根据实际需求配置接口类型为trunk或者accessinterface gige0_XXswitchport mode trunkswitchport trunk allowed vlan 24,1000lldp enableinterface range gige0_1-XXswitchport access vlan 24lldp enable5.snmp配置!snmp-agent version 2csnmp-agent community %%fGq$1Oj1$2$yF$j$HKf$tp$r rosnmp-agent community %%kK$.$12Vg$LYg$FMv$$$Tg$r$I7Q rw!6.配置ssh和登录密码!cli ssh maxlinks 4ssh enablessh port 10022no http enable!local-user guanlipassword encrypted-password Admin123456service-type console web ssh!7.配置端口镜像!mirror 1 source interface gige0_1 gige0_2 gige0_3 gige0_4 gige0_5 gige0_6 gige0_7 gige0_8 gige0_9 gige0_10 gige0_12 gige0_14 gige0_16 gige0_18 gige0_19 gige0_20 gige0_21 gige0_22 gige0_23 gige0_24 gige0_26 gige0_28 bothmirror 1 destination interface gige0_17mirror 2 source interface gige0_7 gige0_26 gige0_28 bothmirror 2 destination interface gige0_0!8.配置ipv4和ipv6地址与路由ipv6 unicast-routing!vlan 1 to 3!vlan 6!vlan 20!vlan 24!interface vlan-if1ip address X.X.1.1/24ipv6 address 2411:8104:8:400::1:1/112!interface vlan-if2ip address X.X.1.1/24ipv6 address 2411:8104:8:400::2:1/112!interface vlan-if3ip address X.X.1.254/24ipv6 address 2411:8104:8:400::3:1/112!interface vlan-if6ip address X.X.6.1/24ipv6 address 2411:8204:8:400:ffff:ffff:ffff:6/126!interface vlan-if500ip address X.X.10.1/24ip address X.X.51.254/29 secondaryipv6 address 2411:8104:8:400::500:1/112!ip route 0.0.0.0/0 X.X.1.253ip route 10.0.0.0/8 X.X.6.2ip route 10.2.1.0/24 X.X.1.253!ipv6 route ::/0 2411:8104:8:400::3:2 vlan-if3ipv6 route 2411::/16 240b:8204:8:400:ffff:ffff:ffff:7 vlan-if6ipv6 route 2411:8104:8:400::269:0/112 240b:8204:8:400:ffff:ffff:ffff:15!9.配置aclacl mode ipv4 ingress //只是配置没有应用rule 101 source any destination host 10.1.3.16 protocol tcp source-port 0 to 65535 destination-port 8080 to 8080 interface gige0_15,gige0_28-29 action permitrule 1 source host 10.1.3.254 destination 10.1.5.0/24 interface gige0_15,gige0_28-29 action permitrule 2 source 10.1.5.0/24 destination host 10.1.3.254 interface gige0_15,gige0_28-29 action permitrule 3 source 10.1.2.0/24 destination host 10.1.3.0 interface gige0_15,gige0_28-29 action droprule 4 source 10.1.3.0/24 destination host 10.1.2.0 interface gige0_15,gige0_28-29 action droprule 5 source 10.1.2.0/24 destination host 10.1.4.0 interface gige0_15,gige0_28-29 action droprule 6 source 10.1.4.0/24 destination host 10.1.2.0 interface gige0_15,gige0_28-29 action droprule 7 source host 10.1.2.0 destination host 10.1.5.0 interface gige0_15,gige0_28-29 action droprule 8 source host 10.1.5.0 destination host 10.1.2.0 interface gige0_15,gige0_28-29 action droprule 9 source host 10.1.3.0 destination host 10.1.4.0 interface gige0_15,gige0_28-29 action droprule 10 source host 10.1.4.0 destination host 10.1.3.0 interface gige0_15,gige0_28-29 action droprule 11 source host 10.1.3.0 destination host 10.1.5.0 interface gige0_15,gige0_28-29 action droprule 12 source host 10.1.5.0 destination host 10.1.3.0 interface gige0_15,gige0_28-29 action droprule 13 source host 10.1.4.0 destination host 10.1.5.0 interface gige0_15,gige0_28-29 action droprule 14 source host 10.1.5.0 destination host 10.1.4.0 interface gige0_15,gige0_28-29 action droprule 15 source any destination any interface gige0_15,gige0_28-29 action permit!10.保存配置到本地flashwrite file 保存配置到flash11.常用查看命令show runshow ip in bshow ip routeshow int statusshow lldp neishow devshow dev manshow version