cisco交换机的配置命令
时间: 2023-05-26 07:06:52 浏览: 138
1. 设置主机名:hostname [name]
2. 设置接口IP地址:interface [interface-name] ip address [ip-address] [subnet-mask]
3. 开启接口:interface [interface-name] no shutdown
4. 启用SSH远程管理:ip domain-name [domain-name] crypto key generate rsa modulus [modulus-value] ip ssh version 2 line vty 0 15 transport input ssh login local
5. 设置vlan:vlan [vlan-id] name [vlan-name]
6. 切换vlan:interface [interface-name] switchport mode access switchport access vlan [vlan-id]
7. 设置默认网关:ip default-gateway [ip-address]
8. 开启端口镜像:monitor session [session-number] source interface [interface-name] destination interface [interface-name] encapsulation replicate
9. 配置静态路由:ip route [destination-network] [subnet-mask] [next-hop-address] [administrative-distance] [metric]
10. 设置密码:enable secret [password] username [username] password [password]
阅读全文