华为交换机ensp基础命令
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                华为交换机ensp基础命令
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                華為交換機ensp基礎(chǔ)命令
具體參考華為官方ensp文檔。
一、ip地址
(先給vlan設(shè)ip,然后吧vlan綁定到端口上)
二、VLAN配置
三、單臂路由
vlan batch 2 to 3 int *** //進入交換機一個連接pc的接口 port link-type access port default vlan 2 int *** //進入交換機另一個連接pc的接口 port link-type access port default vlan 3 int *** //進入交換機與路由器相鄰的接口 port link-type trunk port trunk allow-pass vlan 2 to 4094四、路由一個接口配置多個Ip
(常和單臂路由同時用)
int gi 0/0/0.1 dot1q termination vid 2 //一個虛擬端口綁定設(shè)定的一個vlan ip address *** arp broadcast enable int gi 0/0/0.2 dot1q termination vid 3 ip address arp broadcast enable五、靜態(tài)路由和默認路由
ip route-static ****(不能直連的網(wǎng)段地址) ***(子網(wǎng)掩碼) ***(該條路徑下一跳地址) ip route-static ****(不能直連的網(wǎng)段地址) ***(子網(wǎng)掩碼) ***(該條路徑下一跳地址) preference 100(優(yōu)先級)六、動態(tài)路由
七、Telnet登錄并設(shè)置密碼(要先給端口設(shè)置ip地址)
八、ACL
- 拒絕ping:
- 拒絕ftp:
- 拒絕www:
九、GRE
int tunnel 0/0/0 //創(chuàng)建隧道 tunnel-protocol gre source ***(源ip) destination***(目的ip) ip address ***(隧道ip)#配置基于GRE的路由協(xié)議,即連接隧道網(wǎng)段和源、目的網(wǎng)段 rip 1 version network 192.168.10.0 (源/目網(wǎng)段) network 172.16.0.0 (隧道網(wǎng)段)十、展示當前信息
1. display this #查看當前配置過的命令2. display current-configuration #查看所有配置 (簡寫 *dis cu* )3. display ip interface brief #查看接口的ip4. display interface brief #查看接口配置信息5. display ip routing-table #查看路由表6. display mac-address #查看MAC表7. display arp #查看ARP表8. display ospf peer brief #查看ospf鄰居關(guān)系9. display interface Eth-Trunk #查看鏈路聚合狀態(tài)10. display clock #查看系統(tǒng)當前時間11. display saved-configuration #顯示保存的配置文件12.display port vlan #查看當前配置的vlan13. display acl 2000/all #查看當前配置的acl14.display interface tunnel #查看隧道接口狀態(tài)15.display ip routing-table protocol static 僅查看靜態(tài)路由的路由信息十一、取消之前的配置
1.undo ip address #取消ip 2.undo port link-type #取消配置的端口類型 3.undo termination monitor #關(guān)閉泛洪信息總結(jié)
以上是生活随笔為你收集整理的华为交换机ensp基础命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 代码 生成迅雷链接启动迅雷下载
- 下一篇: PBRT v3看完了
