网络拓扑:

PS:本例使用明细前缀列表双边界引入

S5700-LSW1

============================================================================

#
sysname S5700-LSW1
#
super password level 15 simple pwd@123
#
vlan batch 2 to 64
#
stp instance 10 root primary
stp instance 20 root primary
stp instance 30 root secondary
stp instance 40 root secondary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
region-name huawei
revision-level 2
instance 10 vlan 1 to 8
instance 20 vlan 9 to 16
instance 30 vlan 17 to 32
instance 40 vlan 33 to 64
active region-configuration
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple ******
local-user admin privilege level 15
local-user admin service-type http
#
interface Vlanif1
ip address 10.158.1.251 255.255.255.0
vrrp vrid 1 virtual-ip 10.158.1.254
vrrp vrid 1 priority 110
vrrp vrid 1 preempt-mode timer delay 5
#
interface Vlanif2
ip address 10.158.2.251 255.255.255.0
vrrp vrid 2 virtual-ip 10.158.2.254
vrrp vrid 2 priority 110
vrrp vrid 2 preempt-mode timer delay 5
#
interface Vlanif3
ip address 10.158.3.251 255.255.255.0
vrrp vrid 3 virtual-ip 10.158.3.254
vrrp vrid 3 priority 110
vrrp vrid 3 preempt-mode timer delay 5
#
interface Vlanif4
ip address 10.158.4.251 255.255.255.0
vrrp vrid 4 virtual-ip 10.158.4.254
vrrp vrid 4 priority 110
vrrp vrid 4 preempt-mode timer delay 5
#
interface Vlanif5
ip address 10.158.5.251 255.255.255.0
vrrp vrid 5 virtual-ip 10.158.5.254
vrrp vrid 5 priority 110
vrrp vrid 5 preempt-mode timer delay 5
#
interface Vlanif6
ip address 10.158.6.251 255.255.255.0
vrrp vrid 6 virtual-ip 10.158.6.254
vrrp vrid 6 priority 110
vrrp vrid 6 preempt-mode timer delay 5
#
interface Vlanif7
ip address 10.158.7.251 255.255.255.0
vrrp vrid 7 virtual-ip 10.158.7.254
vrrp vrid 7 priority 110
vrrp vrid 7 preempt-mode timer delay 5
#
interface Vlanif8
ip address 10.158.8.251 255.255.255.0
vrrp vrid 8 virtual-ip 10.158.8.254
vrrp vrid 8 priority 110
vrrp vrid 8 preempt-mode timer delay 5
#
interface Vlanif9
ip address 10.133.1.251 255.255.255.0
vrrp vrid 9 virtual-ip 10.133.1.254
vrrp vrid 9 priority 110
vrrp vrid 9 preempt-mode timer delay 5
#
interface Vlanif10
ip address 10.133.2.251 255.255.255.0
vrrp vrid 10 virtual-ip 10.133.2.254
vrrp vrid 10 priority 110
vrrp vrid 10 preempt-mode timer delay 5
#
interface Vlanif11
ip address 10.133.3.251 255.255.255.0
vrrp vrid 11 virtual-ip 10.133.3.254
vrrp vrid 11 priority 110
vrrp vrid 11 preempt-mode timer delay 5
#
interface Vlanif12
ip address 10.133.4.251 255.255.255.0
vrrp vrid 12 virtual-ip 10.133.4.254
vrrp vrid 12 priority 110
vrrp vrid 12 preempt-mode timer delay 5
#
interface Vlanif13
ip address 10.133.5.251 255.255.255.0
vrrp vrid 13 virtual-ip 10.133.5.254
vrrp vrid 13 priority 110
vrrp vrid 13 preempt-mode timer delay 5
#
interface Vlanif14
ip address 10.133.6.251 255.255.255.0
vrrp vrid 14 virtual-ip 10.133.6.254
vrrp vrid 14 priority 110
vrrp vrid 14 preempt-mode timer delay 5
#
interface Vlanif15
ip address 10.133.7.251 255.255.255.0
vrrp vrid 15 virtual-ip 10.133.7.254
vrrp vrid 15 priority 110
vrrp vrid 15 preempt-mode timer delay 5
#
interface Vlanif16
ip address 10.133.8.251 255.255.255.0
vrrp vrid 16 virtual-ip 10.133.8.254
vrrp vrid 16 priority 110
vrrp vrid 16 preempt-mode timer delay 5
#
interface Vlanif17
ip address 10.79.1.251 255.255.255.0
vrrp vrid 17 virtual-ip 10.79.1.254
vrrp vrid 17 priority 110
vrrp vrid 17 preempt-mode timer delay 5
#
interface Vlanif18
ip address 10.79.2.251 255.255.255.0
vrrp vrid 18 virtual-ip 10.79.2.254
vrrp vrid 18 priority 110
vrrp vrid 18 preempt-mode timer delay 5
#
interface Vlanif19
ip address 10.79.3.251 255.255.255.0
#
interface Vlanif20
ip address 10.79.4.251 255.255.255.0
vrrp vrid 20 virtual-ip 10.79.4.254
vrrp vrid 20 priority 110
vrrp vrid 20 preempt-mode timer delay 5
#
interface Vlanif21
ip address 10.79.5.251 255.255.255.0
vrrp vrid 21 virtual-ip 10.79.5.254
vrrp vrid 21 priority 110
vrrp vrid 21 preempt-mode timer delay 5
#
interface Vlanif22
ip address 10.79.6.251 255.255.255.0
vrrp vrid 22 virtual-ip 10.79.6.254
vrrp vrid 22 priority 110
vrrp vrid 22 preempt-mode timer delay 5
#
interface Vlanif23
ip address 10.79.7.251 255.255.255.0
vrrp vrid 23 virtual-ip 10.79.7.254
vrrp vrid 23 priority 110
vrrp vrid 23 preempt-mode timer delay 5
#
interface Vlanif24
ip address 10.79.8.251 255.255.255.0
vrrp vrid 24 virtual-ip 10.79.8.254
vrrp vrid 24 priority 110
vrrp vrid 24 preempt-mode timer delay 5
#
interface Vlanif25
ip address 10.129.1.251 255.255.255.0
vrrp vrid 25 virtual-ip 10.129.1.254
vrrp vrid 25 preempt-mode timer delay 5
#
interface Vlanif26
ip address 10.129.2.251 255.255.255.0
vrrp vrid 26 virtual-ip 10.129.2.254
vrrp vrid 26 preempt-mode timer delay 5
#
interface Vlanif27
ip address 10.129.3.251 255.255.255.0
vrrp vrid 27 virtual-ip 10.129.3.254
vrrp vrid 27 preempt-mode timer delay 5
#
interface Vlanif28
ip address 10.129.4.251 255.255.255.0
vrrp vrid 28 virtual-ip 10.129.4.254
vrrp vrid 28 preempt-mode timer delay 5
#
interface Vlanif29
ip address 10.129.5.251 255.255.255.0
vrrp vrid 29 virtual-ip 10.129.5.254
vrrp vrid 29 preempt-mode timer delay 5
#
interface Vlanif30
ip address 10.129.6.251 255.255.255.0
vrrp vrid 30 virtual-ip 10.129.6.254
vrrp vrid 30 preempt-mode timer delay 5
#
interface Vlanif31
ip address 10.129.7.251 255.255.255.0
vrrp vrid 31 virtual-ip 10.129.7.254
vrrp vrid 31 preempt-mode timer delay 5
#
interface Vlanif32
ip address 10.129.8.251 255.255.255.0
vrrp vrid 32 virtual-ip 10.129.8.254
vrrp vrid 32 preempt-mode timer delay 5
#
interface Vlanif50
ip address 10.10.1.1 255.255.255.252
#
interface MEth0/0/1
#
interface Eth-Trunk10
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp instance 30 cost 6000000
stp instance 40 cost 6000000
#
interface GigabitEthernet0/0/1
eth-trunk 10
#
interface GigabitEthernet0/0/2
eth-trunk 10
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 50
#
interface LoopBack0
ip address 10.185.1.1 255.255.255.255
#
ospf 100 router-id 10.185.1.1
silent-interface all
undo silent-interface Vlanif50
area 0.0.0.0
network 10.10.1.8 0.0.0.3
network 10.10.1.0 0.0.0.3
network 10.158.1.0 0.0.0.255
network 10.158.2.0 0.0.0.255
network 10.158.3.0 0.0.0.255
network 10.158.4.0 0.0.0.255
network 10.158.5.0 0.0.0.255
network 10.158.6.0 0.0.0.255
network 10.158.7.0 0.0.0.255
network 10.158.8.0 0.0.0.255
network 10.133.1.0 0.0.0.255
network 10.133.2.0 0.0.0.255
network 10.133.3.0 0.0.0.255
network 10.133.4.0 0.0.0.255
network 10.133.5.0 0.0.0.255
network 10.133.6.0 0.0.0.255
network 10.133.7.0 0.0.0.255
network 10.133.8.0 0.0.0.255
network 10.79.1.0 0.0.0.255
network 10.79.2.0 0.0.0.255
network 10.79.3.0 0.0.0.255
network 10.79.4.0 0.0.0.255
network 10.79.5.0 0.0.0.255
network 10.79.6.0 0.0.0.255
network 10.79.7.0 0.0.0.255
network 10.79.8.0 0.0.0.255
network 10.129.1.0 0.0.0.255
network 10.129.2.0 0.0.0.255
network 10.129.3.0 0.0.0.255
network 10.129.4.0 0.0.0.255
network 10.129.5.0 0.0.0.255
network 10.129.6.0 0.0.0.255
network 10.129.7.0 0.0.0.255
network 10.129.8.0 0.0.0.255
network 10.185.1.1 0.0.0.0
#
user-interface con 0
user-interface vty 0 4
authentication-mode aaa
#
port-group link-type
#
return

