| 
 | 
 
 楼主 |
发表于 2025-3-18 09:08
|
显示全部楼层
 
 
 
 本帖最后由 merlot82 于 2025-3-18 09:14 编辑  
 
 
[S6520]dis current-configuration 
version 7.1.070, Release 6628P48 
sysname S6520 
clock timezone Lisbon add 00:00:00 
clock protocol none 
irf mac-address persistent timer 
irf auto-update enable 
undo irf link-delay 
irf member 1 priority 1 
dhcp enable 
lldp global enable 
password-recovery enable 
vlan 1 
vlan 50 
vlan 100 
mdns relay enable 
mdns relay source ip 172.22.22.254 
//节省画面 vlan100-800都是一样的 
stp port-log instance 0 to 4094 
stp port-log vlan 1 to 4094 
stp global enable 
dhcp server ip-pool 20 
gateway-list 172.20.20.254 
network 172.20.20.0 mask 255.255.255.0 
address range 172.20.20.21 172.20.20.199 
dns-list 172.22.22.22 
netbios-type b-node 
dhcp server ip-pool 30 
gateway-list 172.20.30.254 
network 172.20.30.0 mask 255.255.255.0 
address range 172.20.30.21 172.20.30.199 
//节省画面,dns pool 也都是一样的 
netbios-type b-node 
interface NULL0 
interface LoopBack0 
interface Vlan-interface1 
ip address dhcp-alloc 
interface Vlan-interface100 
ip address 172.20.10.254 255.255.255.0 
interface Vlan-interface200 
ip address 172.20.20.254 255.255.255.0 
dhcp server apply ip-pool 20 
interface Vlan-interface222 
ip address 172.22.22.254 255.255.255.0 
interface Vlan-interface300 
ip address 172.20.30.254 255.255.255.0 
dhcp server apply ip-pool 30 
interface Vlan-interface400 
ip address 172.20.40.254 255.255.255.0 
dhcp server apply ip-pool 40 
interface Vlan-interface500 
ip address 172.20.50.254 255.255.255.0 
dhcp server apply ip-pool 50 
interface Vlan-interface600 
ip address 172.20.60.254 255.255.255.0 
dhcp server apply ip-pool 60 
interface Vlan-interface700 
ip address 172.20.70.254 255.255.255.0 
dhcp server apply ip-pool 70 
interface Vlan-interface800 
ip address 172.20.80.254 255.255.255.0 
dhcp server apply ip-pool 80 
interface M-GigabitEthernet0/0/0 
ip address dhcp-alloc 
undo dhcp select server 
interface Ten-GigabitEthernet1/0/1 
port link-mode bridge 
port link-type trunk 
port trunk permit vlan all 
//24个端口也都是一样的 
interface Ten-GigabitEthernet1/0/24 
port link-mode bridge 
port link-type trunk 
port trunk permit vlan all 
scheduler logfile size 16 
line class aux 
user-role network-admin 
line class usb 
user-role network-admin 
line class vty 
user-role network-operator 
line aux 0 
user-role network-admin 
line vty 0 4 
authentication-mode scheme 
user-role network-operator 
protocol inbound ssh 
line vty 5 63 
user-role network-operator 
ssh server enable 
sftp server enable 
sftp server idle-timeout 60 
scp server enable 
radius scheme system 
user-name-format without-domain 
domain system 
authentication login local 
authorization login local 
authentication lan-access local 
authorization lan-access local 
accounting lan-access none 
domain default enable system 
role name level-0 
description Predefined level-0 role 
... 
role name level-14 
description Predefined level-14 role 
user-group system 
local-user admin class manage 
password hash $h$6$T1PhRP8D71aAPDOs$Mf22Z+fwmbyn4Sw6bCZiodC7A1HKeGQEbnYIheD1ZpR/urQIsdxM/hnNau5gAGY7IUVbwoVSlkdOjE53Av0F3A== 
service-type http https 
authorization-attribute user-role network-admin 
authorization-attribute user-role network-operator 
local-user gs class manage 
password hash $h$6$ME2IY8nmWKiCljqN$ikwPuOElYKu0ARBPoKwvPE/FAVNRFFcaTYnQaijxc6BZbePTLBPBEp0CSGkD7RXP7F8yxOtmZ/WQgXHFuUu2rQ== 
service-type http https ssh 
authorization-attribute user-role network-admin 
authorization-attribute user-role network-operator 
local-user gs class network 
password cipher $c$3$Jo6aDZvuV4gGgE6aMWJEJV/M9LfqzYxvSulW8Q== 
bind-attribute location interface M-GigabitEthernet0/0/0 
authorization-attribute idle-cut 120 
authorization-attribute user-role network-operator 
security-enhanced level 1 
undo ssl renegotiation disable 
undo ssl version ssl3.0 disable 
undo ssl version tls1.0 disable 
undo ssl version tls1.1 disable 
ip http enable 
ip https enable 
web idle-timeout 600 
mdns relay gateway ip 172.22.22.254 
cloud-management server domain oasis.h3c.com 
return 
[S6520] 
 
 
现在不同vlan下的电脑都可以ping通,比如172.20.30.234到172.20.80.23。只是vlan200作为管理vlan,每台交换机都配置了vlanif200,在交换机上172.20.20.X可以互相ping通,如果PC接在vlan200的access口,也是可以ping通交换机的;但是如果是pc机走的其他vlan,比如vlan400,IP地址是172.20.40.22,可以ping通其他的172.20.x.x,就是ping不通交换机的vlanif200。 |   
 
 
 
 |