之前遇到一个D-Link设备,保存的时候Write不行,Save也不行,求助客服才知道,
用Switch# copy running-config startup -config 这个命令才能保存
Switch(config)#show running-config
!Current Configuration:
!
!System Description “DGS-3130-30S”//型号
!System Software Version “1.10.057”//版本
!System Up Time “0 days 0 hrs 2 mins 48 secs”//运行时间
!Current SNTP Synchronized Time: SNTP Client Mode Is Disabled**//当前SNTP同步时间:SNTP客户端模式已禁用**
!
member 1 5**//成员1 5**
configure terminal//全局配置模式
exit
no aaa new-model**//没有新型号**
vlan 20//创建VLAN20
exit
vlan 30
exit
line console**//线路控制台**
exit
line telnet
exit
line ssh
exit
interface ethernet 1/0/1 //进入端口1
switchport mode trunk**//修改端口模式**
switchport trunk native vlan 20 //把vlan20应用到端口
exit
interface ethernet 1/0/2
duplex full //全双工
speed 10giga //速度10千兆
exit
interface ethernet 1/0/3
duplex full
speed 10giga
switchport mode trunk
switchport trunk native vlan 20 //交换机端口中继本机vlan 20
switchport trunk allowed vlan 20,30 //交换机端口中继允许的vlan 20,30
exit
interface mgmt 0 //web登陆口
ip address 192.168.0.1 255.255.255.0
exit
interface vlan 1
ip address 10.1.1.1 255.0.0.0
exit
配置完成之后记得一定要保存
Switch# copy running-config startup -config