Use commands to quickly set up a Huawei Router

Source: Internet
Author: User

You can use a web page to log on to the vro and set it. I believe that every network administrator knows how to do this. However, in some cases, for security reasons, we disable Web page logon. In this case, we can only set it through the command line, this document uses a Huawei router as an example to describe how to configure a router using commands.

I,User Mode: when you enter the vrotelnet through a terminal or Telnet, the system prompts you to enter the password. After you enter the password, the vrotelnet enters the level 1st, that is, the user mode level. At this time, the system prompt is "> ". If the vro name is huawei2611, the prompt is "huawei2611> ". At this level, you can only view the basic status of the vro and cannot set the status.

II,Privileged mode: in user mode, enter "enable", and then enter the corresponding password to enter the 2nd-level privileged mode. The system prompt in privileged mode is "#". At this level, you can use the show and debug commands for configuration check. You cannot modify the vro configuration. to modify the vro configuration, you must enter the vro level 3rd.

Extends wei2611> enable

Password :*******

Huawei2611 #

III,Configuration Mode: In this mode, you can modify the configurations of A vro. In privileged mode, enter the command "config terminal" and the prompt is "(config) #". In this case, the user can modify the vro configuration, for example, to configure a vro's static route table, refer to the vro configuration document for detailed configuration commands.

Using wei2611 # config terminal

Huawei2611 (config )#

IV,Port Configuration Mode: first install the boot program from the ROM, then from the FLASH? To configure these ports, you must enter the port configuration mode. For example, to configure Ethernet port 0, run the interface ethernet0 command.

Using wei2611 (config) # interface ethernet0

Huawei2611 (config-int )#

V,The following is an example.

1. Define the name of the router Machine

If you want to define the name of the vro machine as huawei2611, run the following command:

Router> enable

Password :******

Router # config terminal

Router (config) # hostname? Huawei2611

2. Set the privileged mode password?

Enter the corresponding password after "enable" is entered during vro operations. To set the password, use the following command in configuration mode:

Router (config) # enable secret mypassword

To change the password to mypassword.

3. Configure Ethernet port information

In configuration mode, enter the following command:

Router (config) # interface ethernet? 0/0

Router (config-if) # ip address 202.102.224.25? 255.255.255.0

Router (config-if) # ip net inside

4. Configure the synchronization Port

Router (config) # interface serial 0/0

Router (config-if) # ip address 202.102.211.108 255.255.255.255.248

Router (config-if) # ip net outside

5. Add a static route

In this Internet access mode, a static route is used. Therefore, you must add a static route record with the following content:

Router (config) # ip router 0.0.0.0? 0.0.0.0 202.102.211.107

6. Other configurations

Router (config) # ip net inside source list 1 ethernet0/0 overload

Router (config) # access-list 1 permit any

There are two main ways to configure a vro. One is manual configuration. After Entering IOS, you can configure the vro through command line;

The other is to run the Setup program, which is an interactive configuration software provided by IOS. It is suitable for new users who are not familiar with IOS commands. After carefully studying IOS configuration commands, manual configuration can greatly improve the efficiency.

IOS has multiple levels of operations. Different commands are used at different levels, and the configuration work is different.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.