User Tools

Site Tools


documentation:examples:simple_bgp-rip-ospf_lab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:simple_bgp-rip-ospf_lab [2018/10/22 08:48] – external edit 127.0.0.1documentation:examples:simple_bgp-rip-ospf_lab [2019/08/10 14:12] – [Router 3] olivier
Line 46: Line 46:
 EOF EOF
  
-cat > /usr/local/etc/frr/zebra.conf <<EOF+cat > /usr/local/etc/frr/frr.conf <<EOF
 log syslog log syslog
 +!
 interface em0 interface em0
  ip address 192.168.12.1/24  ip address 192.168.12.1/24
  ipv6 address 2001:db8:12::1/64  ipv6 address 2001:db8:12::1/64
-interface vtnet0 +!
- ip address 192.168.12.1/24 +
- ipv6 address 2001:db8:12::1/64+
 interface lo1 interface lo1
  ip address 192.168.10.1/24  ip address 192.168.10.1/24
  ipv6 address 2001:db8:10::1/64  ipv6 address 2001:db8:10::1/64
-EOF +! 
- +interface vtnet0 
-cat > /usr/local/etc/frr/bgpd.conf <<EOF+ ip address 192.168.12.1/24 
 + ipv6 address 2001:db8:12::1/64 
 +!
 router bgp 12 router bgp 12
  bgp router-id 192.168.10.1  bgp router-id 192.168.10.1
Line 80: Line 81:
   neighbor 2001:db8:12::2 soft-reconfiguration inbound   neighbor 2001:db8:12::2 soft-reconfiguration inbound
  exit-address-family  exit-address-family
-EOF +!
- +
-cat > /usr/local/etc/frr/bfdd.conf <<EOF+
 bfd bfd
  peer 2001:db8:12::2 local-address 2001:db8:12::1  peer 2001:db8:12::2 local-address 2001:db8:12::1
   label router2-6   label router2-6
   no shutdown   no shutdown
 + !
  peer 192.168.12.2  peer 192.168.12.2
   label router2-4   label router2-4
   no shutdown   no shutdown
 + !
 +!
 EOF EOF
- 
 hostname router1 hostname router1
 service netif restart service netif restart
Line 112: Line 113:
 add -6 2001:db8:12::2 2001:db8:12::1 tcp 0x1003 -A tcp-md5 "abigpassword" ; add -6 2001:db8:12::2 2001:db8:12::1 tcp 0x1003 -A tcp-md5 "abigpassword" ;
 EOF EOF
-cat > /usr/local/etc/frr/zebra.conf <<EOF+cat > /usr/local/etc/frr/frr.conf <<EOF
 log syslog log syslog
 +!
 +key chain rippass
 + key 1
 +  key-string rippassword
 + key 1
 +  key-string rippassword
 +!
 interface em0 interface em0
  ip address 192.168.12.2/24  ip address 192.168.12.2/24
  ipv6 address 2001:db8:12::2/64  ipv6 address 2001:db8:12::2/64
-interface vtnet0 +!
- ip address 192.168.12.2/24 +
- ipv6 address 2001:db8:12::2/64+
 interface em1 interface em1
  ip address 192.168.23.2/24  ip address 192.168.23.2/24
- ipv6 address 2001:db8:23::2/64 
-interface vtnet1 
- ip address 192.168.23.2/24 
- ipv6 address 2001:db8:23::2/64 
-EOF 
-cat > /usr/local/etc/frr/ripd.conf <<EOF 
-key chain rippass 
- key 1 
-  key-string rippassword 
-! 
-interface em1 
  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:db8:23::2/64
 +!
 +interface vtnet0
 + ip address 192.168.12.2/24
 + ipv6 address 2001:db8:12::2/64
 ! !
 interface vtnet1 interface vtnet1
 + ip address 192.168.23.2/24
  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:db8:23::2/64
 ! !
 router rip router rip
- version 2 
  network em1  network em1
  network vtnet1  network vtnet1
  redistribute bgp  redistribute bgp
  redistribute connected  redistribute connected
-EOF + version 2 
-cat > /usr/local/etc/frr/ripngd.conf <<EOF+!
 router ripng router ripng
  network em1  network em1
Line 153: Line 154:
  redistribute bgp  redistribute bgp
  redistribute connected  redistribute connected
-EOF +!
-cat > /usr/local/etc/frr/bgpd.conf <<EOF+
 router bgp 12 router bgp 12
  bgp router-id 192.168.10.2  bgp router-id 192.168.10.2
Line 167: Line 167:
   network 192.168.12.0/24   network 192.168.12.0/24
   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:db8:12::1 activate   no neighbor 2001:db8:12::1 activate
  exit-address-family  exit-address-family
Line 178: Line 178:
   neighbor 2001:db8:12::1 soft-reconfiguration inbound   neighbor 2001:db8:12::1 soft-reconfiguration inbound
  exit-address-family  exit-address-family
