天天看點

華為交換機模拟器為什麼不能配置IP(或反)?如何在華為裝置上配置遠端管理裝置?如何儲存ENSP的配置

實驗:

1.配置IP

為什麼無法配置IP?

配置vlanif,完成和路由器的直連通信,然後遠端管理

[SW1]interface g0/0/10

[SW1-GigabitEthernet0/0/10]ip add

[SW1-GigabitEthernet0/0/10]ip address 10.1.1.254 24 //交換接口無法執行配置IP位址的指令,因為這是一個二層接口

[SW1]display interface g0/0/10 //驗證指令

GigabitEthernet0/0/10 current state : UP

Line protocol current state : UP

Description:

Switch Port,

真機可以支援2層接口轉換成3層接口

interface GigabitEthernet0/0/10

undo portswitch //2層接口變成3層接口,模拟器支援該指令,但沒有效果。反之亦然.如果想把路由接口變成2層接口也是如此,模拟器嘛,請不要大驚小怪

[SW1-GigabitEthernet0/0/10]ip add 10.1.1.254 24 //模拟器配置位址依舊報錯。在實體接口不能配置IP位址,但是可以使用vlan接口

非常不推薦把2層接口變為3層接口,會讓廣播域增加太多。推薦使用vlanif接口

[SW1]interface Vlanif 1

[SW1-Vlanif1]ip add

[SW1-Vlanif1]ip address 10.1.1.254 24

[SW1-Vlanif1]

Nov 7 2017 21:36:34-08:00 SW1 %%01IFNET/4/LINKSTATE(l)[0]:The line protocol IP on the interface Vlanif1 has entered the UP state

user-interface vty 0 4

set authentication password simple huawei123 //開啟遠端管理功能,設定了密碼

[SW1]clear configuration interface g0/0/10 //恢複接口的預設配置

Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/N] :y

Info: Total execute 0 command(s), 0 successful, 0 failed.

Router:

interface GigabitEthernet0/0/1

ip address 10.1.1.10 255.255.255.0 

遠端管理實施:

<R1>telnet 10.1.1.254

Press CTRL] to quit telnet mode

Trying 10.1.1.254 ...

Connected to 10.1.1.254 ...

Login authentication

Password:

Info: The max number of VTY users is 5, and the number

of current VTY users on line is 1.

The current login time is 2017-11-07 21:45:15.

<SW1>sy

<SW1>sy //暫時不能進入系統模式,權限不足

ENSP如何儲存配置,使得下次啟動時依舊還有配置

<SW3>save 

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y //在華為裝置儲存配置

然後點選ENSP的第四個按鍵“儲存”

確定萬無一失,在關閉ENSP時再儲存

本文轉自EnderJoe 51CTO部落格,原文連結:http://blog.51cto.com/enderjoe/2044140

繼續閱讀