前言不说,直接上配置了。
配置本地用户,开启SSH:
ssh server enable local-user admin class manage password simple your_password service-type ssh terminal authorization-attribute user-role network-admin line vty 0 4 authentication-mode scheme user-role network-operator
启用DHCP:
dhcp enable dhcp server forbidden-ip 10.45.63.254 dhcp server ip-pool 63 gateway-list 10.45.63.254 10.45.163.254 network 10.45.63.0 mask 255.255.255.0 dns-list 202.96.199.133 202.96.199.132 expired day 10 network 10.45.163.0 mask 255.255.255.0 secondary
interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/2
port access vlan 263
interface Vlan-interface263 description BanGong ip address 10.45.63.254 255.255.255.0 ip address 10.45.163.254 255.255.255.0 sub dhcp server apply ip-pool 63
链路聚合(桥接模式):
interface Bridge-Aggregation1 description To:KSHF-10F-POE port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4094 link-aggregation mode dynamic interface GigabitEthernet1/0/5 port link-mode bridge description To:SW-10F-POE_G1/0/23 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4094 port link-aggregation group 1 interface GigabitEthernet1/0/6 port link-mode bridge description To:SW-10F-POE_G1/0/24 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4094 port link-aggregation group 1
对端:
interface Bridge-Aggregation1 description To:KSHF-10F-SW port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4094 link-aggregation mode dynamic interface GigabitEthernet1/0/23 description To:SW-10F-CORE_G1/0/5 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4094 port link-aggregation group 1 interface GigabitEthernet1/0/24 description To:SW-10F-CORE_G1/0/6 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4094 port link-aggregation group 1