documentation:examples:simple_bgp-rip-ospf_lab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:examples:simple_bgp-rip-ospf_lab [2019/08/10 14:11] – [Router 1] olivier | documentation:examples:simple_bgp-rip-ospf_lab [2020/09/22 22:15] – [Router 3] olivier | ||
---|---|---|---|
Line 48: | Line 48: | ||
cat > / | cat > / | ||
log syslog | log syslog | ||
- | ! | ||
- | interface em0 | ||
- | ip address 192.168.12.1/ | ||
- | ipv6 address 2001: | ||
! | ! | ||
interface lo1 | interface lo1 | ||
Line 84: | Line 80: | ||
bfd | bfd | ||
peer 2001: | peer 2001: | ||
- | label router2-6 | ||
no shutdown | no shutdown | ||
! | ! | ||
peer 192.168.12.2 | peer 192.168.12.2 | ||
- | label router2-4 | ||
no shutdown | no shutdown | ||
! | ! | ||
Line 115: | Line 109: | ||
cat > / | cat > / | ||
log syslog | log syslog | ||
- | interface em0 | + | ! |
- | ip address 192.168.12.2/ | + | |
- | ipv6 address 2001: | + | |
- | interface vtnet0 | + | |
- | ip address 192.168.12.2/ | + | |
- | ipv6 address 2001: | + | |
- | interface em1 | + | |
- | ip address 192.168.23.2/ | + | |
- | ipv6 address 2001: | + | |
- | interface vtnet1 | + | |
- | ip address 192.168.23.2/ | + | |
- | ipv6 address 2001: | + | |
key chain rippass | key chain rippass | ||
+ | key 1 | ||
+ | key-string rippassword | ||
key 1 | key 1 | ||
key-string rippassword | key-string rippassword | ||
! | ! | ||
- | interface | + | interface |
- | | + | |
- | ip rip authentication mode md5 | + | ipv6 address 2001: |
! | ! | ||
interface vtnet1 | interface vtnet1 | ||
+ | ip address 192.168.23.2/ | ||
ip rip authentication key-chain rippass | ip rip authentication key-chain rippass | ||
ip rip authentication mode md5 | ip rip authentication mode md5 | ||
+ | ipv6 address 2001: | ||
! | ! | ||
router rip | router rip | ||
- | | ||
- | | ||
| | ||
| | ||
| | ||
+ | | ||
+ | ! | ||
router ripng | router ripng | ||
- | | ||
| | ||
| | ||
| | ||
+ | ! | ||
router bgp 12 | router bgp 12 | ||
bgp router-id 192.168.10.2 | bgp router-id 192.168.10.2 | ||
Line 162: | Line 149: | ||
network 192.168.12.0/ | network 192.168.12.0/ | ||
redistribute rip | redistribute rip | ||
- | neighbor 192.168.12.1 soft-reconfiguration inbound | ||
neighbor 192.168.12.1 next-hop-self | neighbor 192.168.12.1 next-hop-self | ||
+ | neighbor 192.168.12.1 soft-reconfiguration inbound | ||
no neighbor 2001: | no neighbor 2001: | ||
| | ||
Line 173: | Line 160: | ||
neighbor 2001: | neighbor 2001: | ||
| | ||
+ | ! | ||
bfd | bfd | ||
- | peer 2001: | ||
- | label router1-6 | ||
- | no shutdown | ||
peer 192.168.12.1 | peer 192.168.12.1 | ||
- | label router1-4 | ||
no shutdown | no shutdown | ||
+ | ! | ||
+ | peer 2001: | ||
+ | no shutdown | ||
+ | ! | ||
+ | ! | ||
EOF | EOF | ||
Line 192: | Line 181: | ||
sysrc hostname=router3 | sysrc hostname=router3 | ||
sysrc frr_enable=YES | sysrc frr_enable=YES | ||
- | cat > / | + | cat > / |
log syslog | log syslog | ||
- | interface em1 | + | ! |
- | ip address 192.168.23.3/ | + | key chain rippass |
- | ipv6 address 2001: | + | key 1 |
+ | key-string rippassword | ||
+ | key 1 | ||
+ | key-string rippassword | ||
+ | ! | ||
interface vtnet1 | interface vtnet1 | ||
ip address 192.168.23.3/ | ip address 192.168.23.3/ | ||
+ | ip rip authentication key-chain rippass | ||
+ | ip rip authentication mode md5 | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | interface em2 | + | ! |
- | ip address 192.168.34.3/ | + | |
- | ipv6 address 2001: | + | |
interface vtnet2 | interface vtnet2 | ||
ip address 192.168.34.3/ | ip address 192.168.34.3/ | ||
- | ipv6 address 2001: | ||
- | EOF | ||
- | cat > / | ||
- | interface em2 | ||
- | ip ospf message-digest-key 1 md5 superpass | ||
ip ospf bfd | ip ospf bfd | ||
- | interface vtnet2 | ||
ip ospf message-digest-key 1 md5 superpass | ip ospf message-digest-key 1 md5 superpass | ||
- | ip ospf bfd | + | ipv6 address 2001: |
- | router ospf | + | |
- | ospf router-id | + | |
- | | + | |
- | | + | |
- | | + | |
- | area 0.0.0.0 authentication message-digest | + | |
- | EOF | + | |
- | cat > / | + | |
- | interface em2 | + | |
ipv6 ospf6 bfd | ipv6 ospf6 bfd | ||
- | interface vtnet2 | ||
- | ipv6 ospf6 bfd | ||
- | router ospf6 | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | EOF | ||
- | cat > / | ||
- | key chain rippass | ||
- | key 1 | ||
- | key-string rippassword | ||
- | ! | ||
- | interface em1 | ||
- | ip rip authentication key-chain rippass | ||
- | ip rip authentication mode md5 | ||
- | ! | ||
- | interface vtnet1 | ||
- | ip rip authentication key-chain rippass | ||
- | ip rip authentication mode md5 | ||
! | ! | ||
router rip | router rip | ||
- | | ||
- | | ||
| | ||
| | ||
| | ||
- | EOF | + | |
- | cat > / | + | ! |
router ripng | router ripng | ||
- | | ||
| | ||
| | ||
| | ||
- | EOF | + | ! |
- | cat > /usr/ | + | router ospf |
+ | ospf router-id 3.3.3.3 | ||
+ | | ||
+ | | ||
+ | | ||
+ | area 0.0.0.0 authentication message-digest | ||
+ | ! | ||
+ | router ospf6 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
bfd | bfd | ||
peer 2001: | peer 2001: | ||
- | label router2-6 | ||
no shutdown | no shutdown | ||
+ | ! | ||
peer 192.168.34.4 | peer 192.168.34.4 | ||
- | label router4-4 | ||
no shutdown | no shutdown | ||
+ | ! | ||
+ | ! | ||
EOF | EOF | ||
hostname router3 | hostname router3 | ||
service frr start | service frr start | ||
+ | config save | ||
</ | </ | ||
==== Router 4 ==== | ==== Router 4 ==== | ||
Line 277: | Line 244: | ||
sysrc hostname=router4 | sysrc hostname=router4 | ||
sysrc frr_enable=YES | sysrc frr_enable=YES | ||
- | cat > / | + | cat > / |
log syslog | log syslog | ||
+ | ! | ||
interface em2 | interface em2 | ||
ip address 192.168.34.4/ | ip address 192.168.34.4/ | ||
+ | ip ospf bfd | ||
+ | ip ospf message-digest-key 1 md5 superpass | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | interface vtnet2 | + | ipv6 ospf6 bfd |
- | ip address 192.168.34.4/ | + | ! |
- | ipv6 address 2001: | + | |
interface em3 | interface em3 | ||
ip address 192.168.45.4/ | ip address 192.168.45.4/ | ||
+ | ip router isis BSDRP | ||
ipv6 address 2001: | ipv6 address 2001: | ||
+ | ipv6 router isis BSDRP | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ip address 192.168.34.4/ | ||
+ | ip ospf bfd | ||
+ | ip ospf message-digest-key 1 md5 superpass | ||
+ | ipv6 address 2001: | ||
+ | ipv6 ospf6 bfd | ||
+ | ! | ||
interface vtnet3 | interface vtnet3 | ||
ip address 192.168.45.4/ | ip address 192.168.45.4/ | ||
+ | ip router isis BSDRP | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | EOF | + | ipv6 router isis BSDRP |
- | cat > / | + | isis circuit-type level-2-only |
- | interface em2 | + | ! |
- | ip ospf message-digest-key 1 md5 superpass | + | |
- | ip ospf bfd | + | |
- | interface vtnet2 | + | |
- | ip ospf message-digest-key 1 md5 superpass | + | |
- | ip ospf bfd | + | |
router ospf | router ospf | ||
ospf router-id 4.4.4.4 | ospf router-id 4.4.4.4 | ||
+ | | ||
| | ||
- | | ||
| | ||
area 0.0.0.0 authentication message-digest | area 0.0.0.0 authentication message-digest | ||
- | EOF | + | ! |
- | cat > / | + | |
- | interface em2 | + | |
- | ipv6 ospf6 bfd | + | |
- | interface vtnet2 | + | |
- | ipv6 ospf6 bfd | + | |
router ospf6 | router ospf6 | ||
- | | ||
- | | ||
| | ||
+ | | ||
| | ||
| | ||
- | EOF | + | ! |
- | cat > / | + | |
- | interface em3 | + | |
- | ip router isis BSDRP | + | |
- | ipv6 router isis BSDRP | + | |
- | isis circuit-type level-2-only | + | |
- | interface vtnet3 | + | |
- | ip router isis BSDRP | + | |
- | ipv6 router isis BSDRP | + | |
- | isis circuit-type level-2-only | + | |
router isis BSDRP | router isis BSDRP | ||
+ | | ||
net 49.0000.0000.0004.00 | net 49.0000.0000.0004.00 | ||
- | | ||
| | ||
- | | ||
| | ||
+ | | ||
| | ||
- | EOF | + | ! |
- | cat > / | + | |
bfd | bfd | ||
peer 2001: | peer 2001: | ||
label router3-6 | label router3-6 | ||
no shutdown | no shutdown | ||
+ | ! | ||
peer 192.168.34.3 | peer 192.168.34.3 | ||
label router3-4 | label router3-4 | ||
no shutdown | no shutdown | ||
+ | ! | ||
+ | ! | ||
EOF | EOF | ||
+ | |||
hostname router4 | hostname router4 | ||
service frr start | service frr start | ||
+ | config save | ||
</ | </ | ||
Line 353: | Line 318: | ||
sysrc hostname=router5 | sysrc hostname=router5 | ||
sysrc frr_enable=YES | sysrc frr_enable=YES | ||
- | cat > / | + | cat > / |
log syslog | log syslog | ||
+ | ! | ||
interface em3 | interface em3 | ||
ip address 192.168.45.5/ | ip address 192.168.45.5/ | ||
+ | ip router isis BSDRP | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | interface vtnet3 | + | ipv6 router isis BSDRP |
- | ip address 192.168.45.5/ | + | isis circuit-type level-2-only |
- | ipv6 address 2001: | + | ! |
interface em4 | interface em4 | ||
ip address 192.168.56.5/ | ip address 192.168.56.5/ | ||
- | ipv6 address 2001: | ||
- | interface vtnet4 | ||
- | ip address 192.168.56.5/ | ||
- | ipv6 address 2001: | ||
- | EOF | ||
- | cat > / | ||
- | interface em3 | ||
ip router isis BSDRP | ip router isis BSDRP | ||
+ | ipv6 address 2001: | ||
ipv6 router isis BSDRP | ipv6 router isis BSDRP | ||
isis circuit-type level-2-only | isis circuit-type level-2-only | ||
+ | isis passive | ||
+ | ! | ||
interface vtnet3 | interface vtnet3 | ||
+ | ip address 192.168.45.5/ | ||
ip router isis BSDRP | ip router isis BSDRP | ||
+ | ipv6 address 2001: | ||
ipv6 router isis BSDRP | ipv6 router isis BSDRP | ||
isis circuit-type level-2-only | isis circuit-type level-2-only | ||
- | interface em4 | + | ! |
- | ip router isis BSDRP | + | |
- | isis passive | + | |
- | ipv6 router isis BSDRP | + | |
- | isis circuit-type level-2-only | + | |
interface vtnet4 | interface vtnet4 | ||
+ | ip address 192.168.56.5/ | ||
ip router isis BSDRP | ip router isis BSDRP | ||
- | isis passive | + | ipv6 address 2001: |
ipv6 router isis BSDRP | ipv6 router isis BSDRP | ||
isis circuit-type level-2-only | isis circuit-type level-2-only | ||
- | router | + | isis passive |
- | net 49.0000.0000.0005.00 | + | ! |
- | | + | |
- | | + | |
- | | + | |
- | EOF | + | |
- | cat > / | + | |
router babel | router babel | ||
| | ||
Line 401: | Line 358: | ||
| | ||
| | ||
+ | ! | ||
+ | router isis BSDRP | ||
+ | | ||
+ | net 49.0000.0000.0005.00 | ||
+ | | ||
+ | | ||
+ | ! | ||
EOF | EOF | ||
hostname router5 | hostname router5 | ||
service netif restart | service netif restart | ||
service frr start | service frr start | ||
+ | config save | ||
</ | </ | ||
Line 412: | Line 377: | ||
sysrc hostname=router6 | sysrc hostname=router6 | ||
sysrc frr_enable=YES | sysrc frr_enable=YES | ||
- | cat > / | + | cat > / |
log syslog | log syslog | ||
+ | ! | ||
+ | ip route 192.168.70.0/ | ||
+ | ipv6 route 2001: | ||
+ | ! | ||
interface em4 | interface em4 | ||
ip address 192.168.56.6/ | ip address 192.168.56.6/ | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | interface vtnet4 | + | ! |
- | ip address 192.168.56.6/ | + | |
- | ipv6 address 2001: | + | |
interface em5 | interface em5 | ||
ip address 192.168.67.6/ | ip address 192.168.67.6/ | ||
ipv6 address 2001: | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet4 | ||
+ | ip address 192.168.56.6/ | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
interface vtnet5 | interface vtnet5 | ||
ip address 192.168.67.6/ | ip address 192.168.67.6/ | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | EOF | + | ! |
- | cat > / | + | |
router babel | router babel | ||
| | ||
Line 435: | Line 406: | ||
| | ||
| | ||
- | EOF | + | ! |
- | cat > / | + | |
- | ip route 192.168.70.0/ | + | |
- | ipv6 route 2001: | + | |
EOF | EOF | ||
hostname router6 | hostname router6 | ||
service netif restart | service netif restart | ||
service frr start | service frr start | ||
+ | config save | ||
</ | </ | ||
Line 451: | Line 420: | ||
sysrc cloned_interfaces=lo1 | sysrc cloned_interfaces=lo1 | ||
sysrc frr_enable=YES | sysrc frr_enable=YES | ||
- | cat > / | + | cat > / |
log syslog | log syslog | ||
+ | ! | ||
+ | ip route 0.0.0.0/0 192.168.67.6 | ||
+ | ipv6 route ::/0 2001: | ||
+ | ! | ||
interface em5 | interface em5 | ||
ip address 192.168.67.7/ | ip address 192.168.67.7/ | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | interface vtnet5 | + | ! |
- | ip address 192.168.67.7/ | + | |
- | ipv6 address 2001: | + | |
interface lo1 | interface lo1 | ||
ip address 192.168.70.7/ | ip address 192.168.70.7/ | ||
ipv6 address 2001: | ipv6 address 2001: | ||
- | EOF | + | ! |
- | cat > / | + | interface vtnet5 |
- | ip route 0.0.0.0/ | + | |
- | ipv6 route ::/0 2001: | + | |
+ | ! | ||
EOF | EOF | ||
hostname router7 | hostname router7 | ||
service netif restart | service netif restart | ||
service frr start | service frr start | ||
+ | config save | ||
</ | </ | ||
===== Final testing ===== | ===== Final testing ===== |
documentation/examples/simple_bgp-rip-ospf_lab.txt · Last modified: 2023/05/01 07:03 by olivier