comware二层接入交换机配置记录
sysname 主机名 #配置默认账户密码以及权限 aaa local-user admin password irreversible-cipher 密码 local-user admin privilege level 15 local-user admin service-type terminal ssh http #配置默认路由 ip route-static 0.0.0.0 0.0.0.0 172.20.20.1 #配置上联通信IP interface Vlanif2 ip address 172.20.20.20 255.255.255.0 #配置上联 interface GigabitEthernet0/0/50 description UPLINK port link-type trunk port trunk allow-pass vlan all #port trunk permit vlan all #配置端口 interface GigabitEthernet0/0/1 description 简介内容 port link-type access port default vlan 10 #分配VLAN ID (也可以在三层vlan里面进行限速) qos lr outbound cir 102400 cbs 12800000 #二层限制服务器的流入流量100Mbps qos lr inbound cir 10240 cbs 1280000 #二层限制服务器的流出流量10Mbps #配置SNMP snmp-agent community read cipher Public_community snmp-agent sys-info version v2c undo snmp-agent sys-info version v3 #配置DHCP转发 DHCP Relay dhcp-server 1 ip 192.168.0.10
配置rsa免密码记录在 http://www.kvm.la/1161.html
Eth-Trunk汇聚模式
# interface Eth-Trunk99 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan all # interface GigabitEthernet0/0/50 eth-trunk 99 interface GigabitEthernet0/0/51 eth-trunk 99 interface GigabitEthernet0/0/53 eth-trunk 99
Ip-Trunk汇聚模式
interface Ip-Trunk1 ip address 192.168.0.1 255.255.255.252 interface Ip-Trunk2 ip address 10.10.10.1 255.255.255.252 # interface Pos5/0/0 link-protocol hdlc ip-trunk 1 interface Pos5/0/1 link-protocol hdlc ip-trunk 2 interface Pos6/0/0 link-protocol hdlc ip-trunk 1 interface Pos6/0/1 link-protocol hdlc ip-trunk 1 interface Pos6/0/2 link-protocol hdlc ip-trunk 2 interface Pos6/0/3 link-protocol hdlc ip-trunk 2