802.1x接入配置指南
- 格式:doc
- 大小:289.00 KB
- 文档页数:13
802.1x 接入配置指南一、Cisco 交换机的802.1x 接入配置采用CISCO 3560G 作为802.1x 接入设备,以EAP-MD5认证业务为例,IEEE 802.1x 认证配置。
组网:配置:Step 1 Enter Global configuration mode(进入全局模式)Switch>enablePassword: ciscoSwitch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#Step 2 Enable AAA(启用AAA)Switch(config)#aaa new-modelStep 3 Create IEEE 802.1x Authenticatin Method List(创建802.1x 认证方法列表)Switch(config)#aaa authentication dot1x default group radiusStep 4 Enable IEEE 802.1x authentication globally in the Switch (启用全局802.1x 认证)Switch(config)#dot1x system-auth-controlStep 5 (Optional) Configure the switch to use user-RADIUS authorization for all network-related service requests, such as per-user ACLs or VLAN assignment (创建授权网络列表)Switch(config)#aaa authorization network default group radiusStep 6 (Optional) Specify the IP address of the RADIUS server (配置radius 服务器信息包括配置配置radius 认证与计费共享密钥secospace )Switch(config)#radius-server host 172.18.100.236 auth-port 1812 acct-port 1813 keysecospaceStep 7 Enter interface configuration mode(进入接口配置模式,启用802.1x 接入功能) Switch(config)#interface gigabitEthernet 0/1Cisco 3560G 终端/* Set the port to access mode only if you configured the RADIUS server in Step 6 and Step 7 */Switch(config-if)#switchport mode access/* Enable IEEE 802.1x authentication on the port */Switch(config-if)#dot1x port-control autoStep 8 Return to privileged EXEC mode (返回特权模式)Switch(config-if)#endStep 9 V erify your entries(验证802.1x配置)Switch#show dot1xStep 10 (Optional) Save your entries in the configuration file (保存配置文件)Switch#copy running-config startup-configTo display IEEE 802.1x statistics for all ports (查看所有端口状态)Swtch#show dot1x all [details | statistics | summary]To display IEEE 802.1x statistics for a specific port(查看指定端口状态)Swtch#show dot1x interface <interface-id> [statistics | details][上行接口与Access口对接]!interface GigabitEthernet0/23switchport access vlan 10switchport mode accessspanning-tree portfast![上行接口与Trunk口对接]!interface GigabitEthernet0/24switchport trunk encapsulation dot1qswitchport mode trunk![终端接入端口配置]!interface GigabitEthernet0/1switchport access vlan 110switchport mode accessdot1x pae authenticatordot1x port-control autodot1x guest-vlan 200spanning-tree portfast![vlan 接口配置]!Vlan 10Name SecTSM!Vlan 110Name LocalArea!Vlan 120Name Island!Vlan 130Name WorkArea!Vlan 200Name CasualWard!interface Vlan10ip address 172.18.10.73 255.255.255.0!二、华为交换机的802.1x 接入配置采用Quidway S3900作为802.1x 接入设备,以EAP-MD5认证业务为例,IEEE 802.1x 认证配置。
组网:配置:Step 1 进入系统视图, <Quidway>< Quidway >system-viewSystem View: return to User View with Ctrl+Z.[Quidway]Step 2 启动802.1x 接入功能[Quidway]dot1x 802.1X is already enabled globally.[Quidway]dot1x authentication-method ?终端chap CHAP(Challenge Handshake Authentication Protocol) authenticationmethod.It's default.eap EAP(Extensible Authentication Protocol) authentication method(supporteap-tls, eap-md5, peap, eap-ttls)pap PAP(Password Authentication Protocol) authentication method [Quidway]dot1x authentication-method eapEAP authentication enabled already.[Quidway]Step 3 上行接口配置[上行与Trunk对接]#interface GigabitEthernet1/1/3port link-type trunkport trunk permit vlan alldescription Uplink-to-Intranet#[上行与Access接口对接]#interface Ethernet1/0/24port access vlan 10description Uplink-to-Intranet#Step 4 终端接入端口配置[基于端口]#interface Ethernet1/0/1port access vlan 110dot1x port-control autodot1x port-method portbaseddot1x guest-vlan 200dot1x#[基于MAC]#interface Ethernet1/0/3port access vlan 110dot1x port-control autodot1x port-method macbaseddot1x#Step 5 vlan接口配置#vlan 10name SecTSM#vlan 110name LocalArea#vlan 120name Island#vlan 130name WorkArea#interface Vlan-interface10ip address 172.18.10.74 255.255.255.0 #Step 6 RADIUS方案配置[计费可用]#radius scheme systemprimary authentication 172.18.10.240 1812accounting optionalkey authentication secospace#domain systemscheme radius-scheme systemauthentication radius-scheme systemauthorization noneaccounting none#[计费必选]#radius scheme systemserver-type standardprimary authentication 172.18.10.240 1812primary accounting 172.18.10.2240 1813key authentication secospacekey accounting numenuser-name-format without-domain#domain systemscheme radius-scheme systemauthentication radius-scheme systemaccounting radius-scheme systemauthorization none# 三、H3C 交换机的802.1x 接入配置采用Quidway S3600作为802.1x 接入设备,以EAP-MD5认证业务为例,IEEE 802.1x 认证配置。
组网:配置: Step 1 进入系统视图, <Quidway>< Quidway >system-viewSystem View: return to User View with Ctrl+Z.[Quidway]Step 2 启动802.1x 接入功能[Quidway]dot1x 802.1X is already enabled globally.[Quidway]dot1x authentication-method ?chap CHAP(Challenge Handshake Authentication Protocol) authenticationmethod.It's default.eap EAP(Extensible Authentication Protocol) authentication method(supporteap-tls, eap-md5, peap, eap-ttls)pap PAP(Password Authentication Protocol) authentication method[Quidway]dot1x authentication-method eapEAP authentication enabled already. [Quidway]Step 3 上行接口配置 [上行与Trunk 口对接]#interface GigabitEthernet1/1/3port link-type trunkport trunk permit vlan alldescription Uplink-to-Intranet#[上行与Access 口对接]# H3C S3600 终端interface Ethernet1/0/24port access vlan 10description Uplink-to-Intranet#Step 4 终端接入端口配置[基于端口]#interface Ethernet1/0/1port access vlan 110dot1x port-control autodot1x port-method portbaseddot1x guest-vlan 200dot1x#[基于MAC]#interface Ethernet1/0/3port access vlan 110dot1x port-control autodot1x port-method macbaseddot1x#Step 5 vlan接口配置#vlan 10name SecTSM#vlan 110name LocalArea#vlan 120name Island#vlan 130name WorkArea#interface Vlan-interface10ip address 172.18.10.72 255.255.255.0 #Step 6 RADIUS方案配置[计费可用]#radius scheme systemprimary authentication 172.18.10.240 1812accounting optionalkey authentication secospace#domain systemscheme radius-scheme systemauthentication radius-scheme systemauthorization noneaccounting none#[计费必选]# radius scheme systemserver-type standardprimary authentication 172.18.10.240 1812primary accounting 172.18.10.2240 1813 key authentication secospacekey accounting numenuser-name-format without-domain#domain systemscheme radius-scheme systemauthentication radius-scheme systemaccounting radius-scheme systemauthorization none# 四、中兴交换机的802.1x 接入配置采用ZXR10 3928作为802.1x 接入设备,以EAP-MD5认证业务为例,IEEE 802.1x 认证配置。