beautypg.com

H3C Technologies H3C S3100 Series Switches User Manual

Page 357

background image

5-13

# Create VLAN 101 through VLAN 104 and assign Ethernet 1/0/1 through Ethernet 1/0/3 to the four

VLANs respectively.

system-view

[SwitchA] vlan 101

[SwitchA-vlan101] port ethernet 1/0/1

[SwitchA-vlan101] quit

[SwitchA] vlan 102

[SwitchA-vlan102] port ethernet 1/0/2

[SwitchA-vlan102] quit

[SwitchA] vlan 103

[SwitchA-vlan103] port ethernet 1/0/3

[SwitchA-vlan103] quit

# Enable IPv6 multicast routing. Enable IPv6 PIM-DM on VLAN-interface 101 and VLAN-interface 103,

and enable MLD on VLAN-interface 103.

[SwitchA] multicast ipv6 routing-enable

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] pim ipv6 dm

[SwitchA-Vlan-interface101] quit

[SwitchA] interface vlan-interface 103

[SwitchA-Vlan-interface103] pim ipv6 dm

[SwitchA-Vlan-interface103] mld enable

[SwitchA-Vlan-interface103] quit

3) Configure Switch B

# Globally enable MLD snooping.

system-view

[SwitchB] mld-snooping

[SwitchB-mld-snooping] quit

# Create VLAN 103, assign Ethernet 1/0/1 through Ethernet 1/0/3 to this VLAN, and enable MLD

snooping in this VLAN.

[SwitchB] vlan 103

[SwitchB-vlan103] port ethernet 1/0/1 to ethernet 1/0/3

[SwitchB-vlan103] mld-snooping enable

[SwitchB-vlan103] quit

# Create a QoS profile profile1 and configure the QoS profile so that users can join or leave only one

IPv6 multicast group, FF1E::101.

[SwitchB] acl ipv6 number 2001

[SwitchB-acl6-basic-2001] rule permit source ff1e::101 128

[SwitchB-acl6-basic-2001] quit

[SwitchB] qos-profile profile1

[SwitchB-qos-profile-profile1] mld-snooping access-policy 2001

[SwitchB-qos-profile-profile1] quit

# Create a 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 2::1; set

the shared keys to 321123; specify that a username sent to the RADIUS server carry no domain name.

[SwitchB] radius scheme scheme1

[SwitchB-radius-scheme1] server-type extended

[SwitchB-radius-scheme1] primary authentication 2::1

[SwitchB-radius-scheme1] key authentication 321123