This section provides an example for configuring Ethernet Layer 3 leased line access.
On the network shown in Figure 1, the networking requirements are as follows:
An Ethernet Layer 3 leased line user accesses the Internet through GE 0/1/6.1 on the router.
The username is layer3lease1@isp1 for the leased line.
The network segment for the Layer 3 leased line user is 11.11.11.0/24.
RADIUS authentication and RADIUS accounting are used. The IP address of the RADIUS server is 192.168.8.249. The authentication port number is 1812 and the accounting port number is 1813. The RADIUS+1.1 protocol is adopted. The shared key is Huawei.
The network-side interface is GE 0/1/1.
The configuration roadmap is as follows:
Configure authentication and accounting schemes.
Configure a RADIUS server group.
Configure an authentication domain.
Configure a VLAN and an IP address for a sub-interface.
Configure a BAS interface and an upstream interface.
Configure a static route.
To complete the configuration, you need the following data:
Authentication template name and authentication mode
Accounting template name and accounting mode
RADIUS server group name, and IP addresses and port numbers of the RADIUS authentication server and accounting server
Gateway and DNS server addresses
Domain name
VLAN ID and IP address of the sub-interface
BAS interface parameters
Static route
<HUAWEI> system-view [~HUAWEI] aaa [~HUAWEI-aaa] authentication-scheme auth1 [*HUAWEI-aaa-authen-auth1] authentication-mode radius [*HUAWEI-aaa-authen-auth1] commit [~HUAWEI-aaa-authen-auth1] quit
[~HUAWEI-aaa] accounting-scheme acct1 [*HUAWEI-aaa-accounting-acct1] accounting-mode radius [*HUAWEI-aaa-accounting-acct1] commit [~HUAWEI-aaa-accounting-acct1] quit [~HUAWEI-aaa] quit
[~HUAWEI] radius-server group rd1 [*HUAWEI-radius-rd1] radius-server authentication 192.168.8.249 1812 [*HUAWEI-radius-rd1] radius-server accounting 192.168.8.249 1813 [*HUAWEI-radius-rd1] commit [~HUAWEI-radius-rd1] radius-server type plus11 [*HUAWEI-radius-rd1] radius-server shared-key Huawei [*HUAWEI-radius-rd1] commit [~HUAWEI-radius-rd1] quit
[~HUAWEI] aaa [~HUAWEI-aaa] domain isp1 [*HUAWEI-aaa-domain-isp1] authentication-scheme auth1 [*HUAWEI-aaa-domain-isp1] accounting-scheme acct1 [*HUAWEI-aaa-domain-isp1] radius-server group rd1 [*HUAWEI-aaa-domain-isp1] commit [~HUAWEI-aaa-domain-isp1] quit [~HUAWEI-aaa]quit
# Configure a VLAN.
[~HUAWEI] interface GigabitEthernet 0/1/6.1 [*HUAWEI-GigabitEthernet0/1/6.1] commit [~HUAWEI-GigabitEthernet0/1/6.1] control-vid 1 dot1q-termination [*HUAWEI-GigabitEthernet0/1/6.1] dot1q termination vid 3
[*HUAWEI-GigabitEthernet0/1/6.1] ip address 192.168.1.1 255.255.255.0 [*HUAWEI-GigabitEthernet0/1/6.1] commit
[~HUAWEI-GigabitEthernet0/1/6.1] bas [~HUAWEI-GigabitEthernet0/1/6.1-bas] access-type layer3-leased-line user-name layer3lease1 password cipher root@123 default-domain authentication isp1 [*HUAWEI-Virtual-Ethernet0/1/6.1-bas] commit [~HUAWEI-GigabitEthernet0/1/6.1-bas] quit [~HUAWEI-GigabitEthernet0/1/6.1] quit
[~HUAWEI] ip route-static 11.11.11.0 255.255.255.0 192.168.1.2 [*HUAWEI] commit
# sysname HUAWEI # radius-server group rd1 radius-server shared-key-cipher %^%#`E)v.Q@BHVzxxZ;ij{>&_M0!TGP7YRA@8a7mq<\/%^%# radius-server authentication 192.168.8.249 1812 weight 0 radius-server accounting 192.168.8.249 1813 weight 0 radius-server type plus11 # aaa # authentication-scheme auth1 # accounting-scheme acct1 # domain default0 # domain default1 # domain default_admin # domain isp1 authentication-scheme auth1 accounting-scheme acct1 radius-server group rd1 # interface GigabitEthernet0/1/6 undo shutdown # interface GigabitEthernet0/1/6.1 ip address 192.168.1.1 255.255.255.0 encapsulation dot1q-termination dot1q termination vid 3 bas # access-type layer3-leased-line user-name layer3lease1 password cipher %^%#4*RHO=w*}.d\>j09'Z:%=:co~p\w9'G-^|-zR'N4%^%# default-domain authentication isp1 # # ip route-static 11.11.11.0 255.255.255.0 192.168.1.2 # return