S5700-LSW2

============================================================================

#
sysname S5700-LSW2
#
vlan batch 2 to 64
#
stp instance 10 root secondary
stp instance 20 root secondary
stp instance 30 root primary
stp instance 40 root primary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
region-name huawei
revision-level 2
instance 10 vlan 1 to 8
instance 20 vlan 9 to 16
instance 30 vlan 17 to 32
instance 40 vlan 33 to 64
active region-configuration
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
ip address 10.158.1.252 255.255.255.0
vrrp vrid 1 virtual-ip 10.158.1.254
vrrp vrid 1 preempt-mode timer delay 5
#
interface Vlanif2
ip address 10.158.2.252 255.255.255.0
vrrp vrid 2 virtual-ip 10.158.2.254
vrrp vrid 2 preempt-mode timer delay 5
#
interface Vlanif3
ip address 10.158.3.252 255.255.255.0
vrrp vrid 3 virtual-ip 10.158.3.254
vrrp vrid 3 preempt-mode timer delay 5
#
interface Vlanif4
ip address 10.158.4.252 255.255.255.0
vrrp vrid 4 virtual-ip 10.158.4.254
vrrp vrid 4 preempt-mode timer delay 5
#
interface Vlanif5
ip address 10.158.5.252 255.255.255.0
vrrp vrid 5 virtual-ip 10.158.5.254
vrrp vrid 5 preempt-mode timer delay 5
#
interface Vlanif6
ip address 10.158.6.252 255.255.255.0
vrrp vrid 6 virtual-ip 10.158.6.254
vrrp vrid 6 preempt-mode timer delay 5
#
interface Vlanif7
ip address 10.158.7.252 255.255.255.0
vrrp vrid 7 virtual-ip 10.158.7.254
vrrp vrid 7 preempt-mode timer delay 5
#
interface Vlanif8
ip address 10.158.8.252 255.255.255.0
vrrp vrid 8 virtual-ip 10.158.8.254
vrrp vrid 8 preempt-mode timer delay 5
#
interface Vlanif9
ip address 10.133.1.252 255.255.255.0
vrrp vrid 9 virtual-ip 10.133.1.254
vrrp vrid 9 preempt-mode timer delay 5
#
interface Vlanif10
ip address 10.133.2.252 255.255.255.0
vrrp vrid 10 virtual-ip 10.133.2.254
vrrp vrid 10 preempt-mode timer delay 5
#
interface Vlanif11
ip address 10.133.3.252 255.255.255.0
vrrp vrid 11 virtual-ip 10.133.3.254
vrrp vrid 11 preempt-mode timer delay 5
#
interface Vlanif12
ip address 10.133.4.252 255.255.255.0
vrrp vrid 12 virtual-ip 10.133.4.254
vrrp vrid 12 preempt-mode timer delay 5
#
interface Vlanif13
ip address 10.133.5.252 255.255.255.0
vrrp vrid 13 virtual-ip 10.133.5.254
vrrp vrid 13 preempt-mode timer delay 5
#
interface Vlanif14
ip address 10.133.6.252 255.255.255.0
vrrp vrid 14 virtual-ip 10.133.6.254
vrrp vrid 14 preempt-mode timer delay 5
#
interface Vlanif15
ip address 10.133.7.252 255.255.255.0
vrrp vrid 15 virtual-ip 10.133.7.254
vrrp vrid 15 preempt-mode timer delay 5
#
interface Vlanif16
ip address 10.133.8.252 255.255.255.0
vrrp vrid 16 virtual-ip 10.133.8.254
vrrp vrid 16 preempt-mode timer delay 5
#
interface Vlanif17
ip address 10.79.1.252 255.255.255.0
vrrp vrid 17 virtual-ip 10.79.1.254
vrrp vrid 17 priority 110
vrrp vrid 17 preempt-mode timer delay 5
#
interface Vlanif18
ip address 10.79.2.252 255.255.255.0
vrrp vrid 18 virtual-ip 10.79.2.254
vrrp vrid 18 priority 110
vrrp vrid 18 preempt-mode timer delay 5
#
interface Vlanif19
ip address 10.79.3.252 255.255.255.0
#
interface Vlanif20
ip address 10.79.4.252 255.255.255.0
vrrp vrid 20 virtual-ip 10.79.4.254
vrrp vrid 20 priority 110
vrrp vrid 20 preempt-mode timer delay 5
#
interface Vlanif21
ip address 10.79.5.252 255.255.255.0
vrrp vrid 21 virtual-ip 10.79.5.254
vrrp vrid 21 priority 110
vrrp vrid 21 preempt-mode timer delay 5
#
interface Vlanif22
ip address 10.79.6.252 255.255.255.0
vrrp vrid 22 virtual-ip 10.79.6.254
vrrp vrid 22 priority 110
vrrp vrid 22 preempt-mode timer delay 5
#
interface Vlanif23
ip address 10.79.7.252 255.255.255.0
vrrp vrid 23 virtual-ip 10.79.7.254
vrrp vrid 23 priority 110
vrrp vrid 23 preempt-mode timer delay 5
#
interface Vlanif24
ip address 10.79.8.252 255.255.255.0
vrrp vrid 24 virtual-ip 10.79.8.254
vrrp vrid 24 priority 110
vrrp vrid 24 preempt-mode timer delay 5
#
interface Vlanif25
ip address 10.129.1.252 255.255.255.0
vrrp vrid 25 virtual-ip 10.129.1.254
vrrp vrid 25 priority 110
vrrp vrid 25 preempt-mode timer delay 5
#
interface Vlanif26
ip address 10.129.2.252 255.255.255.0
vrrp vrid 26 virtual-ip 10.129.2.254
vrrp vrid 26 priority 110
vrrp vrid 26 preempt-mode timer delay 5
#
interface Vlanif27
ip address 10.129.3.252 255.255.255.0
vrrp vrid 27 virtual-ip 10.129.3.254
vrrp vrid 27 priority 110
vrrp vrid 27 preempt-mode timer delay 5
#
interface Vlanif28
ip address 10.129.4.252 255.255.255.0
vrrp vrid 28 virtual-ip 10.129.4.254
vrrp vrid 28 priority 110
vrrp vrid 28 preempt-mode timer delay 5
#
interface Vlanif29
ip address 10.129.5.252 255.255.255.0
vrrp vrid 29 virtual-ip 10.129.5.254
vrrp vrid 29 priority 110
vrrp vrid 29 preempt-mode timer delay 5
#
interface Vlanif30
ip address 10.129.6.252 255.255.255.0
vrrp vrid 30 virtual-ip 10.129.6.254
vrrp vrid 30 priority 110
vrrp vrid 30 preempt-mode timer delay 5
#
interface Vlanif31
ip address 10.129.7.252 255.255.255.0
vrrp vrid 31 virtual-ip 10.129.7.254
vrrp vrid 31 priority 110
vrrp vrid 31 preempt-mode timer delay 5
#
interface Vlanif32
ip address 10.129.8.252 255.255.255.0
vrrp vrid 32 virtual-ip 10.129.8.254
vrrp vrid 32 priority 110
vrrp vrid 32 preempt-mode timer delay 5
#
interface Vlanif50
ip address 10.10.1.5 255.255.255.252
ospf network-type p2p
#
interface MEth0/0/1
#
interface Eth-Trunk10
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp instance 10 cost 6000000
stp instance 20 cost 6000000
#
interface GigabitEthernet0/0/1
eth-trunk 10
#
interface GigabitEthernet0/0/2
eth-trunk 10
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 50
#
interface LoopBack0
ip address 10.185.1.2 255.255.255.255
#
ospf 100 router-id 10.185.1.2
silent-interface all
undo silent-interface Vlanif50
area 0.0.0.0
network 10.10.1.8 0.0.0.3
network 10.10.1.0 0.0.0.3
network 10.158.1.0 0.0.0.255
network 10.158.2.0 0.0.0.255
network 10.158.3.0 0.0.0.255
network 10.158.4.0 0.0.0.255
network 10.158.5.0 0.0.0.255
network 10.158.6.0 0.0.0.255
network 10.158.7.0 0.0.0.255
network 10.158.8.0 0.0.0.255
network 10.133.1.0 0.0.0.255
network 10.133.2.0 0.0.0.255
network 10.133.3.0 0.0.0.255
network 10.133.4.0 0.0.0.255
network 10.133.5.0 0.0.0.255
network 10.133.6.0 0.0.0.255
network 10.133.7.0 0.0.0.255
network 10.133.8.0 0.0.0.255
network 10.79.1.0 0.0.0.255
network 10.79.2.0 0.0.0.255
network 10.79.3.0 0.0.0.255
network 10.79.4.0 0.0.0.255
network 10.79.5.0 0.0.0.255
network 10.79.6.0 0.0.0.255
network 10.79.7.0 0.0.0.255
network 10.79.8.0 0.0.0.255
network 10.129.1.0 0.0.0.255
network 10.129.2.0 0.0.0.255
network 10.129.3.0 0.0.0.255
network 10.129.4.0 0.0.0.255
network 10.129.5.0 0.0.0.255
network 10.129.6.0 0.0.0.255
network 10.129.7.0 0.0.0.255
network 10.129.8.0 0.0.0.255
network 10.185.1.2 0.0.0.0
#
user-interface con 0
user-interface vty 0 4
#
port-group link-type
#
return

S5700-LSW3

============================================================================

#
sysname S5700-LSW3
#
vlan batch 2 to 64
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
region-name huawei
revision-level 2
instance 10 vlan 1 to 8
instance 20 vlan 9 to 16
instance 30 vlan 17 to 32
instance 40 vlan 33 to 64
active region-configuration
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#

AR3260-AR1

============================================================================

[V200R003C00]
#
sysname AR3260-AR1
#
board add 0/1 1GEC
board add 0/2 1GEC
board add 0/3 1GEC
board add 0/4 1GEC
board add 0/7 24GE
board add 0/8 24GE
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
bfd
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.10.1.9 255.255.255.252
ospf network-type p2p
#
interface GigabitEthernet0/0/1
ip address 10.10.1.2 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 10.201.1.1 255.255.255.252
#
interface LoopBack0
ip address 10.185.1.3 255.255.255.255
#
bfd 10 bind peer-ip 10.201.1.2 source-ip 10.201.1.1
#
bgp 65000
router-id 10.185.1.3
peer 10.185.1.4 as-number 65000
peer 10.185.1.4 connect-interface LoopBack0
peer 10.201.1.2 as-number 65001
peer 10.201.1.2 bfd enable
#
ipv4-family unicast
undo synchronization
import-route ospf 100 route-policy ospf-to-bgp
peer 10.185.1.4 enable
peer 10.185.1.4 next-hop-local
peer 10.201.1.2 enable
#
ospf 100 router-id 10.185.1.3
import-route bgp type 2 route-policy bgp-to-ospf
area 0.0.0.0
network 10.10.1.0 0.0.0.3
network 10.10.1.8 0.0.0.3
network 10.185.1.3 0.0.0.0
#
route-policy ospf-to-bgp permit node 10
if-match ip-prefix ospf-to-bgp
#
route-policy bgp-to-ospf permit node 10
if-match ip-prefix bgp-to-ospf
#
ip ip-prefix ospf-to-bgp index 10 permit 10.158.1.0 24
ip ip-prefix ospf-to-bgp index 20 permit 10.158.2.0 24
ip ip-prefix ospf-to-bgp index 30 permit 10.158.3.0 24
ip ip-prefix ospf-to-bgp index 40 permit 10.158.4.0 24
ip ip-prefix ospf-to-bgp index 50 permit 10.158.5.0 24
ip ip-prefix ospf-to-bgp index 60 permit 10.158.6.0 24
ip ip-prefix ospf-to-bgp index 70 permit 10.158.7.0 24
ip ip-prefix ospf-to-bgp index 80 permit 10.158.8.0 24
ip ip-prefix ospf-to-bgp index 90 permit 10.133.1.0 24
ip ip-prefix ospf-to-bgp index 100 permit 10.133.2.0 24
ip ip-prefix ospf-to-bgp index 110 permit 10.133.3.0 24
ip ip-prefix ospf-to-bgp index 120 permit 10.133.4.0 24
ip ip-prefix ospf-to-bgp index 130 permit 10.133.5.0 24
ip ip-prefix ospf-to-bgp index 140 permit 10.133.6.0 24
ip ip-prefix ospf-to-bgp index 150 permit 10.133.7.0 24
ip ip-prefix ospf-to-bgp index 160 permit 10.133.8.0 24
ip ip-prefix ospf-to-bgp index 170 permit 10.79.1.0 24
ip ip-prefix ospf-to-bgp index 180 permit 10.79.2.0 24
ip ip-prefix ospf-to-bgp index 190 permit 10.79.3.0 24
ip ip-prefix ospf-to-bgp index 200 permit 10.79.4.0 24
ip ip-prefix ospf-to-bgp index 210 permit 10.79.5.0 24
ip ip-prefix ospf-to-bgp index 220 permit 10.79.6.0 24
ip ip-prefix ospf-to-bgp index 230 permit 10.79.7.0 24
ip ip-prefix ospf-to-bgp index 240 permit 10.79.8.0 24
ip ip-prefix ospf-to-bgp index 250 permit 10.129.1.0 24
ip ip-prefix ospf-to-bgp index 260 permit 10.129.2.0 24
ip ip-prefix ospf-to-bgp index 270 permit 10.129.3.0 24
ip ip-prefix ospf-to-bgp index 280 permit 10.129.4.0 24
ip ip-prefix ospf-to-bgp index 290 permit 10.129.5.0 24
ip ip-prefix ospf-to-bgp index 300 permit 10.129.6.0 24
ip ip-prefix ospf-to-bgp index 310 permit 10.129.7.0 24
ip ip-prefix ospf-to-bgp index 320 permit 10.129.8.0 24
ip ip-prefix bgp-to-ospf index 10 permit 10.201.1.0 24
ip ip-prefix bgp-to-ospf index 20 permit 10.201.2.0 24
ip ip-prefix bgp-to-ospf index 30 permit 10.201.3.0 24
ip ip-prefix bgp-to-ospf index 40 permit 10.201.4.0 24
ip ip-prefix bgp-to-ospf index 50 permit 10.201.5.0 24
ip ip-prefix bgp-to-ospf index 60 permit 10.201.6.0 24
ip ip-prefix bgp-to-ospf index 70 permit 10.201.7.0 24
ip ip-prefix bgp-to-ospf index 80 permit 10.201.8.0 24
ip ip-prefix bgp-to-ospf index 90 permit 10.136.1.0 24
ip ip-prefix bgp-to-ospf index 100 permit 10.136.2.0 24
ip ip-prefix bgp-to-ospf index 110 permit 10.136.3.0 24
ip ip-prefix bgp-to-ospf index 120 permit 10.136.4.0 24
ip ip-prefix bgp-to-ospf index 130 permit 10.136.5.0 24
ip ip-prefix bgp-to-ospf index 140 permit 10.136.6.0 24
ip ip-prefix bgp-to-ospf index 150 permit 10.136.7.0 24
ip ip-prefix bgp-to-ospf index 160 permit 10.136.8.0 24
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

