H3C常用配置命令


1、進入視圖模式。

    system-view

2、開啟Telnet並設置登陸密碼。

    2.1、telnet server enable

    2.2、user-interface vty 0 4

    2.3、authentication-mode password

      2.4、set authentication password simple 123456

      2.5、user privilege level 3

3、創建Vlan、刪除Vlan。

    3.1、Vlan 250  這就創建了Vlan250。

    3.2、Undo Vlan 250 這就刪除了Vlan250。

4、為交換機設置Telnet連接IP,刪除IP。

      4.1、先進入具體的Vlan中(拿Vlan250舉例)。

     interface vlan 250

   4.2、為其設置IP。

     ip address 192.168.1.250 255.255.255.0  也可這樣設置 p add 192.168.1.250 24

   4.3、刪除IP。

    undo ip address

5、端口加Vlan。

   5.1、先進入具體的端口中。

         int gig1/0/1

   5.2、通過port access命令將其加入到vlan中。

    port access vlan 250  這樣就將其加入到具體的vlan 250中了。

6、改變端口模式,普通口變trunk口。

   6.1、先進入具體的端口中。

    int gig1/0/24

   6.2、通過link-type 改變其模式。

    port link-type trunk

   6.3、然后通過permit 命令加在所有的vlan下。

    port trunk permit vlan all

7、trunk口變成普通口。

   7.1、先進入具體端口。

    int gig1/0/24

   7.2、通過access命令將其設置為普通口。

    port link-type access

8、保存命令。

   save

9、重啟交換機命令。

      reboot

10、恢復出廠設置。

   reset saved-configuration

11、常見錯誤:

  11.1、有時候你把一個新的交換機回復出廠設置的時候,他會默認為vlan 1帶一個IP(如192.168.1.101),而這個時候你又不想要這個ip,這個時候你會通過 undo ip address來刪除IP,哈哈,這個方法是刪除                  不了的,刪除方法如下。

      解決辦法:

            a)、先通過interface進入具體的Vlan 1 中。

        interface vlan 1

       b)、為其修改IP地址。

             ip address 192.168.1.111 24

       c)、通過undo再次刪除Vlan中的IP。

        undo ip add

       d)、刪除成功,然后你再進入其他的具體Vlan,為其設置IP地址即可。

        。。。。。。

 

End。    

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM