华为s5720-48交换机配置 dis cu !SoftwareVersionV200R010C00SPC600 # sysname S572048 # vlanbatch10100 # authentication-profile namedefault_authen_profile authentication-profilenamedotlx_authen_profile authentication-profile name mac_authen_profile authentication-profilenameportal_authen_profile authentication-profilename dotlxmac_authen_profile authentication-profile namemulti_authen_profile #
dhcp enable # radius-servertemplate default # free-rule-template name default_free_rule # portal-access-profile name portal_access_profile # aaa authentication-scheme default authentication-schemeradius authentication-moderadius authorization-schemedefault accounting-scheme default local-aaa-user password policy administrator
password expire0 domain default authentication-schemeradius radius-server default domain default_admin authentication-schemedefault local-user admin password irreversible-cipher$1a$M%I/M!PQFR$]| [KXug2w.)5"e-~fH_[$]}]3²XTO.hbs6 )tj$$ local-user admin privilege level 15 local-user admin service-type terminal http # interfaceVlanif1 # interfaceVlanif10 ip address 192.168.10.254 255.255.255.0 dhcp select relay
dhcp relay server-ip 192.168.0.1 # interfaceVlanif100 ip address 192.168.0.254 255.255.255.0 dhcpselectinterface dhcp select relay dhcp relay server-ip 192.168.0.1 # interfaceGigabitEtherneto/0/1 port link-type trunk port trunk allow-pass vlan 10 100 # interfaceGigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 100
interfaceGigabitEthernet0/0/3 port link-type access port default vlan10 # interfaceGigabitEthernet0/0/4 port link-type access port default vlan 10 interfaceGigabitEthernet0/0/5 port link-type access port default vlan10 # interfaceGigabitEthernet0/0/6 port link-type access