AR3260-AR2

============================================================================

[V200R003C00]
#
sysname AR3260-AR2
#
board add 0/1 1GEC
board add 0/2 1GEC
board add 0/3 1GEC
board add 0/4 1GEC
board add 0/7 24GE
board add 0/8 24GE
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
bfd
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.10.1.10 255.255.255.252
ospf network-type p2p
#
interface GigabitEthernet0/0/1
ip address 10.10.1.6 255.255.255.252
ospf network-type p2p
#
interface GigabitEthernet0/0/2
ip address 10.201.1.5 255.255.255.252
#
interface LoopBack0
ip address 10.185.1.4 255.255.255.255
#
bfd 10 bind peer-ip 10.201.1.6 source-ip 10.201.1.5
#
bgp 65000
router-id 10.185.1.4
peer 10.185.1.3 as-number 65000
peer 10.185.1.3 connect-interface LoopBack0
peer 10.201.1.6 as-number 65001
peer 10.201.1.6 bfd enable
#
ipv4-family unicast
undo synchronization
import-route ospf 100 route-policy ospf-to-bgp
peer 10.185.1.3 enable
peer 10.185.1.3 next-hop-local
peer 10.201.1.6 enable
#
ospf 100 router-id 10.185.1.4
import-route bgp type 2 route-policy bgp-to-ospf
area 0.0.0.0
network 10.10.1.4 0.0.0.3
network 10.10.1.8 0.0.0.3
network 10.185.1.4 0.0.0.0
#
route-policy ospf-to-bgp permit node 10
if-match ip-prefix ospf-to-bgp
#
route-policy bgp-to-ospf permit node 10
if-match ip-prefix bgp-to-ospf
#
ip ip-prefix ospf-to-bgp index 10 permit 10.158.1.0 24
ip ip-prefix ospf-to-bgp index 20 permit 10.158.2.0 24
ip ip-prefix ospf-to-bgp index 30 permit 10.158.3.0 24
ip ip-prefix ospf-to-bgp index 40 permit 10.158.4.0 24
ip ip-prefix ospf-to-bgp index 50 permit 10.158.5.0 24
ip ip-prefix ospf-to-bgp index 60 permit 10.158.6.0 24
ip ip-prefix ospf-to-bgp index 70 permit 10.158.7.0 24
ip ip-prefix ospf-to-bgp index 80 permit 10.158.8.0 24
ip ip-prefix ospf-to-bgp index 90 permit 10.133.1.0 24
ip ip-prefix ospf-to-bgp index 100 permit 10.133.2.0 24
ip ip-prefix ospf-to-bgp index 110 permit 10.133.3.0 24
ip ip-prefix ospf-to-bgp index 120 permit 10.133.4.0 24
ip ip-prefix ospf-to-bgp index 130 permit 10.133.5.0 24
ip ip-prefix ospf-to-bgp index 140 permit 10.133.6.0 24
ip ip-prefix ospf-to-bgp index 150 permit 10.133.7.0 24
ip ip-prefix ospf-to-bgp index 160 permit 10.133.8.0 24
ip ip-prefix ospf-to-bgp index 170 permit 10.79.1.0 24
ip ip-prefix ospf-to-bgp index 180 permit 10.79.2.0 24
ip ip-prefix ospf-to-bgp index 190 permit 10.79.3.0 24
ip ip-prefix ospf-to-bgp index 200 permit 10.79.4.0 24
ip ip-prefix ospf-to-bgp index 210 permit 10.79.5.0 24
ip ip-prefix ospf-to-bgp index 220 permit 10.79.6.0 24
ip ip-prefix ospf-to-bgp index 230 permit 10.79.7.0 24
ip ip-prefix ospf-to-bgp index 240 permit 10.79.8.0 24
ip ip-prefix ospf-to-bgp index 250 permit 10.129.1.0 24
ip ip-prefix ospf-to-bgp index 260 permit 10.129.2.0 24
ip ip-prefix ospf-to-bgp index 270 permit 10.129.3.0 24
ip ip-prefix ospf-to-bgp index 280 permit 10.129.4.0 24
ip ip-prefix ospf-to-bgp index 290 permit 10.129.5.0 24
ip ip-prefix ospf-to-bgp index 300 permit 10.129.6.0 24
ip ip-prefix ospf-to-bgp index 310 permit 10.129.7.0 24
ip ip-prefix ospf-to-bgp index 320 permit 10.129.8.0 24
ip ip-prefix bgp-to-ospf index 10 permit 10.201.1.0 24
ip ip-prefix bgp-to-ospf index 20 permit 10.201.2.0 24
ip ip-prefix bgp-to-ospf index 30 permit 10.201.3.0 24
ip ip-prefix bgp-to-ospf index 40 permit 10.201.4.0 24
ip ip-prefix bgp-to-ospf index 50 permit 10.201.5.0 24
ip ip-prefix bgp-to-ospf index 60 permit 10.201.6.0 24
ip ip-prefix bgp-to-ospf index 70 permit 10.201.7.0 24
ip ip-prefix bgp-to-ospf index 80 permit 10.201.8.0 24
ip ip-prefix bgp-to-ospf index 90 permit 10.136.1.0 24
ip ip-prefix bgp-to-ospf index 100 permit 10.136.2.0 24
ip ip-prefix bgp-to-ospf index 110 permit 10.136.3.0 24
ip ip-prefix bgp-to-ospf index 120 permit 10.136.4.0 24
ip ip-prefix bgp-to-ospf index 130 permit 10.136.5.0 24
ip ip-prefix bgp-to-ospf index 140 permit 10.136.6.0 24
ip ip-prefix bgp-to-ospf index 150 permit 10.136.7.0 24
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

