亚洲欧美精品沙发,日韩在线精品视频,亚洲Av每日更新在线观看,亚洲国产另类一区在线5

<pre id="hdphd"></pre>

  • <div id="hdphd"><small id="hdphd"></small></div>
      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 網(wǎng)絡(luò)知識 > 路由器 > 路由器設(shè)置 > cisco思科 > Cisco路由器交換機防火墻配置命令詳解

      Cisco路由器交換機防火墻配置命令詳解

      時間: 修斌645 分享

      Cisco路由器交換機防火墻配置命令詳解

        cisco思科公司是全球領(lǐng)先的網(wǎng)絡(luò)解決方案供應(yīng)商,其出產(chǎn)的設(shè)備配置起來也跟別的不太一樣,下面是Cisco路由器交換機防火墻配置命令詳解,希望對你有所幫助。

        Cisco路由器交換機防火墻配置命令詳解

        1、交換機支持的命令

        交換機基本狀態(tài)

        switch: ;ROM狀態(tài), 路由器是rommon>

        hostname> ;用戶模式

        hostname# ;特權(quán)模式

        hostname(config)# ;全局配置模式

        hostname(config-if)# ;接口狀態(tài)

        交換機口令設(shè)置

        switch>enable ;進入特權(quán)模式

        switch#config terminal ;進入全局配置模式

        switch(config)#hostname ;設(shè)置交換機的主機名

        switch(config)#enable secret xxx ;設(shè)置特權(quán)加密口令

        switch(config)#enable password xxa ;設(shè)置特權(quán)非密口令

        switch(config)#line console 0 ;進入控制臺口

        switch(config-line)#line vty 0 4 ;進入虛擬終端

        switch(config-line)#login ;允許登錄

        switch(config-line)#password xx ;設(shè)置登錄口令xx

        switch#exit ;返回命令

        交換機VLAN設(shè)置

        switch#vlan database ;進入VLAN設(shè)置

        switch(vlan)#vlan 2 ;建VLAN 2

        switch(vlan)#no vlan 2 ;刪vlan 2

        switch(config)#int f0/1 ;進入端口1

        switch(config-if)#switchport access vlan 2 ;當前端口加入vlan 2

        switch(config-if)#switchport mode trunk ;設(shè)置為干線

        switch(config-if)#switchport trunk allowed vlan 1,2 ;設(shè)置允許的vlan

        switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan 中繼

        switch(config)#vtp domain ;設(shè)置發(fā)vtp域名

        switch(config)#vtp password ;設(shè)置發(fā)vtp密碼

        switch(config)#vtp mode server ;設(shè)置發(fā)vtp模式

        switch(config)#vtp mode client ;設(shè)置發(fā)vtp模式

        交換機設(shè)置IP地址

        switch(config)#inte***ce vlan 1 ;進入vlan 1

        switch(config-if)#ip address ;設(shè)置IP地址

        switch(config)#ip default-gateway ;設(shè)置默認網(wǎng)關(guān)

        switch#dir flash: ;查看閃存

        交換機顯示命令

        switch#write ;保存配置信息

        switch#show vtp ;查看vtp配置信息

        switch#show run ;查看當前配置信息

        switch#show vlan ;查看vlan配置信息

        switch#show inte***ce ;查看端口信息

        switch#show int f0/0 ;查看指定端口信息

        2. 路由器支持的命令

        路由器顯示命令

        router#show run ;顯示配置信息

        router#show inte***ce ;顯示接口信息

        router#show ip route ;顯示路由信息

        router#show cdp nei ;顯示鄰居信息

        router#reload;重新起動

      186663