On the network as shown in Figure 1, the NetEngine 8000 F connects to a NodeB through a switch to aggregate and transmit service packets from the NodeB. Most NodeBs are placed in unattended equipment rooms (NodeBs of different carriers may be placed in the same equipment room). Therefore, security measures must be taken to control access to the mobile bearer network. NodeBs are required to send 802.1X packets to verify their validity when accessing the network. Only authenticated NodeBs are allowed to access the network. In addition, MAC-based access control is required.
The configuration roadmap is as follows:
To configure 802.1X authentication, you need the following data:
<HUAWEI> system-view [~HUAWEI] dot1x-template 10 [*HUAWEI-dot1x-template-10] quit
# Configure a RADIUS server group named shiva.
[~HUAWEI] radius-server group shiva
# Configure the IP address and port number for a RADIUS server.
[*HUAWEI-radius-shiva] radius-server authentication 10.7.66.66 1812 [*HUAWEI-radius-shiva] quit
# Configure authentication scheme 1, with the RADIUS authentication mode.
[~HUAWEI-aaa] authentication-scheme 1 [*HUAWEI-aaa-authen-1] authentication-mode radius [*HUAWEI-aaa-authen-1] quit
# Configure accounting scheme 1, with the none accounting mode.
[~HUAWEI-aaa] accounting-scheme 1 [*HUAWEI-aaa-accounting-1] accounting-mode none [*HUAWEI-aaa-accounting-1] quit
[~HUAWEI-aaa] domain huawei [*HUAWEI-aaa-domain-huawei] authentication-scheme 1 [*HUAWEI-aaa-domain-huawei] accounting-scheme 1 [*HUAWEI-aaa-domain-huawei] radius-server group shiva [*HUAWEI-aaa-domain-huawei] dot1x-template 10 [*HUAWEI-aaa-domain-huawei] quit [~HUAWEI-aaa] quit
[~HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] dot1x enable [*HUAWEI-GigabitEthernet0/1/1] dot1x max-user 1 [*HUAWEI-GigabitEthernet0/1/1] dot1x force-domain huawei [*HUAWEI-GigabitEthernet0/1/1] dot1x port-method mac [*HUAWEI-GigabitEthernet0/1/1] dot1x port-control auto [*HUAWEI-GigabitEthernet0/1/1] quit
[~HUAWEI] display dot1x interface GigabitEthernet 0/1/1 GigabitEthernet0/1/1 Dot1x authentication: enable Port control method: mac Port control type: auto Max user num: 1 Forced-domain:huawei Port current status: authorized Port current access user num: 1
NetEngine 8000 F configuration file
#
system-view
dot1x-template 10
#
radius-server group shiva
radius-server authentication 10.7.66.66 1812 weight 0
#
aaa
authentication-scheme 1
accounting-scheme 1
accounting-mode none
#
domain huawei
authentication-scheme 1
accounting-scheme 1
radius-server group shiva
dot1x-template 10
#
interface GigabitEthernet0/1/1
undo shutdown
dot1x enable
dot1x force-domain huawei
dot1x max-user 1
#
return