AR3260-AR3

============================================================================

#
sysname AR3260-AR3
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
bfd
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.20.1.9 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 10.20.1.2 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 10.201.1.2 255.255.255.252
#
interface NULL0
#
interface LoopBack0
ip address 10.185.1.6 255.255.255.255
#
bfd 10 bind peer-ip 10.201.1.1 source-ip 10.201.1.2
#
bgp 65001
router-id 10.185.1.6
peer 10.185.1.7 as-number 65001
peer 10.185.1.7 connect-interface LoopBack0
peer 10.185.1.8 as-number 65001
peer 10.185.1.8 connect-interface LoopBack0
peer 10.201.1.1 as-number 65000
peer 10.201.1.1 bfd enable
#
ipv4-family unicast
undo synchronization
peer 10.185.1.7 enable
peer 10.185.1.7 next-hop-local
peer 10.185.1.8 enable
peer 10.185.1.8 next-hop-local
peer 10.201.1.1 enable
#
ospf 100 router-id 10.185.1.6
area 0.0.0.0
network 10.20.1.0 0.0.0.3
network 10.20.1.8 0.0.0.3
network 10.185.1.6 0.0.0.0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

AR3260-AR4

============================================================================

[V200R003C00]
#
sysname AR3260-AR4
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
bfd
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.20.1.10 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 10.20.1.6 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 10.201.1.6 255.255.255.252
#
interface NULL0
#
interface LoopBack0
ip address 10.185.1.7 255.255.255.255
#
bfd 10 bind peer-ip 10.201.1.5 source-ip 10.201.1.6
#
bgp 65001
peer 10.185.1.6 as-number 65001
peer 10.185.1.6 connect-interface LoopBack0
peer 10.185.1.8 as-number 65001
peer 10.185.1.8 connect-interface LoopBack0
peer 10.201.1.5 as-number 65000
peer 10.201.1.5 bfd enable
#
ipv4-family unicast
undo synchronization
peer 10.185.1.6 enable
peer 10.185.1.6 next-hop-local
peer 10.185.1.8 enable
peer 10.185.1.8 next-hop-local
peer 10.201.1.5 enable
#
ospf 100 router-id 10.185.1.7
area 0.0.0.0
network 10.20.1.4 0.0.0.3
network 10.20.1.8 0.0.0.3
network 10.185.1.7 0.0.0.0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

