documentation:examples:ipv6_only_bgp_ospf_ripng_isis_lab_frrouting
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:examples:ipv6_only_bgp_ospf_ripng_isis_lab_frrouting [2020/01/30 11:21] – created fabien | documentation:examples:ipv6_only_bgp_ospf_ripng_isis_lab_frrouting [2021/02/19 17:17] (current) – fabien | ||
---|---|---|---|
Line 30: | Line 30: | ||
Download BSDRP serial image (prevent to have to use an X display) on Sourceforge. | Download BSDRP serial image (prevent to have to use an X display) on Sourceforge. | ||
- | ==== Download Lab scripts | + | ==== Configure lab with netlab |
- | Some scripts have been done to configure bridge and tap interfaces on a server. Also, they linked router vtnet interfaces with the good tap in bhyve | + | === Quick installation of netlab === |
- | Those scripts are comming soon... | + | |
+ | Pull the repository https:// | ||
+ | In root mode : | ||
+ | < | ||
+ | make install | ||
+ | </ | ||
+ | |||
+ | === Information to add on templates.conf === | ||
+ | |||
+ | BSDRP-1.96-full-amd64-serial.img must be on / | ||
+ | |||
+ | < | ||
+ | BSDRP_196: | ||
+ | </ | ||
+ | |||
+ | === Information to add on areas.conf === | ||
+ | |||
+ | < | ||
+ | LAB_v6only: | ||
+ | </ | ||
+ | |||
+ | === Information to add on switches.conf === | ||
+ | |||
+ | < | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | L2: | ||
+ | </ | ||
+ | |||
+ | === Information to add on machines.conf === | ||
+ | |||
+ | < | ||
+ | LAB_v6only_GW: | ||
+ | BGP_R1: | ||
+ | BGP_R2: | ||
+ | BGP_R3: | ||
+ | BGP_R4: | ||
+ | BGPC_H1: | ||
+ | ISIS_R1: | ||
+ | ISIS_R2: | ||
+ | ISIS_R3: | ||
+ | ISIS_R4: | ||
+ | ISISC_H1: | ||
+ | OSPF_R1: | ||
+ | OSPF_R2: | ||
+ | OSPF_R3: | ||
+ | OSPF_R4: | ||
+ | OSPFC_H1: | ||
+ | RIPNG_R1: | ||
+ | RIPNG_R2: | ||
+ | RIPNG_R3: | ||
+ | RIPNG_R4: | ||
+ | RIPNGC_H1: | ||
+ | </ | ||
+ | |||
+ | === Launch the lab === | ||
+ | |||
+ | In root mode ! | ||
+ | < | ||
+ | netlab load -a LAB_v6only | ||
+ | </ | ||
===== Routers configuration ===== | ===== Routers configuration ===== | ||
Line 355: | Line 434: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname RIPNG_R2 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ipv6 address 2001: | ||
+ | ipv6 nd prefix 2001: | ||
+ | ipv6 nd ra-interval 5 | ||
+ | no ipv6 nd suppress-ra | ||
+ | ! | ||
+ | router-id 0.0.3.2 | ||
+ | ! | ||
+ | router ripng | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname RIPNG_R2 | hostname RIPNG_R2 | ||
Line 371: | Line 471: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname RIPNG_R3 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | router-id 0.0.3.3 | ||
+ | ! | ||
+ | router ripng | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | router bgp 65003 | ||
+ | bgp router-id 0.0.3.3 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | network 2001: | ||
+ | network 2001: | ||
+ | network 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | ipv6 prefix-list receive_from_65002 seq 100 permit any | ||
+ | ipv6 prefix-list send_to_65002 seq 100 permit any | ||
+ | ! | ||
+ | route-map Exclude_Internal deny 65003 | ||
+ | match tag 65003 | ||
+ | ! | ||
+ | route-map Exclude_Internal permit 65535 | ||
+ | ! | ||
+ | route-map IPv6_Set-Nexthop_65002 permit 65535 | ||
+ | match ipv6 address all | ||
+ | set ipv6 next-hop peer-address | ||
+ | ! | ||
+ | route-map Tag_Internal permit 65535 | ||
+ | match ipv6 address all | ||
+ | set tag 65003 | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname RIPNG_R3 | hostname RIPNG_R3 | ||
Line 387: | Line 547: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname RIPNG_R4 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | router-id 0.0.3.4 | ||
+ | ! | ||
+ | router ripng | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname RIPNG_R4 | hostname RIPNG_R4 | ||
Line 403: | Line 578: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname ISIS_R1 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | router bgp 65002 | ||
+ | bgp router-id 0.0.2.1 | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | redistribute connected | ||
+ | redistribute isis | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | router isis 65002 | ||
+ | | ||
+ | net 47.0023.0000.0000.0000.fdea.0000.0000.0000.0201.00 | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | ipv6 prefix-list receive_from_65000 seq 100 permit any | ||
+ | ipv6 prefix-list send_to_65000 seq 100 permit any | ||
+ | ! | ||
+ | route-map Exclude_Internal deny 65002 | ||
+ | match tag 65002 | ||
+ | ! | ||
+ | route-map Exclude_Internal permit 65535 | ||
+ | ! | ||
+ | route-map IPv6_Set-Nexthop_65000 permit 65535 | ||
+ | match ipv6 address all | ||
+ | set ipv6 next-hop peer-address | ||
+ | ! | ||
+ | route-map Tag_Internal permit 65535 | ||
+ | match ipv6 address all | ||
+ | set tag 65002 | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname ISIS_R1 | hostname ISIS_R1 | ||
Line 419: | Line 654: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname ISIS_R2 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ipv6 address 2001: | ||
+ | ipv6 nd prefix 2001: | ||
+ | ipv6 nd ra-interval 5 | ||
+ | no ipv6 nd suppress-ra | ||
+ | ! | ||
+ | router isis 65002 | ||
+ | | ||
+ | net 47.0023.0000.0000.0000.fdea.0000.0000.0000.0202.00 | ||
+ | | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname ISIS_R2 | hostname ISIS_R2 | ||
Line 435: | Line 697: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname ISIS_R3 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ipv6 address 2001: | ||
+ | | ||
+ | ! | ||
+ | router bgp 65002 | ||
+ | bgp router-id 0.0.2.3 | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | redistribute connected | ||
+ | redistribute isis | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | router isis 65002 | ||
+ | | ||
+ | net 47.0023.0000.0000.0000.fdea.0000.0000.0000.0203.00 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | ipv6 prefix-list receive_from_65003 seq 100 permit any | ||
+ | ipv6 prefix-list send_to_65003 seq 100 permit any | ||
+ | ! | ||
+ | route-map Exclude_Internal deny 65002 | ||
+ | match tag 65002 | ||
+ | ! | ||
+ | route-map Exclude_Internal permit 65535 | ||
+ | ! | ||
+ | route-map IPv6_Set-Nexthop_65003 permit 65535 | ||
+ | match ipv6 address all | ||
+ | set ipv6 next-hop peer-address | ||
+ | ! | ||
+ | route-map Tag_Internal permit 65535 | ||
+ | match ipv6 address all | ||
+ | set tag 65002 | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname ISIS_R3 | hostname ISIS_R3 | ||
Line 451: | Line 775: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname ISIS_R4 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 router isis 65002 | ||
+ | isis circuit-type level-2-only | ||
+ | ! | ||
+ | router isis 65002 | ||
+ | | ||
+ | net 47.0023.0000.0000.0000.fdea.0000.0000.0000.0204.00 | ||
+ | | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname ISIS_R4 | hostname ISIS_R4 | ||
Line 465: | Line 810: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname BGP_R1 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet2 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | router bgp 65000 | ||
+ | bgp router-id 0.0.0.1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | redistribute connected | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | ipv6 prefix-list receive_from_65001 seq 100 permit any | ||
+ | ipv6 prefix-list receive_from_65500 seq 100 permit any | ||
+ | ipv6 prefix-list send_to_65001 seq 100 permit any | ||
+ | ipv6 prefix-list send_to_65500 seq 100 permit any | ||
+ | ! | ||
+ | route-map IPv6_Set-Nexthop_65001 permit 65535 | ||
+ | match ipv6 address all | ||
+ | set ipv6 next-hop peer-address | ||
+ | ! | ||
+ | route-map IPv6_Set-Nexthop_65500 permit 65535 | ||
+ | match ipv6 address all | ||
+ | set ipv6 next-hop peer-address | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname BGP_R1 | hostname BGP_R1 | ||
Line 479: | Line 887: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname BGP_R2 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 address 2001: | ||
+ | ipv6 nd prefix 2001: | ||
+ | ipv6 nd ra-interval 5 | ||
+ | no ipv6 nd suppress-ra | ||
+ | ! | ||
+ | router bgp 65000 | ||
+ | bgp router-id 0.0.0.2 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | redistribute connected | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname BGP_R2 | hostname BGP_R2 | ||
Line 493: | Line 939: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname BGP_R3 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet1 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | router bgp 65000 | ||
+ | bgp router-id 0.0.0.3 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | redistribute connected | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | ipv6 prefix-list receive_from_65002 seq 100 permit any | ||
+ | ipv6 prefix-list send_to_65002 seq 100 permit any | ||
+ | ! | ||
+ | route-map IPv6_Set-Nexthop_65002 permit 65535 | ||
+ | match ipv6 address all | ||
+ | set ipv6 next-hop peer-address | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname BGP_R3 | hostname BGP_R3 | ||
Line 507: | Line 1001: | ||
cat > / | cat > / | ||
+ | frr version 7.2 | ||
+ | frr defaults traditional | ||
+ | hostname BGP_R4 | ||
+ | ! | ||
+ | interface lo0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | interface vtnet0 | ||
+ | ipv6 address 2001: | ||
+ | ! | ||
+ | router bgp 65000 | ||
+ | bgp router-id 0.0.0.4 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | no neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | | ||
+ | redistribute connected | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | neighbor 2001: | ||
+ | | ||
+ | ! | ||
+ | ipv6 access-list all seq 5 permit any | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
EOF | EOF | ||
hostname BGP_R4 | hostname BGP_R4 |
documentation/examples/ipv6_only_bgp_ospf_ripng_isis_lab_frrouting.txt · Last modified: 2021/02/19 17:17 by fabien