当前位置:网站首页>Basic configuration commands of cisco switches (what is the save command of Huawei switches)
Basic configuration commands of cisco switches (what is the save command of Huawei switches)
2022-08-01 10:11:00 【Full stack programmer webmaster】
大家好,又见面了,我是你们的朋友全栈君.
一、调试命令
思科:
Switch#show run Displays all configuration commands
Switch#show ip inter brief Displays the status of all interfaces
Switch#show vlan brief 显示所有VLAN的信息
Switch#show version 显示版本信息华为:
[Quidway]dis cur Displays all configuration commands
[Quidway]display interfaces Displays the status of all interfaces
[Quidway]display vlan all 显示所有VLAN的信息
[Quidway]display version 显示版本信息二、接口配置命令
思科:
Switch(config)#interface f0/1 进入接口视图
Switch(config-if)#no shut This command brings up the interface
Switch(config-if)#description to server01 端口描述
Switch(config-if)#ip add 192.168.0.100 255.255.255.0 设置接口IP华为:
[Quidway]interface e0/1 进入接口视图
[Quidway]undo shutdown This command brings up the interface
[Quidway]description to server02 端口描述
[Quidway]ip add 192.168.0.102 255.255.255.0 设置接口IP三、VLAN配置命令:
思科:
建立和删除VLAN
Switch# vlan database
Switch(vlan)# vlan 20 name test20
Switch(vlan)# no vlan 20
Switch(vlan)# exit
将端口分配给一个VLAN
Switch(config)# interface f0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20
设置VLAN TRUNK
Switch(config)# interface f0/24
Switch(config-if)# switchport mode trunk
Switch(config-if)#switchport trunk allow vlan {ID|All}
Switch(config-if)# switchport trunk encapsulation dot1q华为:
建立和删除VLAN
[Quidway]vlan 30
[Quidway]undo vlan 30
将端口分配给一个VLAN
[Quidway]int ethernet0/1
[Quidway-Ethernet0/1]port access vlan 30( port default vlan 30)
或[Quidway]vlan 30
[Quidway-vlan3]port ethernet 0/1 在VLAN中增加端口
[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 在VLANAdd multiple consecutive ports to the
设置VLAN TRUNK
[Quidway]int e0/24
[Quidway-Ethernet0/24] port link-type trunk
[Quidway-Ethernet0/24]port trunk permit vlan {
ID|All}四、端口镜像配置
思科:
配置镜像源端口
Switch(config)#monitor session 1 source interface gigabitEthernet 0/2 - 5 rx
The last parameter of the above command:
both Monitor bidirectional data,默认为both
rx 接收
tx 发送
配置镜像目的端口
Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6
删除镜像端口
Switch(config)#no monitor session 1华为:
将端口E0/2Configured to monitor the port
[Quidway]monitor-port Ethernet 0/2
端口E0/1配置为镜像端口
[Quidway]port mirror Ethernet 0/1
Or directly configure the monitoring port and mirroring port
[Quidway]port mirror Ethernet 0/1 observing-port Ethernet 0/2
删除镜像[Quidway]undo monitor-port五、Set up secure remote access
Cisco Settingsvty安全访问:
R1(config)# access-list 1 permit 192.168.0.5
R1(config)# line vty 0 4
R1(config)# access-class 1 in华为设置vty安全访问:
[Quidway]acl number 2000
rule 1 permit source 172.168.0.150 0
rule 2 deny
[Quidway]user-interface vty 0 4
acl 2000 inbound六、NTP配置
思科:
Cisco6509#show clock 显示时间
Cisco6509#clock set 14:00:00 30 Sep 2011 设置时间
Cisco6509(config)#ntp server 202.198.0.102 Settings are synchronized with other time servers
Cisco6509(config)#clock timezone beijing +8 设置时区华为:
[Quidway]dis clock 显示时间
[Quidway]clock datetime 23:30:00 2011/11/16 设置时间
[Quidway]ntp-service unicast-server 202.198.0.102 Settings are synchronized with other time servers
[Quidway]clock timezone E8 add 08:00:00 设置时区七、静态路由配置
思科:
ip route <目的网段> <目的网段掩码><下一跳>
Cisco6509# ip route 0.0.0.0 0.0.0.0 10.1.1.2 静态路由
Cisco6509#ip route 0.0.0.0 0.0.0.0 192.168.0.1 150 The administrative distance of the floating static route is 150华为:
[Quidway] ip route-static 0.0.0.0 0.0.0.0 10.65.1.2
[Quidway]ip route-static 0.0.0.0 0.0.0.0 192.168.0.1 preference 150发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/126979.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢

基于CAP组件实现补偿事务与消息幂等性

node 格式化时间的传统做法与高级做法(moment)

redis

IntellJ IDEA如何显示换行符(line endings)

Custom Types - Enums, Unions

AI篮球裁判火了,走步算得特别准,就问哈登慌不慌

Batch大小不一定是2的n次幂!ML资深学者最新结论

How to Steal $100 Million from the Perfect Smart Contract

7. SAP ABAP OData 服务如何支持 $orderby (排序)操作

Visualization - Superset installation and deployment
随机推荐
CTO强烈禁止使用Calendar,那用啥?
What are the common API security flaws?
CTFshow,命令执行:web31
Custom Types - Enums, Unions
VS“无法查找或打开PDB文件”是怎么回事?如何解决
笔记。。。。
STM32个人笔记-程序跑飞
Dataset之mpg:mpg数据集的简介、下载、使用方法之详细攻略
Endorsed in 2022 years inventory | product base, science and technology, guangzhou automobile group striding forward
Drawing arrows of WPF screenshot control (5) "Imitation WeChat"
Explain / Desc execution plan analysis
如何解决 chrome 浏览器标签过多无法查看到标题的情况
notes....
[Cloud Residency Co-Creation] Huawei Cloud Global Scheduling Technology and Practice of Distributed Technology
ASP.NET Core 6 Framework Revealing Instance Demonstration [30]: Develop REST API with Routing
对于小应用来讲,使用哪款数据库比较好?
retired paddling
CTFshow,命令执行:web37
CTFshow,命令执行:web34、35、36
Glassmorphism design style