S5700-LSW4

============================================================================

#
sysname S5700-LSW4
#
vlan batch 2 to 16 100 200
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
ip address 10.201.1.254 255.255.255.0
#
interface Vlanif2
ip address 10.201.2.254 255.255.255.0
#
interface Vlanif3
ip address 10.201.3.254 255.255.255.0
#
interface Vlanif4
ip address 10.201.4.254 255.255.255.0
#
interface Vlanif5
ip address 10.201.5.254 255.255.255.0
#
interface Vlanif6
ip address 10.201.6.254 255.255.255.0
#
interface Vlanif7
ip address 10.201.7.254 255.255.255.0
#
interface Vlanif8
ip address 10.201.8.254 255.255.255.0
#
interface Vlanif9
ip address 10.136.1.254 255.255.255.0
#
interface Vlanif10
ip address 10.136.2.254 255.255.255.0
#
interface Vlanif11
ip address 10.136.3.254 255.255.255.0
#
interface Vlanif12
ip address 10.136.4.254 255.255.255.0
#
interface Vlanif13
ip address 10.136.5.254 255.255.255.0
#
interface Vlanif14
ip address 10.136.6.254 255.255.255.0
#
interface Vlanif15
ip address 10.136.7.254 255.255.255.0
#
interface Vlanif16
ip address 10.136.8.254 255.255.255.0
#
interface Vlanif100
ip address 10.20.1.1 255.255.255.252
#
interface Vlanif200
ip address 10.20.1.5 255.255.255.252
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 100
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 200
#
interface LoopBack0
ip address 10.185.1.8 255.255.255.255
#
bgp 65001
router-id 10.185.1.8
peer 10.185.1.6 as-number 65001
peer 10.185.1.6 connect-interface LoopBack0
peer 10.185.1.7 as-number 65001
peer 10.185.1.7 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
network 10.136.1.0 255.255.255.0
network 10.136.2.0 255.255.255.0
network 10.136.3.0 255.255.255.0
network 10.136.4.0 255.255.255.0
network 10.136.5.0 255.255.255.0
network 10.136.6.0 255.255.255.0
network 10.136.7.0 255.255.255.0
network 10.136.8.0 255.255.255.0
network 10.201.1.0 255.255.255.0
network 10.201.2.0 255.255.255.0
network 10.201.3.0 255.255.255.0
network 10.201.4.0 255.255.255.0
network 10.201.5.0 255.255.255.0
network 10.201.6.0 255.255.255.0
network 10.201.7.0 255.255.255.0
network 10.201.8.0 255.255.255.0
peer 10.185.1.6 enable
peer 10.185.1.7 enable
#
ospf 100 router-id 10.185.1.8
area 0.0.0.0
network 10.185.1.9 0.0.0.0
network 10.20.1.0 0.0.0.3
network 10.20.1.4 0.0.0.3
network 10.185.1.8 0.0.0.0
#
user-interface con 0
user-interface vty 0 4
#
return

