锐捷
Exit
End
copy running-config startup-config
del flash:config.text
erase startup-config
del flash:vlan.dat
Configure terminal
hostname switchA
banner motd &
enable secret level 1 0 star
enable secret level 15 0 star
enable services web-server
show running-config
show interface fastethernet 0/3
show interface serial 1/2
show interface
show ip interface brief
show ip interface
show version
show mac-address-table
show running-config
show vlan
show vlan id 10
show interface fastethernet 0/1
show aggregateport 1 summary
show spanning-tree
show spanning-tree interface fastethernet 0/1
show port-security
show port-security address
show ip access-lists listname
Interface fastethernet 0/3
interface range fa 0/1-2,0/5,0/7-9
speed 10
duplex full
no shutdown
switchport access vlan 10
switchport mode trunk
port-group 1
interface aggregateport 1
switchport mode trunk
int f0/23-24
port-group 1
spanning-tree
spanning-tree mst configuration
name ruijie
revision 1
instance 0 vlan 10,20
instance 1 vlan 30,40
spanning-tree mst 0 priority 4096
spanning-tree mst 1 priority 8192
interface vlan 10
vrrp 1 ip
interface vlan 20
vrrp 1 ip
interface vlan 30
vrrp 2 ip
interface vlan 40
vrrp 2 ip
vlan 10
name vlanname
switchport access vlan 10
interface vlan 10
ip address 192.168.1.1 255.255.255.0
no shutdown
interface fastethernet 0/1
switchport port-security
switchport port-secruity maxmum 1
switchport port-secruity violation shutdown
switchport port-security mac-address
ip routing
interface fastethernet 0/1
no switchport
ip address
no shutdown
ip route 172.16.1.0 255.255.255.0 172.16.2.1
router rip
network
version 2
no auto-summary
router ospf
router ospf 1
network 192.168.1.0 0.0.0.255 area 0