锐捷交换机基本配置命令
锐捷交换机,忘记colsole口的en密码,重启交换机,立即按ctrl+c,进入bootloader 菜单,再按ctrl+q,然后输入命令:main_config_password_clear,回车,即可进入交换机软件系统,不需要en密码,但重启后就会要求输入密码。用此种方式进入配置界面,更改密码。
hostname SW 更改设备名称为SW
=======================================
username adminhttp privilege 15 web-auth pwd-modify password asdsdff@2023 增加一个用户用于网页登录
enable service web-server http
enable service web-server https
webmaster level 0 username admin password ruijie@123
webmaster level 1 username adminhttp password asdsdff@2023
service dhcp 开启dhcp服务
=======================================
ip dhcp pool 1F
lease 0 0 40
network 172.16.101.0 255.255.255.0
dns-server 202.99.160.68 202.99.166.4
default-router 172.16.101.254
配置dhcp地址池的操作
vlan range 1,10,100-104 设置vlan
=======================================
interface GigabitEthernet 0/1
no switchport
ip address 10.10.10.3 255.255.255.0
设置端口为三层口,并配置ip地址
=======================================
interface GigabitEthernet 0/2
description 2F Zhuxian
switchport access vlan 102
端口加入vlan,端口描述
=======================================
interface VLAN 100
ip address 172.16.0.254 255.255.255.0
设置vlan虚拟接口,并配置ip地址
=======================================
ip route 0.0.0.0 0.0.0.0 10.10.10.1
设置静态路由
show vlan 显示vlan信息
show ip interface brief 显示端口IP地址信息
来源地址:https://blog.csdn.net/weixin_42027077/article/details/129066742