分享
 
 
 

华为5200怎么配置?

王朝知道·作者佚名  2010-09-23
窄屏简体版  字體: |||超大  
 
分類: 電腦/網絡 >> 硬件
 
參考答案:

说明:因为没有DHCP SERVER和WEB server,所以都是本地DHCP的,WEB SERVER用本地的,不过不影响大家学习,把地址改一下就行了。

1端口默认为web方式,可以接入web,RADIUS认证,地址段172.16.0.1/24

2端口fast认证,本地认证,地址段172.16.1.1/24

3端口绑定认证,本地认证,地址段172.16.2.1/24

4端口接入静态用户,本地认证,地址段172.16.3.1/24

5端口接入pppoe、dot1x用户,radius认证,地址段172.16.4.1/24(pppoe),172.16.5.1/24(1x)

6端口接入二层专线用户,本地认证,地址段172.16.6.1/24

7端口本来想接入三层专线的,后改到12端口了,这个端口的数据没用。

8端口接入PPPOE专线用户(但由于没有环境,所以数据没有配置完,这个就不要看了)

9端口接入PNP用户,RADIUS认证,地址段172.16.7.1/24

11端口接入VPN用户,RADIUS+LNS二次认证(只有数据,没有环境做测试),地址段172.16.8.1/24

12端口为三层用户接入端口,接入三层专线和三层WEB认证,地址段172.17.0.1/24(三层专线),地址段172.17.1.1/24(三层认证)

[MA5200F]display cu

#

version 7123

sysname MA5200F

#

system language-mode english

#

FTP server enable

#

l2tp enable

#

radius-server group default

radius-server group huawei

radius-server authentication 10.164.47.171 1812

radius-server accounting 10.164.47.171 1813

radius-server group login

#

web-server

directory flash:/web/

default-page /index.html

#

info-center timestamp debugging date

undo trap-statistics 70f2000

undo trap-statistics 70f2001

undo trap-statistics 70f2002

undo trap-statistics 70f2003

undo trap-statistics 70f2004

undo trap-statistics 70f2005

undo trap-statistics 70f2008

undo trap-statistics 70f2009

undo trap-statistics 70f200c

undo trap-statistics 70f200d

undo trap-statistics 70f200e

undo trap-statistics 70f200f

undo trap-statistics 70f2017

undo trap-statistics 70f2018

undo trap-statistics 70f201a

undo trap-statistics 70f201b

undo trap-statistics 70f201c

undo trap-statistics 70f201d

undo trap-statistics 7032000

undo trap-statistics 7032001

undo trap-statistics 7032002

#

login local-user aaa

login local-user ma5200 password simple ma5200

login local-user ma5200 service-type ftp

login local-user ma5200 ftp-directory flash:/

#

interface Ethernet1

#

interface Ethernet2

#

interface Ethernet3

#

interface Ethernet4

#

interface Ethernet5

pppoe-server bind Virtual-Template 1

#

interface Ethernet6

#

interface Ethernet6.1

ip address 172.17.6.1 255.255.255.0

#

interface Ethernet7

#

interface Ethernet8

#

interface Ethernet8.0

#

interface Ethernet9

#

interface Ethernet10

#

interface Ethernet11

pppoe-server bind Virtual-Template 1

#

interface Ethernet12

#

interface Ethernet12.0

ip address 192.168.1.1 255.255.255.252

#

interface Ethernet13

#

interface Ethernet14

#

interface Ethernet15

#

interface Ethernet16

#

interface Ethernet17

#

interface Ethernet18

#

interface Ethernet19

#

interface Ethernet20

#

interface Ethernet21

#

interface Ethernet22

#

interface Ethernet23

#

interface Ethernet24

#

interface Virtual-Template1

#

interface Pos25

flag c2 0 j0 0 j1

#

interface Pos26

flag c2 0 j0 0 j1

#

interface Pos27

flag c2 0 j0 0 j1

#

interface Pos28

ppp authentication-mode none

peer default ip address 192.168.0.1

ip address 192.168.0.1 255.255.255.252

#

interface NULL0

#

interface LoopBack0

#

interface Nm-Ethernet0

ip address 10.164.47.20 255.255.255.0

#

acl number 101 match-order auto

rule 0 user-net deny ip source 100

#

l2tp-group 1

tunnel name Huawei-ma5200f

start l2tp ip 10.164.47.22

#

ip pool bind local

gateway 172.16.2.1 255.255.255.0

section 0 172.16.2.2 172.16.2.254

#

ip pool dot1x local

gateway 172.16.5.1 255.255.255.0

section 0 172.16.5.2 172.16.5.254

#

ip pool fast local

gateway 172.16.1.1 255.255.255.0

section 0 172.16.1.2 172.16.1.254

#

ip pool l2lease local

gateway 172.16.6.1 255.255.255.0

section 0 172.16.6.2 172.16.6.254

#

ip pool pnp local

gateway 172.16.7.1 255.255.255.0

section 0 172.16.7.2 172.16.7.254

#

ip pool pppoe local

gateway 172.16.4.1 255.255.255.0

section 0 172.16.4.2 172.16.4.254

#

ip pool pppoelease remote

gateway 172.18.0.1 255.255.255.0

#

ip pool static local

gateway 172.16.3.1 255.255.255.0

