S5120V2配置如下:
version 7.1.070, Release 6308P01
#
sysname CoreSW
#
clock timezone utc add 08:00:00
clock protocol none
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
dhcp snooping enable
#
dns server 61.139.2.69
#
mirroring-group 1 local
#
lldp global enable
#
password-recovery enable
#
vlan 1
#
vlan 10
#
vlan 20
#
vlan 100
#
interface NULL0
#
interface Vlan-interface1
ip address dhcp-alloc
dhcp client identifier ascii a4fa7664ffc9-VLAN0001
#
interface Vlan-interface10
dhcp server apply ip-pool vlan10
dhcp client-detect
#
interface Vlan-interface100
ip address 10.10.10.2 255.255.255.128
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
mirroring-group 1 mirroring-port both
#
interface GigabitEthernet1/0/2
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
mirroring-group 1 mirroring-port inbound
#
interface GigabitEthernet1/0/3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
mirroring-group 1 mirroring-port inbound
#
interface GigabitEthernet1/0/4
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
mirroring-group 1 mirroring-port inbound
#
interface GigabitEthernet1/0/5
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
mirroring-group 1 mirroring-port inbound
#
interface GigabitEthernet1/0/6
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
#
interface GigabitEthernet1/0/7
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
#
interface GigabitEthernet1/0/8
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
#
interface GigabitEthernet1/0/9
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/10
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/11
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/12
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/13
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/14
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/15
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/16
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/17
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/18
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/19
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/20
port access vlan 20
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/21
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/22
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/23
port access vlan 10
mirroring-group 1 monitor-port
loopback-detection enable vlan 1 to 4094
#
interface GigabitEthernet1/0/24
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 20 100
dhcp snooping trust
#
interface GigabitEthernet1/0/25
#
interface GigabitEthernet1/0/26
#
interface GigabitEthernet1/0/27
#
interface GigabitEthernet1/0/28
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
authentication-mode scheme
user-role network-admin
#
line vty 0
authentication-mode scheme
user-role level-15
user-role network-admin
user-role network-operator
protocol inbound telnet
#
line vty 1 63
user-role network-operator
#
ip route-static 0.0.0.0 0 10.10.10.1
#
ntp-service enable
ntp-service unicast-server ***.***
#
radius scheme system
user-name-format without-domain
#
domain system
#
domain default enable system
暂无评论