华为交换机vlan配置举例_华为S5700系列配置实例
原標題:華為S5700系列配置實例
華為S5700系列配置
一、#telnet遠程登錄
步驟一:創建VLAN,并配置交換機VLAN的管理IP
# 創建vlan
system-view
[Quidway] vlan xxx (vlanID)
[Quidway-vlanID] quit
# 配置管理 IP
[Quidway] interface vlan ID
[Quidway-VlanifID] ip address 1223.111.7.103 255.255.255.192
[Quidway-VlanifID] quit
# 把端口加入vlan
[Quidway] int gigabitethernet 0/0/1 (上行口)
[Quidway-GigabitEthernet0/0/1] port hybrid untagged vlan 10 (0/0/1端口以untag方式加入vlan 10)
[Quidway-GigabitEthernet0/0/1] quit
步驟二:配置telnet用戶,登錄級別和認證方式. 在交換機上配置Telnet服務功能并使用AAA驗證方式登錄。
# password { simple | cipher }
# 如果使用simple選項,密碼將以明文形式保存在配置文件中。一般情況下,應使用cipher 選項將密碼加密保存,同時使用
# cipher選項后,無法從系統中取回,請妥善保管密碼。
system-view
[Quidway] aaa
[Quidway-aaa] local-user testadmin password cipher NC123!@# privilege level 15
[Quidway-aaa] local-user testadmin service-type telnet (設置用戶登錄方式為 telnet, 只能通過telnet方式登錄,還有這幾種 ssh http web) 一般不配置它。
[Quidway-aaa] quit
[Quidway] telnet server enable
[Quidway] user-interface vty 0 4
[Server-ui-vty0-4] user privilege level 15
[Quidway-vty0-4] authentication-mode aaa (設置認證方式為: aaa )
[Quidway-vty0-4] protocal inbound telnet
[Quidway-vty0-4] quit
步驟三:設置路由
[Quidway-vty0-4]ip route-static 0.0.0.0 0.0.0.0 223.111.7.65
基于VLAN的本地端口鏡像
配置思路
1、 將Ethernet0/0/20接口配置為觀察端口(監控端口)
2、 將VLAN 126、138、154、116、160、176配置為鏡像VLAN
配置步驟
1、 配置觀察端口
system-view
[Switch] observe-port 1 interface GigabitEthernet 0/0/20
2、 配置鏡像VLAN
#將VLAN 126、138、154、116、160配置為鏡像VLAN
[Switch] system-view
[Switch] vlan 126
[Switch-vlan126] mirroring to observer-port 1 inbound
[Switch] vlan 138
[Switch-vlan138] mirroring to observer-port 1 inbound
[Switch] vlan 154
[Switch-vlan154] mirroring to observer-port 1 inbound
[Switch] vlan 116
[Switch-vlan116] mirroring to observer-port 1 inbound
[Switch] vlan 160
[Switch-vlan160] mirroring to observer-port 1 inbound返回搜狐,查看更多
責任編輯:
總結
以上是生活随笔為你收集整理的华为交换机vlan配置举例_华为S5700系列配置实例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 精益思想的想法
- 下一篇: CC2541 内存区域