最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 正文

D-Link交换机通用配置手册

来源:动视网 责编:小OO 时间:2025-09-24 21:05:47
文档

D-Link交换机通用配置手册

UPD-LINKSWITCH通用配置手册0、设置管理员帐户#createaccountadmin/useradmin/user是用户类型Enteracase-sensitivenewpassword:***Enterthenewpasswordagainforconfirmation:***Success.#deleteaccount#showaccount1、配置交换机默认IP地址和所属VLANconfigipifSystemipaddress192.168.0.2/24vlanV302、配
推荐度:
导读UPD-LINKSWITCH通用配置手册0、设置管理员帐户#createaccountadmin/useradmin/user是用户类型Enteracase-sensitivenewpassword:***Enterthenewpasswordagainforconfirmation:***Success.#deleteaccount#showaccount1、配置交换机默认IP地址和所属VLANconfigipifSystemipaddress192.168.0.2/24vlanV302、配
UPD-LINK SWITCH通用配置手册

0、设置管理员帐户

   #create account admin/user               admin/user是用户类型

Enter a case-sensitive new password:***              

Enter the new password again for confirmation:***

Success.   

#delete account

#show account 

1、配置交换机默认IP地址和所属VLAN

   config ipif System ipaddress 192.168.0.2/24 vlan V30

2、配置SNMP

   create snmp community test view CommunityView read_only

create snmp community testw view CommunityView read_write

show snmp community

3、配置 VLAN

   #create vlan v30 tag 30 其中,v30是VLAN Name  ,30是VLAN ID (VID) 

 #config vlan v30 add untagged 1:23-1:24 、24添加到vlan v30中,并打上untagged标记

 #config vlan v30 advertisement enable  

4、端口配置

   语法:config ports [ [speed [auto | 10_half | 10_full | 100_half | 100_full | 1000_full {[master | slave]} ] | flow_control [enable | disable] | learning [enable | disable] state [enable | disable] description | clear]

   例:#config ports 23-24 speed 100_half learning enable state enable flow_control enable

5、配置链路聚合组

   语法:#create link_aggregation group_id {type [lacp | static]}

         #config link_aggregation group_id {master_port | ports | state [enable | disable]

例:#config link_aggregation group_id 1 master_port 1:5 ports 1:5-1:7, 1:9

6、端口镜像

   enable mirror

config mirror port [add/delete] source ports [rx/tx/both]

    监控端口;source ports 被监控端口

7、软件升级

d升级firmware

upload configuration 172.18.192.90 上传配置到TFTP服务器

download configuration 172.18.192.90 从TFTP服务器下载配置

8、Ip Interface的配置

   语法:creat ipif state enable

例:creat ipif test 192.168.1.1/24 vlan100 state enable

 config ipif System ipaddress 10.48.74.122/8 vlan v30

9、MAC绑定到交换机端口(手动添加MAC,这些MAC的终端可以使用此端口)

Used to create a static entry to the unicast MAC address forwarding table (database)

1、语法:create fdb [port ]  建立静态fdb条目

例: create fdb default 00-00-00-00-01-02 port 2:5

2、语法:config ports learning disable      关掉端口学习功能  

10、MAC锁定到交换机端口(设定使用端口的终端-MAC的数量,并锁定当前连接的终端-MAC为许可用户)

   语法:config port_security ports [| all ] {admin_state [enable | disable] | max_learning_addr | lock_address_mode [Permanent | DeleteOnTimeout | DeleteOnReset]}

   例:config port_security ports 1:16 admin_state enable max_learning_addr 10 lock_address_mode DeleteOnReset

   

11、traffic_segmentation(同一VLAN内端口隔离功能)

语法:config traffic_segmentation  [| all] forward_list [null | all | ]

    例:config traffic_segmentation  1:1 forward_list  1:1-1:10     (Port1可以和Port1-10通讯,和Port 11-24隔离)

12、带宽控制

语法:config bandwidth_control [ | all] {rx_rate [no_limit | ] | tx_rate [no_limit | ]}   单位为Mbps

13、创建IP interface

语法:create ipif ipaddress  vlan  state [enable | disable]

      例:create ipif p1 ipaddress 10.1.1.1 Trinity state enable

14、设置静态路由

     语法:create iproute {} {[primary | backup]}

            . IP address and netmask of the IP interface that is the destination of the route.

              . The gateway IP address for the next hop router.

语法:create iproute default {}

15、ACL访问控制列表

1、创建access_profile

       DXS-3350SR:4#create access_profile ip destination_ip_mask 255.255.255.255 profile_id 1

2、建立access条目

   DXS-3350SR:4#config access_profile profile_id 1 add access_id 1 ip destination_ip 172.18.192.246 port 1:16 deny

16、IP-MAC Binding

The IP-MAC Binding commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.

Command

create address_binding ip_mac ipaddress mac_address

config address_binding ip_mac ipaddress mac_address

config address_binding ip_mac ports [ | all] state [enable | disable]

show

   eg: enable address_binding acl_mode   Enable  IP-MAC Port Binding ACL Mode

create address_binding ip_mac ipaddress 192.168.0.10 mac_address 00-15-F2-A9-0B-C2 ports 1 mode acl   To set up a  IP-MAC Port Binding Rule

config address_binding ip_mac ports 1-10 state enable   Enable active port

show address_binding ip_mac

show address_binding ports

17、策略路由

create access_profile profile_id 1 ip source_ip_mask 255.255.255.0

config access_profile profile_id 1 add access_id 1 ip source_ip 4.4.4.4  port 1

create policy_route name 1

config policy_route name 1 acl profile_id 1 access_id 1 nexthop 2.2.2.2 state enable

18、DHCP Server

create dhcp pool test

config dhcp pool network_addr test 192.168.0.0/24

config dhcp pool dns_server_address test 61.139.2.69 0.0.0.0 0.0.0.0

config dhcp pool netbios_node_type test broadcast

config dhcp pool default_router test 192.168.0.1 0.0.0.0 0.0.0.0

config dhcp pool lease test 1 1 1

config dhcp ping_packets 5

config dhcp ping_timeout 500

enable dhcp_server

19、修改交换机名称

config command_prompt

20、线缆检测

diag_cable ports

21、三层组播协议

enable igmp_snooping

config igmp_snooping all state enable

config igmp all state enable

enable DVMRP

config DVMRP all state enable

22、开启DHCP Server Screening功能

config filter dhcp_server add permit server_ip 10.10.10.1 client_mac 00-90-27-e0-67-27 port 1:1-1:24

config filter dhcp_server ports <端口> state enable

23、开启DHCP中继功能

enable dhcp_relay

config dhcp_relay add  ipif <三层接口名称>  

24、保存配置文件

upload cfg_toTFTP  dest_file c:\\cfg\\DGS-3420.cf 

文档

D-Link交换机通用配置手册

UPD-LINKSWITCH通用配置手册0、设置管理员帐户#createaccountadmin/useradmin/user是用户类型Enteracase-sensitivenewpassword:***Enterthenewpasswordagainforconfirmation:***Success.#deleteaccount#showaccount1、配置交换机默认IP地址和所属VLANconfigipifSystemipaddress192.168.0.2/24vlanV302、配
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top