Address
304 North Cardinal St.
Dorchester Center, MA 02124

Work Hours
Monday to Friday: 7AM - 7PM
Weekend: 10AM - 5PM

锐捷交换机基本配置

1、配置ip地址、子网掩码、默认网关

锐捷交换机通常需要将物理接口分配到一个 VLAN,并在对应的 VLAN 接口上配置 IP 地址。

#查看型号

show version

#进入特权模式

enable

#进入全局配置模式

configure terminal

#查看所有接口的状态

show interfaces status

#查看 GigabitEthernet 0/0 的详细信息

show interface GigabitEthernet 0/0

#创建 VLAN 接口

vlan 10

name VLAN10

exit

#将接口分配到 VLAN 10

interface GigabitEthernet 0/0

switchport access vlan 10

no shutdown

exit

#配置 VLAN 接口 IP 地址

interface Vlan 10

ip address 10.189.189.231 255.255.255.0

no shutdown

exit

#设置默认网关地址

ip route 0.0.0.0 0.0.0.0 10.189.189.1

exit

#保存配置

write memory

#查看接口状态

show ip interface brief

show ip route

ping 10.189.189.1

exit

#修改交换机名称

enable

configure terminal

hostname RG-S7800C

2、开启SSH远程连接

Device> enable

Device# configure terminal

Device(config)# enable service ssh-server

#添加本地管理员权限用户, 用户名为myuser 密码为4MGwu9iEww

username myuser privilege 15 secret 4MGwu9iEww

#在线路上开启本地用户认证

Device(config)# line vty 0 4

Device(config-line)# login local

exit

#保存配置

write memory

#查看信息

show ip ssh

show ssh

show users

#重启系统

reload

至此,锐捷交换机基本配置完成。