Documente Academic
Documente Profesional
Documente Cultură
Topology
BGP
SR_1
Configure Port
A:SR_1# configure port 1/1/1
A:SR_1>config>port# description outside_sr1
A:SR_1>config>port# ethernet mode network
A:SR_1>config>port# no shutdown
A:SR_1# configure port 1/1/2
A:SR_1>config>port# description lan_sr1
A:SR_1>config>port# ethernet mode network
A:SR_1>config>port# no shutdown
Checking port
A:SR_1# show port
A:SR_1# show port 1/1/1
A:SR_1# show port 1/1/2
BGP
SR_1
Configure Interface
A:SR_1# configure router interface outside_sr1
A:SR_1>config>router>if# description outside_sr1
A:SR_1>config>router>if# address 192.168.1.1/24
A:SR_1>config>router>if# port 1/1/1
A:SR_1>config>router>if# no shutdown
A:SR_1# configure router interface lan_sr1
A:SR_1>config>router>if# description lan_sr1
A:SR_1>config>router>if# address 192.168.10.1/24
A:SR_1>config>router>if# port 1/1/2
A:SR_1>config>router>if# no shutdown
Configure loopback interface
A:SR_1# configure router interface system
A:SR_1>config>router>if# address 1.1.1.1/32
A:SR_1>config>router>if# no shutdown
Checking Interface
Show router interface
BGP
SR_2
Configure Port
A:SR_2# configure port 1/1/1
A:SR_2>config>port# description outside_sr2
A:SR_2>config>port# ethernet mode network
A:SR_2>config>port# no shutdown
A:SR_2# configure port 1/1/2
A:SR_2>config>port# description lan_sr2
A:SR_2>config>port# ethernet mode network
A:SR_2>config>port# no shutdown
Checking port
A:SR_1# show port
A:SR_1# show port 1/1/1
A:SR_1# show port 1/1/2
BGP
SR_2
Configure Interface
A:SR_2# configure router interface outside_sr2
A:SR_2>config>router>if# description outside_sr2
A:SR_2>config>router>if# address 192.168.1.2/24
A:SR_2>config>router>if# port 1/1/1
A:SR_2>config>router>if# no shutdown
A:SR_2# configure router interface lan_sr2
A:SR_2>config>router>if# description lan sr2
A:SR_2>config>router>if# address 192.168.20.1/24
A:SR_2>config>router>if# port 1/1/2
A:SR_2>config>router>if# no shutdown
Configure loopback interface
A:SR_1# configure router interface system
A:SR_1>config>router>if# address 2.2.2.2/32
A:SR_1>config>router>if# no shutdown
Checking Interface
Show router interface
BGP
SR_1
Configure route policy to advertise prefix
A:SR_1# configure router policy-options
A:SR_1>config>router>policy-options#
A:SR_1>config>router>policy-options# begin
A:SR_1>config>router>policy-options# prefix-list sr1_prefixlist
A:SR_1>config>router>policy-options>prefix-list$
A:SR_1>config>router>policy-options>prefix-list$ prefix 192.168.10.0/24 exact
A:SR_1>config>router>policy-options>prefix-list$
A:SR_1>config>router>policy-options>prefix-list$ back
A:SR_1>config>router>policy-options#
A:SR_1>config>router>policy-options# policy-statement sr1
A:SR_1>config>router>policy-options>policy-statement$
BGP
A:SR_1>config>router>policy-options>policy-statement$ entry 10
A:SR_1>config>router>policy-options>policy-statement>entry$
A:SR_1>config>router>policy-options>policy-statement>entry$ from prefix-list sr1_prefix
A:SR_1>config>router>policy-options>policy-statement>entry#
A:SR_1>config>router>policy-options>policy-statement>entry# to
A:SR_1>config>router>policy-options>policy-statement>entry>to$
A:SR_1>config>router>policy-options>policy-statement>entry>to$ protocol bgp
*A:SR_2>config>router>policy-options>policy-statement>entry# action accept
A:SR_1>config>router>policy-options>policy-statement>entry>to$ back
A:SR_1>config>router>policy-options>policy-statement>entry# back
A:SR_1>config>router>policy-options>policy-statement# back
A:SR_1>config>router>policy-options#
A:SR_1>config>router>policy-options# commit
BGP
SR_2
Configure route policy to advertise prefix
A:SR_2# configure router policy-options
A:SR_2>config>router>policy-options#
A:SR_2>config>router>policy-options# begin
A:SR_2>config>router>policy-options# prefix-list sr2_prefixlist
A:SR_2>config>router>policy-options>prefix-list$
A:SR_2>config>router>policy-options>prefix-list$ prefix 192.168.20.0/24 exact
A:SR_2>config>router>policy-options>prefix-list$
A:SR_2>config>router>policy-options>prefix-list$ back
A:SR_2>config>router>policy-options#
A:SR_2>config>router>policy-options# policy-statement sr2
A:SR_2>config>router>policy-options>policy-statement$
BGP
A:SR_2>config>router>policy-options>policy-statement$ entry 10
A:SR_2>config>router>policy-options>policy-statement>entry$
A:SR_2>config>router>policy-options>policy-statement>entry$ from prefix-list sr2_prefix
A:SR_2>config>router>policy-options>policy-statement>entry#
A:SR_2>config>router>policy-options>policy-statement>entry# to
A:SR_2>config>router>policy-options>policy-statement>entry>to$
A:SR_2>config>router>policy-options>policy-statement>entry>to$ protocol bgp
*A:SR_2>config>router>policy-options>policy-statement>entry# action accept
A:SR_2>config>router>policy-options>policy-statement>entry>to$ back
A:SR_2>config>router>policy-options>policy-statement>entry# back
A:SR_2>config>router>policy-options>policy-statement# back
A:SR_2>config>router>policy-options#
A:SR_2>config>router>policy-options# commit
*A:SR_2>config>router>policy-options# exit all
*A:SR_2# configure router
*A:SR_2>config>router# static-route 192.168.20.0/24 black-hole
BGP
Configure route bgp
SR_1
BGP
Configure route bgp
SR_2
BGP
SR_1
TEST
SR_1
From PC_A try to ping 192.168.20.2
BGP
SR_2
TEST
SR_2
From PC_B try to ping 192.168.10.2