1.reset save 删除以前的配置
2.sysname配置交换机的名字
3.interface 接口 配置IP地址
4.info-center synchronous 日志同步
5.添加用户与密码(指定类型,级别,认证方式)
6.配置aux vty
6.划分vlan
7.将端口添加到vlan中
8.ip http enable 开启web管理
9.telnet server enable 开启telnet服务
10.ipmacbind IP地址 Mac地址 端口 vlan IP、MAC、端口、Vlan的邦定命定
11.ip route-static 192.168.2.0 255.255.255.0 192.168.1.2 添加静态路由
12.display ipmacbind 查看已邦定的IP、MAC、端口、vlan
新加坡交换机配置文件:
#
version 5.20, Release 2220P02
#
sysname singapore01
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
#
domain default enable system
#
password-recovery enable
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$lyg8rjIIKtEADPLLEW3Pr3tNDUP2eEzsQpJI90KHDA==
authorization-attribute level 3
service-type ssh telnet
service-type web
#
interface NULL0
#
interface Vlan-interface1
ip address 172.22.4.254 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
#
interface GigabitEthernet1/0/2
port link-mode bridge
#
interface GigabitEthernet1/0/3
port link-mode bridge
#
interface GigabitEthernet1/0/4
port link-mode bridge
#
interface GigabitEthernet1/0/5
port link-mode bridge
#
interface GigabitEthernet1/0/6
port link-mode bridge
#
interface GigabitEthernet1/0/7
port link-mode bridge
#
interface GigabitEthernet1/0/8
port link-mode bridge
#
interface GigabitEthernet1/0/9
port link-mode bridge
#
interface GigabitEthernet1/0/10
port link-mode bridge
#
interface GigabitEthernet1/0/11
port link-mode bridge
#
interface GigabitEthernet1/0/12
port link-mode bridge
#
interface GigabitEthernet1/0/13
port link-mode bridge
#
interface GigabitEthernet1/0/14
port link-mode bridge
#
interface GigabitEthernet1/0/15
port link-mode bridge
#
interface GigabitEthernet1/0/16
port link-mode bridge
#
interface GigabitEthernet1/0/17
port link-mode bridge
#
interface GigabitEthernet1/0/18
port link-mode bridge
#
interface GigabitEthernet1/0/19
port link-mode bridge
#
interface GigabitEthernet1/0/20
port link-mode bridge
#
interface GigabitEthernet1/0/21
port link-mode bridge
#
interface GigabitEthernet1/0/22
port link-mode bridge
#
interface GigabitEthernet1/0/23
port link-mode bridge
#
interface GigabitEthernet1/0/24
port link-mode bridge
#
interface GigabitEthernet1/0/25
port link-mode bridge
shutdown
#
interface GigabitEthernet1/0/26
port link-mode bridge
shutdown
#
interface GigabitEthernet1/0/27
port link-mode bridge
shutdown
#
interface GigabitEthernet1/0/28
port link-mode bridge
shutdown
#
info-center synchronous 日志同步
#
load xml-configuration
#
load tr069-configuration
#
user-interface aux 0
user-interface vty 0 15
user privilege level 3
set authentication password cipher $c$3$B4uJHlek6X5vAD+vCTuxAecYRnMN1ZPT37X2vlQkzg==
#