某市级银行数据中心广域网接入区技术规划及配置——配置脚本(5)

某市级银行数据中心广域网接入区技术规划及配置——配置脚本(5)

LSW1

sysname LSW1
#
vlan batch 10 20
#
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
#
interface Vlanif10
 ip address 20.0.11.1 255.255.255.252
 ospf network-type p2p
#
interface Vlanif20
 ip address 20.0.13.1 255.255.255.252
 ospf network-type p2p
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
interface LoopBack1
 ip address 220.1.1.10 255.255.255.255
#
interface LoopBack2
 ip address 220.1.1.11 255.255.255.255
#
interface LoopBack3
 ip address 220.1.1.12 255.255.255.255
#
interface LoopBack4
 ip address 220.1.1.13 255.255.255.255
#
interface LoopBack5
 ip address 220.1.1.14 255.255.255.255
#
interface LoopBack6
 ip address 220.1.1.15 255.255.255.255
#
interface LoopBack7
 ip address 220.1.1.16 255.255.255.255
#
interface LoopBack8
 ip address 220.1.1.17 255.255.255.255
#
interface LoopBack9
 ip address 220.1.1.18 255.255.255.255
#
interface LoopBack10
 ip address 220.1.1.19 255.255.255.255
#
ospf 1
 import-route direct type 1 route-policy yinru
 area 0.0.0.1
  network 20.0.11.0 0.0.0.3
  network 20.0.13.0 0.0.0.3
#
route-policy yinru permit node 10
 if-match ip-prefix yinru
#
ip ip-prefix yinru index 10 permit 220.1.1.0 24 greater-equal 32 less-equal 32
#
user-interface con 0
user-interface vty 0 4
#
return

LSW2

sysname LSW2
#
vlan batch 10 20
#
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
#
interface Vlanif10
 ip address 20.0.12.1 255.255.255.252
 ospf network-type p2p
#
interface Vlanif20
 ip address 20.0.23.1 255.255.255.252
 ospf network-type p2p
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
interface LoopBack1
 ip address 220.1.2.20 255.255.255.255
#
interface LoopBack2
 ip address 220.1.2.21 255.255.255.255
#
interface LoopBack3
 ip address 220.1.2.22 255.255.255.255
#
interface LoopBack4
 ip address 220.1.2.23 255.255.255.255
#
interface LoopBack5
 ip address 220.1.2.24 255.255.255.255
#
interface LoopBack6
 ip address 220.1.2.25 255.255.255.255
#
interface LoopBack7
 ip address 220.1.2.26 255.255.255.255
#
interface LoopBack8
 ip address 220.1.2.27 255.255.255.255
#
interface LoopBack9
 ip address 220.1.2.28 255.255.255.255
#
interface LoopBack10
 ip address 220.1.2.29 255.255.255.255
#
ospf 1 router-id 20.2.2.2
 import-route direct type 1 route-policy yinru
 area 0.0.0.1
  network 20.0.12.0 0.0.0.3
  network 20.0.23.0 0.0.0.3
#
route-policy yinru permit node 10
 if-match ip-prefix yinru
#
ip ip-prefix yinru index 10 permit 220.1.2.0 24 greater-equal 32 less-equal 32
#
user-interface con 0
user-interface vty 0 4
#
return

LSW3

sysname LSW3
#
vlan batch 10 20
#
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
#
interface Vlanif10
 ip address 20.0.143.1 255.255.255.252
 ospf network-type p2p
#
interface Vlanif20
 ip address 20.0.163.1 255.255.255.252
 ospf network-type p2p
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
interface LoopBack1
 ip address 220.200.3.30 255.255.255.255
#
interface LoopBack2
 ip address 220.200.3.31 255.255.255.255
#
interface LoopBack3
 ip address 220.200.3.32 255.255.255.255
#
interface LoopBack4
 ip address 220.200.3.33 255.255.255.255
#
interface LoopBack5
 ip address 220.200.3.34 255.255.255.255
#
interface LoopBack6
 ip address 220.200.3.35 255.255.255.255
#
interface LoopBack7
 ip address 220.200.3.36 255.255.255.255
#
interface LoopBack8
 ip address 220.200.3.37 255.255.255.255
#
interface LoopBack9
 ip address 220.200.3.38 255.255.255.255
#
interface LoopBack10
 ip address 220.200.3.39 255.255.255.255
#
ospf 1 router-id 20.3.3.3
 import-route direct type 1 route-policy yinru
 area 0.0.0.1
  network 20.0.143.0 0.0.0.3
  network 20.0.163.0 0.0.0.3
#
route-policy yinru permit node 10
 if-match ip-prefix yinru
#
ip ip-prefix yinru index 10 permit 220.200.3.0 24 greater-equal 32 less-equal 32
#
user-interface con 0
user-interface vty 0 4
#
return

LSW4

sysname LSW4
#
vlan batch 10 20
#
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
#
interface Vlanif10
 ip address 20.0.144.1 255.255.255.252
 ospf network-type p2p
#
interface Vlanif20
 ip address 20.0.164.1 255.255.255.252
 ospf network-type p2p
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
interface LoopBack1
 ip address 220.200.4.40 255.255.255.255
#
interface LoopBack2
 ip address 220.200.4.41 255.255.255.255
#
interface LoopBack3
 ip address 220.200.4.42 255.255.255.255
#
interface LoopBack4
 ip address 220.200.4.43 255.255.255.255
#
interface LoopBack5
 ip address 220.200.4.44 255.255.255.255
#
interface LoopBack6
 ip address 220.200.4.45 255.255.255.255
#
interface LoopBack7
 ip address 220.200.4.46 255.255.255.255
#
interface LoopBack8
 ip address 220.200.4.47 255.255.255.255
#
interface LoopBack9
 ip address 220.200.4.48 255.255.255.255
#
interface LoopBack10
 ip address 220.200.4.49 255.255.255.255
#
ospf 1 router-id 20.4.4.4
 import-route direct route-policy yinru
 area 0.0.0.1
  network 20.0.144.0 0.0.0.3
  network 20.0.164.0 0.0.0.3
#
route-policy yinru permit node 10
 if-match ip-prefix yinru
#
ip ip-prefix yinru index 10 permit 220.200.4.0 24 greater-equal 32 less-equal 32

#
user-interface con 0
user-interface vty 0 4
#
return
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值