S1
hostname S1
!
spanning-tree mode rstp
spanning-tree mst 0 priority 4096
spanning-tree
!
no cwmp
!
service dhcp
!
ip dhcp pool pool_AP
option 138 ip 11.1.0.204 11.1.0.205
network 172.17.10.0 255.255.255.0
default-router 172.17.10.254
!
ip dhcp pool pool_vlan20
network 172.17.20.0 255.255.255.0
default-router 172.17.20.254
!
install 0 S5760C-48GT4XS-X
!
sysmac 1082.3d95.fbfb
!
webmaster level 0 username admin secret 8 $1c$7eyy23uMQk$p(<$!rr8`xvr#.xdnp0d||d$|jn*2zx2jjjh|2:h$
enable service web-server http
enable service web-server https
!
nfpp
!
password policy printable-character-check
password policy min-size 8
password policy strong
service password-encryption
!
redundancy
!
no storage lifetime set
!
no enable service snmp-agent
ip ssh key-exchange dh_group_exchange_sha1 dh_group14_sha1 ecdh_sha2_nistp256 ecdh_sha2_nistp384 ecdh_sha2_nistp521
ip ssh cipher-mode ctr gcm
ip ssh hmac-algorithm sha2-256 sha2-512
!
login privilege log
enable secret 8 $1c$7eyy23uMQk$p(<$!rr8`xvr#.xdnp0d||d$|jn*2zx2jjjh|2:h$
no enable service telnet-server
!
vlan range 1,10,20,30,100
!
interface GigabitEthernet 0/1
no switchport
ip address 10.1.0.29 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/2
no switchport
ip address 10.1.0.33 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/3
switchport mode trunk
switchport trunk native vlan 100
switchport trunk allowed vlan only 10,20,30,100
!
interface GigabitEthernet 0/4
no switchport
ip address 10.1.0.1 255.255.255.252
!
interface GigabitEthernet 0/5
!
interface GigabitEthernet 0/6
!
interface GigabitEthernet 0/7
!
interface GigabitEthernet 0/8
!
interface GigabitEthernet 0/9
!
interface GigabitEthernet 0/10
!
interface GigabitEthernet 0/11
!
interface GigabitEthernet 0/12
!
interface GigabitEthernet 0/13
!
interface GigabitEthernet 0/14
!
interface GigabitEthernet 0/15
!
interface GigabitEthernet 0/16
!
interface GigabitEthernet 0/17
!
interface GigabitEthernet 0/18
!
interface GigabitEthernet 0/19
!
interface GigabitEthernet 0/20
!
interface GigabitEthernet 0/21
!
interface GigabitEthernet 0/22
!
interface GigabitEthernet 0/23
no switchport
ip address 10.1.0.13 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/24
no switchport
ip address 10.1.0.17 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/25
!
interface GigabitEthernet 0/26
!
interface GigabitEthernet 0/27
!
interface GigabitEthernet 0/28
!
interface GigabitEthernet 0/29
!
interface GigabitEthernet 0/30
!
interface GigabitEthernet 0/31
!
interface GigabitEthernet 0/32
!
interface GigabitEthernet 0/33
!
interface GigabitEthernet 0/34
!
interface GigabitEthernet 0/35
!
interface GigabitEthernet 0/36
!
interface GigabitEthernet 0/37
!
interface GigabitEthernet 0/38
!
interface GigabitEthernet 0/39
!
interface GigabitEthernet 0/40
!
interface GigabitEthernet 0/41
!
interface GigabitEthernet 0/42
!
interface GigabitEthernet 0/43
!
interface GigabitEthernet 0/44
!
interface GigabitEthernet 0/45
!
interface GigabitEthernet 0/46
!
interface GigabitEthernet 0/47
!
interface GigabitEthernet 0/48
!
interface TenGigabitEthernet 0/49
!
interface TenGigabitEthernet 0/50
!
interface TenGigabitEthernet 0/51
!
interface TenGigabitEthernet 0/52
!
interface Loopback 11
ip address 11.1.0.11 255.255.255.255
!
interface Loopback 12
ip address 11.1.0.12 255.255.255.255
!
interface VLAN 1
!
interface VLAN 10
ip address 172.17.10.254 255.255.255.0
vrrp 10 ip 172.17.10.254
vrrp 10 priority 150
!
interface VLAN 20
ip address 172.17.20.254 255.255.255.0
vrrp 20 ip 172.17.20.254
vrrp 20 priority 150
!
interface VLAN 30
ip address 172.17.30.254 255.255.255.0
vrrp 30 ip 172.17.30.254
vrrp 30 priority 150
!
interface VLAN 100
ip address 172.17.100.254 255.255.255.0
vrrp 100 ip 172.17.100.254
vrrp 100 priority 150
!
interface Mgmt 0
ip address mix dhcp
ip address mix 192.168.1.200 255.255.255.0
!
router bgp 200
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
neighbor 10.1.0.2 remote-as 100
neighbor 10.1.0.2 update-source GigabitEthernet 0/4
neighbor 11.1.0.21 remote-as 200
neighbor 11.1.0.21 update-source Loopback 11
neighbor 11.1.0.22 remote-as 200
neighbor 11.1.0.22 update-source Loopback 12
address-family ipv4
network 11.1.0.204 mask 255.255.255.255
network 11.1.0.205 mask 255.255.255.255
neighbor 10.1.0.2 activate
neighbor 10.1.0.2 default-originate
neighbor 11.1.0.21 activate
neighbor 11.1.0.22 activate
exit-address-family
!
router ospf 11
router-id 11.1.0.11
graceful-restart
redistribute bgp metric 10 subnets
network 10.1.0.12 0.0.0.3 area 0
network 10.1.0.28 0.0.0.3 area 0
network 11.1.0.11 0.0.0.0 area 0
network 172.17.10.0 0.0.0.255 area 0
network 172.17.20.0 0.0.0.255 area 0
network 172.17.30.0 0.0.0.255 area 0
network 172.17.100.0 0.0.0.255 area 0
default-information originate always metric-type 1
!
router ospf 12
router-id 11.1.0.12
graceful-restart
redistribute bgp metric 10 subnets
network 10.1.0.16 0.0.0.3 area 0
network 10.1.0.32 0.0.0.3 area 0
network 11.1.0.12 0.0.0.0 area 0
default-information originate
!
ip route 0.0.0.0 0.0.0.0 172.17.100.3
!
snmp-server logging set-operation
no snmp-server enable version v1
no snmp-server enable version v2c
snmp-server enable version v3
snmp-server enable secret-dictionary-check
!
line console 0
exec-timeout 0 0
line vty 0 4
login
!
end
S2
hostname S2
!
spanning-tree mode rstp
spanning-tree mst 0 priority 8192
spanning-tree
!
no cwmp
!
install 0 S5760C-48GT4XS-X
!
sysmac 1082.3d95.fc0a
!
webmaster level 0 username admin secret 8 $1c$7eyy23uMQk$p(<$!rr8`xvr#.xdnp0d||d$|jn*2zx2jjjh|2:h$
enable service web-server http
enable service web-server https
!
nfpp
!
password policy printable-character-check
password policy min-size 8
password policy strong
service password-encryption
!
redundancy
!
no storage lifetime set
!
no enable service snmp-agent
ip ssh key-exchange dh_group_exchange_sha1 dh_group14_sha1 ecdh_sha2_nistp256 ecdh_sha2_nistp384 ecdh_sha2_nistp521
ip ssh cipher-mode ctr gcm
ip ssh hmac-algorithm sha2-256 sha2-512
!
login privilege log
enable secret 8 $1c$7eyy23uMQk$p(<$!rr8`xvr#.xdnp0d||d$|jn*2zx2jjjh|2:h$
no enable service telnet-server
!
vlan range 1,10,20,30,100
!
interface GigabitEthernet 0/1
no switchport
ip address 10.1.0.37 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/2
no switchport
ip address 10.1.0.41 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/3
switchport mode trunk
switchport trunk native vlan 100
switchport trunk allowed vlan only 10,20,30,100
!
interface GigabitEthernet 0/4
no switchport
ip address 10.1.0.5 255.255.255.252
!
interface GigabitEthernet 0/5
!
interface GigabitEthernet 0/6
!
interface GigabitEthernet 0/7
!
interface GigabitEthernet 0/8
!
interface GigabitEthernet 0/9
!
interface GigabitEthernet 0/10
!
interface GigabitEthernet 0/11
!
interface GigabitEthernet 0/12
!
interface GigabitEthernet 0/13
!
interface GigabitEthernet 0/14
!
interface GigabitEthernet 0/15
!
interface GigabitEthernet 0/16
!
interface GigabitEthernet 0/17
!
interface GigabitEthernet 0/18
!
interface GigabitEthernet 0/19
!
interface GigabitEthernet 0/20
!
interface GigabitEthernet 0/21
!
interface GigabitEthernet 0/22
!
interface GigabitEthernet 0/23
no switchport
ip address 10.1.0.14 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/24
no switchport
ip address 10.1.0.18 255.255.255.252
ip ospf network point-to-point
!
interface GigabitEthernet 0/25
!
interface GigabitEthernet 0/26
!
interface GigabitEthernet 0/27
!
interface GigabitEthernet 0/28
!
interface GigabitEthernet 0/29
!
interface GigabitEthernet 0/30
!
interface GigabitEthernet 0/31
!
interface GigabitEthernet 0/32
!
interface GigabitEthernet 0/33
!
interface GigabitEthernet 0/34
!
interface GigabitEthernet 0/35
!
interface GigabitEthernet 0/36
!
interface GigabitEthernet 0/37
!
interface GigabitEthernet 0/38
!
interface GigabitEthernet 0/39
!
interface GigabitEthernet 0/40
!
interface GigabitEthernet 0/41
!
interface GigabitEthernet 0/42
!
interface GigabitEthernet 0/43
!
interface GigabitEthernet 0/44
!
interface GigabitEthernet 0/45
!
interface GigabitEthernet 0/46
!
interface GigabitEthernet 0/47
!
interface GigabitEthernet 0/48
!
interface TenGigabitEthernet 0/49
!
interface TenGigabitEthernet 0/50
!
interface TenGigabitEthernet 0/51
!
interface TenGigabitEthernet 0/52
!
interface Loopback 11
ip address 11.1.0.21 255.255.255.255
!
interface Loopback 12
ip address 11.1.0.22 255.255.255.255
!
interface VLAN 1
!
interface VLAN 10
ip address 172.17.10.253 255.255.255.0
vrrp 10 ip 172.17.10.253
vrrp 10 priority 150
!
interface VLAN 20
ip address 172.17.20.253 255.255.255.0
vrrp 20 ip 172.17.20.253
vrrp 20 priority 150
!
interface VLAN 30
ip address 172.17.30.253 255.255.255.0
vrrp 30 ip 172.17.30.253
vrrp 30 priority 150
!
interface VLAN 100
ip address 172.17.100.253 255.255.255.0
vrrp 100 ip 172.17.100.253
vrrp 100 priority 150
!
interface Mgmt 0
ip address mix dhcp
ip address mix 192.168.1.200 255.255.255.0
!
router bgp 200
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
neighbor 10.1.0.6 remote-as 100
neighbor 10.1.0.6 update-source GigabitEthernet 0/4
neighbor 11.1.0.11 remote-as 200
neighbor 11.1.0.11 update-source Loopback 11
neighbor 11.1.0.12 remote-as 200
neighbor 11.1.0.12 update-source Loopback 12
address-family ipv4
network 11.1.0.205 mask 255.255.255.255
neighbor 10.1.0.6 activate
neighbor 10.1.0.6 default-originate
neighbor 11.1.0.11 activate
neighbor 11.1.0.12 activate
exit-address-family
!
router ospf 11
router-id 11.1.0.21
graceful-restart
redistribute bgp metric 10 subnets
network 10.1.0.12 0.0.0.3 area 0
network 10.1.0.36 0.0.0.3 area 0
network 11.1.0.21 0.0.0.0 area 0
network 172.17.10.0 0.0.0.255 area 0
network 172.17.20.0 0.0.0.255 area 0
network 172.17.30.0 0.0.0.255 area 0
network 172.17.100.0 0.0.0.255 area 0
default-information originate always metric-type 1
!
router ospf 12
router-id 11.1.0.22
graceful-restart
redistribute bgp metric 10 subnets
network 10.1.0.16 0.0.0.3 area 0
network 10.1.0.40 0.0.0.3 area 0
network 11.1.0.22 0.0.0.0 area 0
default-information originate always metric-type 1
!
ip route 0.0.0.0 0.0.0.0 172.17.100.3
!
snmp-server logging set-operation
no snmp-server enable version v1
no snmp-server enable version v2c
snmp-server enable version v3
snmp-server enable secret-dictionary-check
!
line console 0
exec-timeout 0 0
line vty 0 4
login
!
end
S3
hostname S3
!
spanning-tree mode rstp
spanning-tree
!
cwmp
cpe inform interval 60
!
service dhcp
ip helper-address 11.1.0.11
ip helper-address 11.1.0.12
!
install 0 S5310-24GT4XS-E
!
sysmac 7042.d39c.a178
!
webmaster level 0 username admin secret 8 $1c$7eyy23uMQk$p(<$!rr8`xvr#.xdnp0d||d$|jn*2zx2jjjh|2:h$
enable service web-server http
enable service web-server https
!
nfpp
!
password policy printable-character-check
password policy min-size 8
password policy strong
service password-encryption
!
redundancy
!
no storage lifetime set
!
no enable service snmp-agent
ip ssh key-exchange dh_group_exchange_sha1 dh_group14_sha1 ecdh_sha2_nistp256 ecdh_sha2_nistp384 ecdh_sha2_nistp521
ip ssh cipher-mode ctr gcm
ip ssh hmac-algorithm sha2-256 sha2-512
!
login privilege log
enable secret 8 $1c$7eyy23uMQk$p(<$!rr8`xvr#.xdnp0d||d$|jn*2zx2jjjh|2:h$
no enable service telnet-server
!
vlan range 1,10,20,100
!
interface GigabitEthernet 0/1
switchport access vlan 20
!
interface GigabitEthernet 0/2
!
interface GigabitEthernet 0/3
!
interface GigabitEthernet 0/4
!
interface GigabitEthernet 0/5
!
interface GigabitEthernet 0/6
!
interface GigabitEthernet 0/7
!
interface GigabitEthernet 0/8
!
interface GigabitEthernet 0/9
!
interface GigabitEthernet 0/10
!
interface GigabitEtherne
标签:ip,tree,11.1,银杯,2024,172.17,dhcp,省赛,spanning
From: https://blog.csdn.net/2203_75969381/article/details/145188295