华为云服务器命令大全,华为云香港服务器

华为usg防火墙基本配置命令有哪些

步骤一.登陆缺省配置的防火墙并修改防火墙的名称

防火墙和路由器一样,有一个Console接口。使用console线缆将console接口和计算机的com口连接在一块。使用windows操作系统自带的超级终端软件,即可连接到防火墙。

防火墙的缺省配置中,包括了用户名和密码。其中用户名为admin、密码Admin@123,所以登录时需要输入用户名和密码信息,输入时注意区分大小写。

修改防火墙的名称的方法与修改路由器名称的方法一致。

另外需要注意的是,由于防火墙和路由器同样使用了VRP平台操作系统,所以在命令级别、命令帮助等,与路由器上相应操作相同。

<SRG>sys

13:47:28 2014/07/04

Enter system view, return user view withCtrl+Z.

[SRG]sysname FW

13:47:32 2014/07/04

步骤二.修改防火墙的时间和时区信息

默认情况下防火墙没有定义时区,系统保存的时间和实际时间可能不符。使用时应该根据实际的情况定义时间和时区信息。实验中我们将时区定义到东八区,并定义标准时间。

<FW>clock timezone 1 add 08:00:00

13:50:57 2014/07/04

<FW>dis clock

21:51:15 2014/07/03

2014-07-03 21:51:15

Thursday

Time Zone: 1 add 08:00:00

<FW>clock datetime 13:53:442014/07/04

21:53:29 2014/07/03

<FW>dis clock

13:54:04 2014/07/04

2014-07-04 13:54:04

Friday

Time Zone: 1 add 08:00:00

步骤三。修改防火墙登录标语信息

默认情况下,在登陆防火墙,登陆成功后有如下的标语信息。

Please Press ENTER.

Login authentication

Username:admin

Password:*********

NOTICE:This is a private communicationsystem.

Unauthorized access or use may lead to prosecution.

防火墙设备以此信息警告非授权的访问。

实际使用中,管理员可以根据需要修改默认的登陆标语信息。分为登录前提示信息和登陆成功后提示信息两种。

[FW]header login information ^

14:01:21 2014/07/04

Info: The banner text supports 220characters max, including the start and the en

d character.If you want to enter more thanthis, use banner file instead.

Input banner text, and quit with thecharacter'^':

Welcome to USG5500^

[FW]header shell information ^

14:02:54 2014/07/04

Info: The banner text supports 220characters max, including the start and the en

d character.If you want to enter more thanthis, use banner file instead.

Input banner text, and quit with thecharacter'^':

Welcome to USG5500

You are logining insystem Please do not delete system config files^

配置完成后,通过推出系统。然后重新登录,可以查看是否生效。

Please Press ENTER.

Welcome to USG5500

Login authentication

Username:admin

Password:*********

Welcome to USG5500

You are logining insystem Please do not delete system config files

NOTICE:This is a private communicationsystem.

Unauthorized access or use may lead to prosecution.

注意,默认达到NOTICE信息一般都会存在,不会消失或被代替。

步骤四.修改登陆防火墙的用户名和密码

防火墙默认使用的用户名admin。密码Admin@123。可以根据我们的需求进行修改。试验中我们新建一个用户,级别为level3.用户名为user1.密码:huawei@123.需要说明的是,默认情况下console接口登陆仅允许admin登陆。所以配置console接口登陆验证方式为aaa,才能确保新建的用户生效。在配置中,需要指定该配置的用户名的使用范围,本次实验中选择termianl,表示使用于通过console口登陆验证的凭据。

[FW]aaa

14:15:43 2014/07/04

[FW-aaa]local-user user1 pass

[FW-aaa]local-user user1 password cipherhuawei@123

14:16:08 2014/07/04

[FW-aaa]local-user user1 service-typeterminal

14:16:28 2014/07/04

[FW-aaa]local-user user1 level 3

14:16:38 2014/07/04

[FW-aaa]q

14:16:43 2014/07/04

[FW]user-interface console 0

14:16:57 2014/07/04

