Skoči na vsebino

RK 2021/22 - LDN6 BGP

Naslovni prostori

Ker naloga zahteva uporabo naslovnih prostorov (subnetov) ki so definirani relativno na tvojo lastno vpisno stevilko, jih le-teh ne pozabi posodobiti.

Ustrezna podomrežja v vsakem AS (ta bomo objavljali preko BGPja) so definirana tako, da vzamete svojo vpisno številko (XYZQWABC) in uporabite njene zadnje 3 številke na mestih, označenih z A, B, C. Pri tem definirajte tudi ustrezne maske!

10.A.0.0/??
192.168.B.0/??
172.16.C.0/??

Na primer, če je vaša vpisna številka 12345678, potem bi to generiralo naslednja omrežja (A=6, B=7, C=8):

10.6.0.0/??
192.168.7.0/??
172.16.8.0/??

Omrezja

AS65531 AS65532 AS65533
Subnet 10.3.0.0/24 Subnet 192.168.1.0/24 Subnet 172.16.0.0/24
r1.eth0 10.3.0.1/24 r2.eth0 192.168.1.1/24 r3.eth0 172.16.0.1/24
pc1.eth0 10.3.0.2/24 pc2.eth0 192.168.1.2/24 pc3.eth0 172.16.0.2/24
Subnet 1.1.1.0/24
cfnet-1.2 1.1.1.0/30 cfnet-2.3 1.1.1.4/30 cfnet-3.1 1.1.1.8/30
r1.eth1 1.1.1.1/30 r2.eth1 1.1.1.5/30 r3.eth1 1.1.1.9/30
r2.eth2 1.1.1.2/30 r3.eth2 1.1.1.6/30 r1.eth2 1.1.1.10/30

Konfiguracija

Breakline na koncu code blockov - ki se ga sicer ne vidi, a je prisoten v kopirani vsebini, ce kliknes na "copy" gumb - je intentional, saj omogoca, da se, ko kopiras ter direktno prilepis vsebino v terminal, izvede tudi zadnji ukaz.

PC1

stage 1: Configure networking
ip addr add 10.3.0.2/24 broadcast + dev eth0
ip route add default via 10.3.0.1 dev eth0
stage 2: confirm networking
ip r
traceroute 192.168.1.2
traceroute 172.16.0.2

PC2

stage 1: Configure networking
ip addr add 192.168.1.2/24 broadcast + dev eth0
ip route add default via 192.168.1.1 dev eth0
stage 2: confirm networking
ip r
traceroute 10.3.0.2
traceroute 172.16.0.2

PC3

stage 1: Configure networking
ip addr add 172.16.0.2/24 broadcast + dev eth0
ip route add default via 172.16.0.1 dev eth0
stage 2: confirm networking
ip r
traceroute 10.3.0.2
traceroute 192.168.1.2

R1

stage 1: Configure networking and BGP
configure
set interfaces ethernet eth0 address 10.3.0.1/30
set interfaces ethernet eth1 address 1.1.1.1/30
set interfaces ethernet eth2 address 1.1.1.10/30
set protocols bgp 65531 neighbor 1.1.1.2 remote-as '65532'
set protocols bgp 65531 neighbor 1.1.1.9 remote-as '65533'
set protocols bgp 65531 parameters router-id 10.3.0.1
set protocols bgp 65531 network 10.3.0.0/30
commit
save
stage 2: confirm BGP
exit
sleep 30
show ip bgp summary
show ip route

R2

stage 1: Configure networking and BGP
configure
set interfaces ethernet eth0 address 192.168.1.1/30
set interfaces ethernet eth1 address 1.1.1.5/30
set interfaces ethernet eth2 address 1.1.1.2/30
set protocols bgp 65532 neighbor 1.1.1.1 remote-as '65531'
set protocols bgp 65532 neighbor 1.1.1.6 remote-as '65533'
set protocols bgp 65532 parameters router-id 192.168.1.1
set protocols bgp 65532 network 192.168.1.0/30
commit
save
stage 2: confirm BGP
exit
sleep 30
show ip bgp summary
show ip route

R3

stage 1: Configure networking and BGP
configure
set interfaces ethernet eth0 address 172.16.0.1/30
set interfaces ethernet eth1 address 1.1.1.9/30
set interfaces ethernet eth2 address 1.1.1.6/30
set protocols bgp 65533 neighbor 1.1.1.10 remote-as '65531'
set protocols bgp 65533 neighbor 1.1.1.5 remote-as '65532'
set protocols bgp 65533 parameters router-id 172.16.0.1
set protocols bgp 65533 network 172.16.0.0/30
commit
save
stage 2: confirm BGP
exit
sleep 30
show ip bgp summary
show ip route

Topografija

Photo

topologija.png


Zadnja posodobitev: April 17, 2022