华为AR2811配置脚本

华为AR28-11基本配置
#
sysname Quidway
#
super password level 3 simple admin   --设置super用户password,级别,密码显示方式(明文,密文)
#
cpu-usage cycle 1min
#
radius scheme system
#
domain system
#
local-user admin
password cipher .]@USE=B,53Q=^Q`MAF4<1!!
service-type telnet terminal
level 3
service-type ftp
#
dhcp server ip-pool 1                                           --建立DHCP服务器,设置相应IP地址池,网关,DNS等信息
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.1
dns-list    192.168.1.1
#
acl number 2000                                                     --创建标准ACL
rule 0 permit source 192.168.1.0 0.0.0.255           --允许192.168.1.0这个网段通过
rule 5 deny                                                             --拒绝其它地址通过
#
interface Aux0
async mode flow
#
interface Ethernet0/0                                            --指定外网IP地址,并做NAT地址转换,NAT转换规则根据
ip address 10.10.10.1 255.255.255.0                    标准ACL来实现
nat server protocol tcp global 10.10.10.1 8080 inside 192.168.1.88 8080  --对外映射相应的服务
nat outbound 2000
#
interface Ethernet0/1
ip address 192.168.1.1 255.255.255.0                --指定内网IP地址段
#
interface Serial0/0
clock DTECLK1
link-protocol ppp
ip address dhcp-alloc
#
interface NULL0
#
FTP server enable
#
ip route-static 0.0.0.0 0.0.0.0 10.10.10.5 preference 60   --创建默认路由,华为默认优先级为60
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
set authentication password simple admin          ---设置通过VTY登录认证方式及密码显示方式
return

猜你喜欢

转载自www.cnblogs.com/landv/p/10015915.html