S5700-LSW5

============================================================================

#
sysname S3700-LSW5
#
vlan batch 2 to 16 100 200
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

在S5700-LSW1查看重分布进来OSPF100的AS65001的路由

============================================================================

<S5700-LSW1>display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 20 Routes : 20

OSPF routing table status : <Active>
Destinations : 20 Routes : 20

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.10.1.4/30 OSPF 10 3 D 10.10.1.2 Vlanif50
10.10.1.8/30 OSPF 10 2 D 10.10.1.2 Vlanif50
10.136.1.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.2.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.3.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.4.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.5.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.6.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.7.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.136.8.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.185.1.3/32 OSPF 10 1 D 10.10.1.2 Vlanif50
10.185.1.4/32 OSPF 10 2 D 10.10.1.2 Vlanif50
10.201.1.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.2.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.3.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.4.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.5.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.6.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.7.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50
10.201.8.0/24 O_ASE 150 1 D 10.10.1.2 Vlanif50

OSPF routing table status : <Inactive>
Destinations : 0 Routes : 0

在S5700-LSW4上看S5700-LSW1的OSPF100重分布进AS65001 学习来的BGP路由

============================================================================

<S5700-LSW4>display bgp routing-table peer 10.185.1.6 accepted-routes

BGP Local router ID is 10.185.1.8
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 32
Network NextHop MED LocPrf PrefVal Path/Ogn

*>i 10.79.1.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.2.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.3.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.4.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.5.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.6.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.7.0/24 10.185.1.6 2 100 0 65000?
*>i 10.79.8.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.1.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.2.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.3.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.4.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.5.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.6.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.7.0/24 10.185.1.6 2 100 0 65000?
*>i 10.129.8.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.1.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.2.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.3.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.4.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.5.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.6.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.7.0/24 10.185.1.6 2 100 0 65000?
*>i 10.133.8.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.1.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.2.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.3.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.4.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.5.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.6.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.7.0/24 10.185.1.6 2 100 0 65000?
*>i 10.158.8.0/24 10.185.1.6 2 100 0 65000?
<S5700-LSW4>

双边界路由重分布在网络改造项目中经常遇到,一般发生在新老网络协议变更的环节比较多,比如原网是IGP协议,由原IGP协议变更为BGP协议的环境中,此时一定要注意路由重分布的本质,即将一种路由协议的路由注入到另外的一种路由协议中,路由在重分布后会丢失原路由的一切属性。

Huawei BGP和OSPF双边界重分布(一)的更多相关文章

  1. Huawei BGP和OSPF双边界重分布(二)

    网络拓扑: 本例主要配置和例一致,主要是在AR3260-AR1和AR3260-AR2的路由域的边界上,从AR3260-AR1上重分布进BGP 65001的路由的时候打tag 650011,在AR326 ...

  2. 路由器配置——路由重分布2(OSPF)

    一.实验目的:使用路由重分布达到全网互通的效果 二.拓扑图: 三.具体步骤配置: 1.先给各台主机配置ip地址及网关,以PC1为例: 2.路由器配置: (1)R1路由器配置 Router>ena ...

  3. hdfs 数据块重分布 sbin/start-balancer.sh -threshold

    数据块重分布sbin/start-balancer.sh -threshold <percentage of disk capacity>percentage of disk capa ...

  4. [转]Greenplum 执行计划之广播与重分布

    关联数据在不同节点上,对于普通关系型数据库来说,是无法进行连接的.关联的数据需要通过网络流入到一个节点中进行计算,这样就需要发生数据迁移.数据迁移有广播和重分布两种.在GP中,每一个广播或重分布会产生 ...

  5. Greenplum 执行计划之广播与重分布

    关联数据在不同节点上,对于普通关系型数据库来说,是无法进行连接的.关联的数据需要通过网络流入到一个节点中进行计算,这样就需要发生数据迁移.数据迁移有广播和重分布两种.在GP中,每一个广播或重分布会产生 ...

  6. 路由器配置——路由重分布1(rip)

    一.实验目的:使用路由重分布达到全网互通 二.拓扑图: 三.具体实验步骤配置 先给各个主机配置ip地址和网关以PC1为例: (1)R1路由器配置 Router>enable  --进入特权模式R ...

  7. Pandas 如何通过获取双(多)重索引获取指定行DataFrame数据

    图片看不清楚的话,可以右键选择:“在新标签页中打开图片(I)” 参数 df.loc[(a,b),c]中第一个参数元组为索引内容,a为level0索引对应的内容,b为level1索引对应的内容 因为df ...

  8. CCIE路由实验(3) -- BGP高级部分

    当一个AS包含多个IBGP对等体时,路由反射器非常有用.因为IBGP客户只需要和路由反射器建立邻居关系,从而降低了IBGP的连接数量.路由反射器和它的客户合称为一个簇.路由反射是克服IBGP水平分割的 ...

  9. OSPF优化

    1.点对点(背靠背)的优化 两台设备直连(逻辑上的直连). 将OSPF宣告接口配置为点对点模式,不用选举DR.减少20S时间 interface Ethernet0/1 ip ospf network ...

随机推荐

  1. 使用Gson解析复杂、变态的Json数据(包含中文key)

    接口文档: app配置 接口 client/init 请求数据 json={"uid":"","sid":"",&quo ...

  2. 最大化等比例测试演化Demo-传统方法

    demo-1: <!doctype html> <html> <head> <meta charset="utf-8"> <t ...

  3. liunx vi 学习

    vi有两种状态:命令态和编辑态 命令态中常用的命令: 上下左右移动的处理4个箭头外还有h(左),j(下),k(上),l(右) 调到屏幕显示的首行H,尾行L,x行:xG 0将光标移动到行首:$到行尾,M ...

  4. linux基础命令入门

    1.使用mkdir 创建目录mkdir $HOME/testFolder 2.使用cd命令切换目录cd $HOME/testFolder 3.使用 cd ../ 命令切换到上一级目录cd ../ 4. ...

  5. 编译ijkplayer后直播无声音

    打开:ijkplayer-android/config/module-lite.sh 文件: 你要把neyllow打开,默认是关闭的,如下: export COMMON_FF_CFG_FLAGS=&q ...

  6. vue项目中icon图标的完美引入

    第一步: 进入阿里矢量图标库并登录 地址:https://www.iconfont.cn 第二步: 选择项目需要的图标添加到库 第三步: 选完之后点击右上角的购物车,打开后点击添加到项目,没有就自己建 ...

  7. 定制你自己的vim编辑器

    今天定制了一下自己的vim编辑器,效果嘛,谁用谁知道!话不多说,直奔主题.vim编辑器的配置都在/etc/vimrc文件中. #vim /etc/vimrc 打开配置文件,在尾部添加如下的,不是全都必 ...

  8. junit,面向切面开发(动态代理),工厂设计模式,数据库连接池

    1.junit junit又叫单元测试,好处是能进行批量测试,而且如果方法出现了问题能立刻定位出出现问题的方法,还有一个好处是感官效果很好,如果方法都通过了则显示绿条,否则显示红条 TestCase. ...

  9. 跳板机 jumpserver

    http://docs.jumpserver.org/zh/docs/introduce.html 启动脚本 #!/bin/bash set -e export LANG=zh_CN.UTF- # 项 ...

  10. Spring-boot中@ConfigurationProperties,@Value,@PropertySource

    1.利用@ConfigurationProperties获取配置的值,@ConfigurationProperties是springboot提供的基于安全类型的配置放置. application.pr ...