section 0 172.16.3.2 172.16.3.254

excluded-ip-address 172.16.3.2 172.16.3.254

#

ip pool vpn local

gateway 172.16.8.1 255.255.255.0

section 0 172.16.8.2 172.16.8.254

#

ip pool web local

gateway 172.16.0.1 255.255.255.0

section 0 172.16.0.2 172.16.0.254

#

dot1x-template 1

#

aaa

authentication-scheme local

authentication-mode local

authentication-scheme radius

accounting-scheme radius

accounting-scheme local

accounting-mode local

domain default0

web-server 127.0.0.1

ucl-group 100

ip-pool web

ip-pool fast

domain web

authentication-scheme radius

accounting-scheme radius

radius-server group huawei

ip-pool web

domain fast

authentication-scheme local

accounting-scheme local

ip-pool fast

domain bind

authentication-scheme local

accounting-scheme local

ip-pool bind

domain static

authentication-scheme local

accounting-scheme local

ip-pool static

domain pppoe

authentication-scheme radius

accounting-scheme radius

radius-server group huawei

ip-pool pppoe

domain dot1x

authentication-scheme radius

accounting-scheme radius

radius-server group huawei

eap-end chap

ip-pool dot1x

domain pnp

authentication-scheme local

accounting-scheme local

ip-pool pnp

domain vpn

authentication-scheme local

accounting-scheme local

ip-pool vpn

l2tp-group 1

domain l2lease

authentication-scheme local

accounting-scheme local

ip-pool l2lease

domain l3lease

authentication-scheme local

accounting-scheme local

domain pppoelease

authentication-scheme radius

accounting-scheme radius

radius-server group huawei

ip-pool pppoelease

domain l3

authentication-scheme radius

accounting-scheme radius

radius-server group huawei

web-server 127.0.0.1

#

local-aaa-server

batch-user ethernet 3 1 10 domain bind

batch-user ethernet 3 1 10 domain bind authentication-type A

batch-user ethernet 2 1 10 domain fast

batch-user ethernet 2 1 10 domain fast authentication-type A

batch-user ethernet 6 1 10 domain l2lease

batch-user ethernet 6 1 10 domain l2lease authentication-type A

batch-user ethernet 7 1 10 domain l3lease

batch-user ethernet 7 1 10 domain l3lease authentication-type A

batch-user ethernet 12 0 1 domain l3lease

batch-user ethernet 12 0 1 domain l3lease authentication-type A

batch-user ethernet 4 1 10 domain static

batch-user ethernet 4 1 10 domain static authentication-type A

#

cluster

ip-pool 172.0.0.1 255.255.255.0

build MA5200F

add-member 1 mac-address 00e0-fc0c-f252

#

ip route-static 0.0.0.0 0.0.0.0 192.168.0.2

ip route-static 10.0.0.0 255.0.0.0 10.164.47.1

ip route-static 172.17.0.0 255.255.252.0 192.168.1.2

ip route-static 172.17.1.0 255.255.255.0 192.168.1.2

#

access-group 101

#

user-interface con 0

user-interface vty 0 4

authentication-mode none

user privilege level 3

set authentication password simple 5200

idle-timeout 0 0

#

layer3-subscriber 172.17.0.2 172.17.0.100 domain-name l3lease

layer3-subscriber 172.17.1.2 172.17.1.100 domain-name l3

portvlan ethernet 1 vlan 1 10

access-type layer2-subscriber

default-domain authentication web

authentication-method pppoe dot1x web

portvlan ethernet 1 vlan 100 1

access-type relay-leased-line outport ethernet 12 200

portvlan ethernet 2 vlan 1 10

access-type layer2-subscriber

default-domain authentication fast

authentication-method fast

portvlan ethernet 3 vlan 1 10

access-type layer2-subscriber

default-domain authentication bind

authentication-method bind

portvlan ethernet 4 vlan 1 1

access-type layer2-subscriber

default-domain authentication bind

authentication-method bind

static-user 172.16.3.2 172.16.3.10 domain-name static detec

portvlan ethernet 5 vlan 1 10

access-type layer2-subscriber

default-domain authentication pppoe

authentication-method pppoe dot1x

portvlan ethernet 6 vlan 1 10

access-type vlan-leased-line default-domain pre-authentication l2lease

portvlan ethernet 7 vlan 1 10

access-type vlan-leased-line default-domain pre-authentication l3lease

portvlan ethernet 8 vlan 1 10

access-type pppoe-leased-line

default-domain authentication pppoelease

portvlan ethernet 9 vlan 1 10

access-type layer2-subscriber

authentication-method web

pnp

portvlan ethernet 10 vlan 1 10

access-type layer3-subscriber

default-domain authentication l3

portvlan ethernet 11 vlan 1 10

access-type layer2-subscriber

default-domain authentication vpn

authentication-method pppoe

portvlan ethernet 12 vlan 0 1

access-type layer3-subscriber

default-domain authentication l3

portvlan ethernet 13 vlan 0 2

access-type system-reserved

小贴士:① 若网友所发内容与教科书相悖,请以教科书为准;② 若网友所发内容与科学常识、官方权威机构相悖,请以后者为准;③ 若网友所发内容不正确或者违背公序良俗,右下举报/纠错。
 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有