-EOF +!
- +
-cat > /usr/local/etc/frr/bfdd.conf <<EOF+
 bfd bfd
- peer 2001:db8:12::1 local-address 2001:db8:12::2 
-  label router1-6 
-  no shutdown 
  peer 192.168.12.1  peer 192.168.12.1
   label router1-4   label router1-4
   no shutdown   no shutdown
 + !
 + peer 2001:db8:12::1 local-address 2001:db8:12::2
 +  label router1-6
 +  no shutdown
 + !
 +!
 EOF EOF
  
Line 200: Line 201:
 sysrc hostname=router3 sysrc hostname=router3
 sysrc frr_enable=YES sysrc frr_enable=YES
-cat > /usr/local/etc/frr/zebra.conf <<EOF+cat > /usr/local/etc/frr/frr.conf <<EOF
 log syslog log syslog
 +!
 +key chain rippass
 + key 1
 +  key-string rippassword
 + key 1
 +  key-string rippassword
 +!
 interface em1 interface em1
  ip address 192.168.23.3/24  ip address 192.168.23.3/24
 + ip rip authentication key-chain rippass
 + ip rip authentication mode md5
  ipv6 address 2001:db8:23::3/64  ipv6 address 2001:db8:23::3/64
-interface vtnet1 +!
- ip address 192.168.23.3/24 +
- ipv6 address 2001:db8:23::3/64+
 interface em2 interface em2
  ip address 192.168.34.3/24  ip address 192.168.34.3/24
- ipv6 address 2001:db8:34::3/64 
-interface vtnet2 
- ip address 192.168.34.3/24 
- ipv6 address 2001:db8:34::3/64 
-EOF 
-cat > /usr/local/etc/frr/ospfd.conf <<EOF 
-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:db8:34::3/64
-router ospf +
- ospf router-id 3.3.3.3 +
- redistribute rip +
- redistribute connected +
- network 192.168.34.0/24 area 0.0.0.0 +
- area 0.0.0.0 authentication message-digest +
-EOF +
-cat > /usr/local/etc/frr/ospf6d.conf <<EOF +
-interface em2+
  ipv6 ospf6 bfd  ipv6 ospf6 bfd
-interface vtnet2 
- ipv6 ospf6 bfd 
-router ospf6 
- router-id 2.2.2.2 
- redistribute ripng 
- redistribute connected 
- interface em2 area 0.0.0.0 
- interface vtnet2 area 0.0.0.0 
-EOF 
-cat > /usr/local/etc/frr/ripd.conf <<EOF 
-key chain rippass 
- key 1 
-  key-string rippassword 
-! 
-interface em1 
- ip rip authentication key-chain rippass 
- ip rip authentication mode md5 
 ! !
 interface vtnet1 interface vtnet1
 + ip address 192.168.23.3/24
  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:db8:23::3/64
 +!
 +interface vtnet2
 + ip address 192.168.34.3/24
 + ip ospf bfd
 + ip ospf message-digest-key 1 md5 superpass
 + ipv6 address 2001:db8:34::3/64
 + ipv6 ospf6 bfd
 ! !
 router rip router rip
- version 2 
  network em1  network em1
  network vtnet1  network vtnet1
  redistribute connected  redistribute connected
  redistribute ospf  redistribute ospf
-EOF + version 2 
-cat > /usr/local/etc/frr/ripngd.conf <<EOF+!
 router ripng router ripng
  network em1  network em1
Line 267: Line 248:
  redistribute connected  redistribute connected
  redistribute ospf6  redistribute ospf6
-EOF +! 
-cat > /usr/local/etc/frr/bfdd.conf <<EOF+router ospf 
 + ospf router-id 3.3.3.3 
 + redistribute connected 
 + redistribute rip 
 + network 192.168.34.0/24 area 0.0.0.0 
 + area 0.0.0.0 authentication message-digest 
 +
 +router ospf6 
 + redistribute connected 
 + redistribute ripng 
 + interface vtnet2 area 0.0.0.0 
 + interface em2 area 0.0.0.0 
 +!
 bfd bfd
  peer 2001:db8:34::4 local-address 2001:db8:34::3  peer 2001:db8:34::4 local-address 2001:db8:34::3
-  label router2-6+  label router4-6
   no shutdown   no shutdown
 + !
  peer 192.168.34.4  peer 192.168.34.4
   label router4-4   label router4-4
   no shutdown   no shutdown
 + !
 +!
 EOF EOF
 hostname router3 hostname router3
 service frr start service frr start
 +config save
 </code> </code>
 ==== Router 4 ==== ==== Router 4 ====
documentation/examples/simple_bgp-rip-ospf_lab.txt · Last modified: 2023/05/01 07:03 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki