HCIP(九)

IP配置

AR1:

sys r1

int lo0

ip ad 192.168.1.1 24

int lo1

ip ad 10.0.0.1 24

q

int g 0/0/0

ip ad 12.0.0.1 24

AR2:

sys r2

int g 0/0/0

ip ad 12.0.0.2 24

int g 0/0/1

ip ad 172.16.1.1 29

int g 0/0/2

ip ad 172.16.1.9 29

int lo0

ip ad 172.16.2.1 24

q

AR3:

sys r3

int g 0/0/0

ip ad 172.16.1.2 29

int g 0/0/1

ip ad 172.16.1.17 29

q

int lo0

ip ad 172.16.3.1 24

AR4:

sys r4

int g 0/0/0

ip ad 172.16.1.18 29

int g 0/0/1

ip ad 172.16.1.25 29

int lo0

ip ad 172.16.4.1 24

AR5:

sys r5

int g 0/0/0

ip ad 172.16.1.10 29

int g 0/0/1

ip ad 172.16.1.33 29

int lo0

ip ad 172.16.5.1 24

AR6:

sys r6

int g 0/0/0

ip ad 172.16.1.34 29

int g 0/0/1

ip ad 172.16.1.41 29

int lo0

ip ad 172.16.6.1 24

AR7:

sys r7

int g 0/0/0

ip ad 172.16.1.42 29

int g 0/0/1

ip ad 172.16.1.26 29

int lo0

ip ad 172.16.7.1 24

int g 0/0/2

ip ad 78.0.0.1 24

AR8:

sys r8

int g0/0/0

ip ad 78.0.0.2 24

int lo0

ip ad 1 92.168.2.1 24

int lo1

ip ad 11.0.0.1 24

q

OSPF配置:

AR2:

ospf 1 router-id 2.2.2.2

a 0

network 172.16.0.0 0.0.255.255

AR3:

ospf 1 router-id 3.3.3.3

a 0

network 172.16.0.0 0.0.255.255

AR4:

ospf 1 router-id 4.4.4.4

a 0

network 172.16.0.0 0.0.255.255

AR5:

ospf 1 router-id 5.5.5.5

a 0

network 172.16.0.0    0.0.255.255

AR6:

ospf 1 router-id 6.6.6.6

a 0

network 172.16.0..0 0.0.255.255

AR7:

ospf 1 router-id 7.7.7.7

a 0

network 172.16.0.0 0.0.255.255

开始配置BGP

AR1:

bgp 1

router-select

router-id 1.1.1.1

peer 12.0.0.2 as-number 2

AR2:

bgp 64512

route-select

router-id 2.2.2.2

confederation id 2

confederation peer-as 64513

peer 12.0.0.1 as-number 1

peer 172.16.3.1 as-number 64512

peer 172.16.3.1 connect-interface LoopBack 0

peer 172.16.5.1 as-number 64513

peer 172.16.5.1 connect-interface LoopBack 0

peer 172.16.5.1 ebgp-max-hop

AR3:

bgp 64512

route-select

router-id 3.3.3.3

confederation id 2

peer 172.16.2.1 as-number 64512

peer 172.16.4.1 connect-interface LoopBack 0

AR4:

bgp 64512

route-select

router-id 4.4.4.4

confederation id 2

confederation peer-as 64513

peer 172.16.3.1 as 64512

peer 172.16.3.1 connect-interface LoopBack 0

peer 172.16.7.1 connect-interface LoopBack 0

AR5:

bgp 64513

route-select

router-id 5.5.5.5

confederation id 2

confederation peer-as 64512

peer 172.16.2.1 as-number 64512

peer 172.16.2.1 connect-interface LoopBack 0

peer 172.16.2.1 ebgp-max-hop

peer 172.16.6.1 as-number 64513

peer 172.16.6.1 connect-interface LoopBack 0

AR6

AR7:

peer 172.16.6.1 next-hop-local

peer 172.16.4.1 next-hop-local

AR2:

ip route-statice 172.16.0.0 21 NULL 0

bgp 64512

network 172.16.0.0 21

AR7:

ip route-statice 172.16.0.0 21 NULL 0

bgp 64513

network 172.16.0.0 21

tunnel

AR1:

int t 0/0/0

ip ad 99.0.0.1 24

tunnel-protocol gre

source 10.0.0.1

destination 11.0.0.1

ip route-statice 192.168.2.0 24 99.0.0.2

AR8:

int t 0/0/0

ip ad 99.0.0.2 24

tunel-protocolo gre

source 11.0.0.1

destination 10.0.0.1

实验测试:ping192.168.2.1

              192.168.1.1

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值