[FW-ui-console0]authentication-mode aaa

退出系统,测试新用户名和密码是否生效。

Please Press ENTER.

Welcome to USG5500

Login authentication

Username:user1

Password:**********

Welcome to USG5500

You are logining in system Please do notdelete system config files

NOTICE:This is a private communicationsystem.

Unauthorized access or use may lead to prosecution.

<FW>

步骤五.掌握查看、保存、和删除配置的方法。

在防火墙上使用命令查看运行的配置和已经保存的配置。其中使用display current-configuration命令查看运行配置,使用displaysaved-configuration命令查看已经保存的配置。

<FW>dis current-configuration

14:27:01 2014/07/04

#

stp region-configuration

region-name f0a7e2157008

active region-configuration

#

interface GigabitEthernet0/0/0

alias GE0/MGMT

ipaddress 192.168.0.1 255.255.255.0

dhcpselect interface

dhcpserver gateway-list 192.168.0.1

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

interface GigabitEthernet0/0/4

#

interface GigabitEthernet0/0/5

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface NULL0

alias NULL0

#

firewall zone local

setpriority 100

#

firewall zone trust

setpriority 85

addinterface GigabitEthernet0/0/0

#

firewall zone untrust

setpriority 5

#

firewall zone dmz

setpriority 50

#

aaa

