UPD-LINK SWITCH通用配置手册
0、设置管理员帐户
#create account admin/user
#delete 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 PORT 23、24添加到vlan v30中,并打上untagged标记 #config vlan v30 advertisement enable
4、端口配置
语法:config ports [
例:#config ports 23-24 speed 100_half learning enable state enable flow_control enable
5、配置链路聚合组
语法:#create link_aggregation group_id
#config link_aggregation group_id
例:#config link_aggregation group_id 1 master_port 1:5 ports 1:5-1:7, 1:9
6、端口镜像 enable mirror
config mirror port
7、软件升级
download firmware 10.90.90.92 升级firmware
upload configuration 172.18.192.90
8、Ip Interface的配置
语法:creat ipif
例: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
2、语法:config ports learning disable 关掉端口学习功能
10、MAC锁定到交换机端口(设定使用端口的终端-MAC的数量,并锁定当前连接的终端-MAC为许可用户) 语法:config port_security ports [
例:config port_security ports 1:16 admin_state enable max_learning_addr 10 lock_address_mode DeleteOnReset
11、traffic_segmentation(同一VLAN内端口隔离功能)
语法:config traffic_segmentation [
例:config traffic_segmentation 1:1 forward_list 1:1-1:10 (Port1可以和Port1-10通讯,和Port 11-24隔离)
12、带宽控制
语法:config bandwidth_control [
13、创建IP interface
语法:create ipif
例:create ipif p1 ipaddress 10.1.1.1 Trinity state enable
14、设置静态路由
语法:create iproute
语法: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
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