91
# Create RADIUS scheme
scheme1
; set the service type for the RADIUS server to
extended
; specify
the IP addresses of the primary authentication/authorization server and accounting server as 3::1;
set the shared keys to 123321; specify that no domain name is carried in a username sent to the
RADIUS server.
[SwitchA] radius scheme scheme1
[SwitchA-radius-scheme1] server-type extended
[SwitchA-radius-scheme1] primary authentication 3::1
[SwitchA-radius-scheme1] key authentication 123321
[SwitchA-radius-scheme1] primary accounting 3::1
[SwitchA-radius-scheme1] key accounting 123321
[SwitchA-radius-scheme1] user-name-format without-domain
[SwitchA-radius-scheme1] quit
# Create an ISP domain
domain1
; reference
scheme1
for the authentication, authorization, and
accounting for LAN users; specify
domain1
as the default ISP domain.
[SwitchA] domain domain1
[SwitchA-isp-domian1] authentication lan-access radius-scheme scheme1
[SwitchA-isp-domian1] authorization lan-access radius-scheme scheme1
[SwitchA-isp-domian1] accounting lan-access radius-scheme scheme1
[SwitchA-isp-domian1] quit
[SwitchA] domain default enable domain1
# Globally enable 802.1X and then enable it on Ethernet 1/0/1 and Ethernet 1/0/2.
[SwitchA] dot1x
[SwitchA] interface ethernet 1/0/1
[SwitchA-Ethernet1/0/1] dot1x
[SwitchA-Ethernet1/0/1] quit
[SwitchA] interface ethernet 1/0/2
[SwitchA-Ethernet1/0/2] dot1x
[SwitchA-Ethernet1/0/2] quit
3.
Configure Switch B:
# Globally enable MLD snooping.
<SwitchB> system-view
[SwitchB] mld-snooping
[SwitchB-mld-snooping] quit
# Create VLAN 104, assign Ethernet 1/0/1 through Ethernet 1/0/3 to this VLAN, and enable
MLD snooping in this VLAN.
[SwitchB] vlan 104
[SwitchB-vlan104] port ethernet 1/0/1 to ethernet 1/0/3
[SwitchB-vlan104] mld-snooping enable
[SwitchB-vlan104] quit
# Create a user profile
profile2
and configure the user profile so that users can join or leave only
one IPv6 multicast group, FF1E::101. Then, enable the user profile.
[SwitchB] acl ipv6 number 2001
[SwitchB-acl6-basic-2001] rule permit source ff1e::101 128
[SwitchB-acl6-basic-2001] quit
[SwitchB] user-profile profile2
[SwitchB-user-profile-profile2] mld-snooping access-policy 2001
[SwitchB-user-profile-profile2] quit