local-user admin password cipher%$%$s$]c%^XV6(/|BaQ$[T;X"G>5%$%$

local-user admin service-type web terminaltelnet

local-user admin level 15

local-user user1 password cipher%$%$tY4Z:`xG0/G!1^C)2[48"%yp%$%$

local-user user1 service-type terminal

local-user user1 level 3

authentication-scheme default

#

authorization-scheme default

#

accounting-scheme default

#

domain default

#

#

nqa-jitter tag-version 1

#

header shell information"Welcome toUSG5500

You are logining in system Please do notdelete system config files"

header login information"Welcome toUSG5500"

banner enable

#

user-interface con 0

authentication-mode aaa

user-interface vty 0 4

authentication-mode none

protocol inbound all

#

slb

#

right-manager server-group

#

sysname FW

#

l2tpdomain suffix-separator@

#

firewall packet-filter default permitinterzone local trust direction inbound

firewall packet-filter default permitinterzone local trust direction outbound

firewall packet-filter default permitinterzone local untrust direction outbound

firewall packet-filter default permitinterzone local dmz direction outbound

#

ipdf-unreachables enable

#

firewall ipv6 session link-state check

firewall ipv6 statistic system enable

#

dnsresolve

#

firewall statistic system enable

#

pkiocsp response cache refresh interval 0

pkiocsp response cache number 0

#

undodns proxy

#

license-server domain lic.huawei.com

#

web-manager enable

#

return

保存配置,并查看以保存的配置信息。

<FW> sa

14:29:29 2014/07/04

The current configuration will be writtento the device.

Are you sure to continue?[Y/N]y

2014-07-04 14:29:31 FW%%01CFM/4/SAVE(l):When deciding whether to save configura

tion to the device, the user chose Y.

Do you want to synchronically save theconfiguration to the startup saved-configu

ration file on peer device?[Y/N]:y

Now saving the current configuration to thedevice...

Info:The current configuration was saved tothe device successfully.

<FW>dis saved-configuration

14:27:48 2014/07/04

# CLI_VERSION=V300R001

# Last configuration was changed at2014/07/04 13:56:09 from console0

#*****BEGIN****public****#

#

interface GigabitEthernet0/0/0

alias GE0/MGMT

ipaddress 192.168.0.1 255.255.255.0

dhcpselect interface

dhcpserver gateway-list 192.168.0.1

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

interface GigabitEthernet0/0/4

#

interface GigabitEthernet0/0/5

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface NULL0

alias NULL0

#

firewall zone local

setpriority 100

#

firewall zone trust

setpriority 85

addinterface GigabitEthernet0/0/0

#

firewall zone untrust

setpriority 5

#

firewall zone dmz

setpriority 50

#

aaa

local-user admin password cipher%$%$s$]c%^XV6(/|BaQ$[T;X"G>5%$%$

local-user admin service-type web terminaltelnet

local-useradmin level 15

authentication-scheme default

#

authorization-scheme default

#

accounting-scheme default

#

domain default

#

#

nqa-jitter tag-version 1

#

banner enable

#

user-interface con 0

authentication-mode none

user-interface vty 0 4

authentication-mode none

protocol inbound all

#

slb

#

right-manager server-group

#

sysname FW

#

l2tpdomain suffix-separator@

#

firewall packet-filter default permitinterzone local trust direction inbound

firewall packet-filter default permitinterzone local trust direction outbound

firewall packet-filter default permitinterzone local untrust direction outbound

firewall packet-filter default permitinterzone local dmz direction outbound

#

ipdf-unreachables enable

#

firewall ipv6 session link-state check

firewall ipv6 statistic system enable

#

dnsresolve

#

firewall statistic system enable

#

pkiocsp response cache refresh interval 0

pkiocsp response cache number 0

#

undodns proxy

#

license-server domain lic.huawei.com

#

web-manager enable

#

return

#-----END----#

使用delete Flash:/vrpcfg.zip命令删除保存的配置。

步骤六.配置接口地址

配置G0/0/1:10.0.2.1/24;G0/0/0:10.0.1.1/24;G0/0/2:10.0.3.1/24.

[FW] interface g0/0/2

16:12:58 2014/07/04

[FW-GigabitEthernet0/0/2]ip add 10.0.3.1 24

16:13:21 2014/07/04

[FW-GigabitEthernet0/0/2]interface g0/0/0

16:13:32 2014/07/04

[FW-GigabitEthernet0/0/0]undo ip add

16:14:02 2014/07/04

[FW-GigabitEthernet0/0/0]ip add 10.0.1.1 24

16:14:14 2014/07/04

[FW-GigabitEthernet0/0/0]interface g0/0/1

16:14:36 2014/07/04

[FW-GigabitEthernet0/0/1]ip add 10.0.2.1 24

16:14:50 2014/07/04

[FW-GigabitEthernet0/0/1]q

16:14:52 2014/07/04

[FW]

在交换机S1上配置接口G0/0/21属于vlan1、G0/0/22属于vlan2、G0/0/23属于vlan3.vlanif接口配置IP地址10.0.1.2/24、vlanif2接口配置IP地址10.0.2.2/24、vlanif3接口配置IP地址10.0.3.2/24。

[Huawei]sysname S1

[S1]vlan batch 2 3

[S1]interface g0/0/21

[S1-GigabitEthernet0/0/21]port link-typeaccess

[S1-GigabitEthernet0/0/21]port default vlan1

[S1-GigabitEthernet0/0/21]interface g0/0/22

[S1-GigabitEthernet0/0/22]port link-typeaccess

[S1-GigabitEthernet0/0/22]port default vlan2

[S1-GigabitEthernet0/0/22]interface g0/0/23

[S1-GigabitEthernet0/0/23]port link-typeaccess

[S1-GigabitEthernet0/0/23]port default vlan3

[S1-GigabitEthernet0/0/23]interface vlanif1

[S1-Vlanif1]ip add 10.0.1.2 24

[S1-Vlanif1]interface vlanif 2

[S1-Vlanif2]ip add 10.0.2.2 24

[S1-Vlanif2]interface vlanif 3

[S1-Vlanif3]ip add 10.0.3.2 24

将G0/0/0、G0/0/1、G0/0/2添加到trust区。在测试三口的连通性(在添加到trust区以前先确认这些端口不在untrust区)

[FW]firewall zone trust

16:39:40 2014/07/04

[FW-zone-trust]add interface g0/0/2

16:40:05 2014/07/04

[FW-zone-trust]add interface g0/0/3

16:41:59 2014/07/04

[FW-zone-trust]add interface g0/0/1

[FW-zone-trust]q

[S1]ping-c 1 10.0.1.1

PING 10.0.1.1: 56 data bytes,press CTRL_C to break

Reply from 10.0.1.1: bytes=56 Sequence=1 ttl=255 time=50 ms

---10.0.1.1 ping statistics---

1packet(s) transmitted

1packet(s) received

0.00% packet loss

round-trip min/avg/max= 50/50/50 ms

[S1]ping-c 1 10.0.2.1

PING 10.0.2.1: 56 data bytes,press CTRL_C to break

Reply from 10.0.2.1: bytes=56 Sequence=1 ttl=255 time=50 ms

---10.0.2.1 ping statistics---

1packet(s) transmitted

1packet(s) received

0.00% packet loss

round-trip min/avg/max= 50/50/50 ms

[S1]ping-c 1 10.0.3.1

PING 10.0.3.1: 56 data bytes,press CTRL_C to break

Reply from 10.0.3.1: bytes=56 Sequence=1 ttl=255 time=60 ms

---10.0.3.1 ping statistics---

1packet(s) transmitted

1packet(s) received

0.00% packet loss

round-trip min/avg/max= 60/60/60 ms

华为命令大全

A

aaa-client语音RADIUS命令 1-1

abr-summary(OSPF area view) OSPF命令 1-1

abr-summary(OSPFv3 area view) IPv6 OSPFv3命令 1-1

access-limit AAA RADIUS HWTACACS命令 1-1

accounting语音RADIUS命令 1-1

accounting default AAA RADIUS HWTACACS命令 1-2

accounting lan-access AAA RADIUS HWTACACS命令 1-3

accounting login AAA RADIUS HWTACACS命令 1-4

accounting optional AAA RADIUS HWTACACS命令 1-5

accounting portal AAA RADIUS HWTACACS命令 1-5

accounting ppp AAA RADIUS HWTACACS命令 1-6

accounting voip AAA RADIUS HWTACACS命令 1-7

accounting-did语音RADIUS命令 1-2

accounting-on enable AAA RADIUS HWTACACS命令 1-39

accounting-on enable interval AAA RADIUS HWTACACS命令 1-40

accounting-on enable send AAA RADIUS HWTACACS命令 1-41

acct-method语音RADIUS命令 1-3

acl ACL命令 1-4

acl copy ACL命令 1-6

acl ipv6 ACL命令 1-22

acl ipv6 copy ACL命令 1-24

acl ipv6 name ACL命令 1-25

acl name ACL命令 1-7

address VoIP命令 1-1

aggregate BGP命令 1-1

aging-time防火墙命令 1-9

ah authentication-algorithm IPSec命令 1-1

allow l2tp L2TP命令 1-1

ani E1命令 1-1

ani-offset E1命令 1-2

answer enable E1命令 1-2

apply as-path路由策略命令 1-1

apply comm-list delete路由策略命令 1-2

apply community路由策略命令 1-2

apply cost路由策略命令 1-3

apply cost-type路由策略命令 1-4

apply default output-interface IP单播策略路由命令 1-1

apply extcommunity路由策略命令 1-5

apply ip-address default next-hop IP单播策略路由命令 1-2

apply ip-address next-hop IP单播策略路由命令 1-2

apply ip-address next-hop路由策略命令 1-23

apply ip-precedence IP单播策略路由命令 1-3

apply ipv6 next-hop路由策略命令 1-29

apply isis路由策略命令 1-6

apply local-preference路由策略命令 1-6

apply origin路由策略命令 1-7

apply output-interface IP单播策略路由命令 1-4

apply preference路由策略命令 1-8

apply preferred-value路由策略命令 1-9

apply tag路由策略命令 1-9

area VoIP命令 1-2

area(OSPF view) OSPF命令 1-2

area(OSPFv3 view) IPv6 OSPFv3命令 1-2

area-authentication-mode IS-IS命令 1-1

area-id VoIP命令 1-3

area-id H.323命令 1-1

arp authorized enable ARP命令 1-12

arp authorized time-out ARP命令 1-13

arp check enable ARP命令 1-1

arp max-learning-num ARP命令 1-1

arp source-suppression enable ARP命令 1-10

arp source-suppression limit ARP命令 1-10

arp static ARP命令 1-2

arp timer aging ARP命令 1-3

asbr-summary OSPF命令 1-2

ascii文件系统管理命令 2-5

aspf-policy防火墙命令 1-11

attribute AAA RADIUS HWTACACS命令 1-8

attribute PKI命令 1-1

authentication语音RADIUS命令 1-4

authentication default AAA RADIUS HWTACACS命令 1-9

authentication lan-access AAA RADIUS HWTACACS命令 1-10

authentication login AAA RADIUS HWTACACS命令 1-11

authentication portal AAA RADIUS HWTACACS命令 1-12

authentication ppp AAA RADIUS HWTACACS命令 1-13

authentication voip AAA RADIUS HWTACACS命令 1-14

authentication-algorithm IPSec命令 2-1

authentication-did语音RADIUS命令 1-5

authentication-method IPSec命令 2-1

authentication-mode OSPF命令 1-4

authorization语音RADIUS命令 1-6

authorization command AAA RADIUS HWTACACS命令 1-14

authorization default AAA RADIUS HWTACACS命令 1-15

authorization lan-access AAA RADIUS HWTACACS命令 1-16

authorization login AAA RADIUS HWTACACS命令 1-17

authorization portal AAA RADIUS HWTACACS命令 1-18

authorization ppp AAA RADIUS HWTACACS命令 1-19

authorization voip AAA RADIUS HWTACACS命令 1-20

authorization-did语音RADIUS命令 1-6

auto-cost enable IS-IS命令 1-2

因为内容限制在9999字,字数超长,多余的命令请留下E-AIL地址,邮给你!

华为路由器配置命令大全

华为路由器是世界一流的品牌,很多人都不太明白里面的一些命令,下文是我为大家提供的华为路由器配置命令大全,欢迎大家阅读。

华为路由器配置命令大全

基本命令en进入特权模式conf进入全局配置模式in s0进入 serial 0端口配置ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx添加ip地址和掩码,电信分配enca hdlc/ppp捆绑链路协议 hdlc或者 pppip unn e0 exit回到全局配置模式in e0进入

基本命令

en进入特权模式

conf进入全局配置模式

in s0进入 serial 0端口配置

ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx添加ip地址和掩码,电信分配

enca hdlc/ppp捆绑链路协议 hdlc或者 ppp

ip unn e0

exit回到全局配置模式

in e0进入以太接口配置

ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx添加ip地址和掩码,电信分配

exit回到全局配置模式

ip route 0.0.0.0 0.0.0.0 s 0添加路由表

ena password口令

write

exit

以上根据中国电信 ddn专线多数情况应用

普通用户模式

enable转入特权用户模式

exit退出配置

help系统帮助简述

language语言模式切换

ping检查网络主机连接及主机是否可达

show显示系统运行信息

telnet远程登录功能

tracert跟踪到目的地经过了哪些路由器

特权用户模式

#

clear清除各项统计信息

clock管理系统时钟

configure进入全局配置模式

debug开启调试开关

disable返回普通用户模式

download下载新版本软件和配置文件

erase擦除FLASH中的配置

exec-timeout打开EXEC超时退出开关

exit退出配置

first-config设置或清除初次配置标志

help系统帮助简述

language语言模式切换

monitor打开用户屏幕调试信息输出开关

no关闭调试开关

ping检查网络主机连接及主机是否可达

reboot路由器重启

setup配置路由器参数

show显示系统运行信息

telnet远程登录功能

tracert跟踪到目的地经过了哪些路由器

unmonitor关闭用户屏幕调试信息输出开关

write将当前配置参数保存至FLASH MEM中

全局配置模式

aaa-enable使能配置AAA(认证,授权和计费)

access-list配置标准访问表

arp设置静态ARP人口

华为路由器的相关文章:

1.华为路由器怎么隐藏你的WIFI信号

2.如何解决华为路由器设置好了不能用

3.华为路由器设置wifi的详细方法

4.华为路由器详细介绍

5.华为无线路由器的设置方法

阅读剩余
THE END