How to configure BGP using address family in a Cisco switch?| labeveryday part 48 using GNS3 (2021)

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 1

  • @mariembuenaventura1278
    @mariembuenaventura1278  3 года назад +2

    TASK0::setup basic cisco commands
    enable
    conf t
    !
    !change username here **************
    !
    username ADMINR2 secret cisco
    !
    !change hostname here *************
    !
    !hostname R2
    ip name-server 8.8.8.8
    no ip domain-lookup
    ip domain-name cisco.com
    enable secret cisco
    line console 0
    login local
    exec-timeout 0 0
    logging synchronous
    exit
    line vty 0 4
    login local
    exec-timeout 10 0
    transport input ssh
    exit
    service password-encryption
    ip ssh version 2
    crypto key generate rsa
    812
    exit
    ----------------------------------------------
    TASK1::setup interfaces
    R1::
    conf t
    ipv6 unicast-routing
    interface fa 0/0
    ip address 56.0.0.1 255.255.255.252
    no shut
    ipv6 address 2056:50::1/64
    exit
    interface loopback 0
    ip address 5.5.5.5 255.255.255.0
    ipv6 address 2001:50::1/64
    no shut
    exit
    end
    show ip int brief
    show ipv6 int brief
    R2::
    conf t
    ipv6 unicast-routing
    interface fa 0/0
    ip address 56.0.0.2 255.255.255.252
    ipv6 address 2056:50::2/64
    no shut
    exit
    interface loopback 0
    ip address 6.6.6.6 255.255.255.0
    ipv6 address 2001:60::1/64
    no shut
    exit
    end
    show ip int brief
    show ipv6 int brief
    ----------------------------------------
    TASK2::setup ospf 56
    R1::
    conf t
    ipv6 router ospf 56
    router-id 1.1.1
    exit
    interface fa 0/0
    ip ospf56 area 0
    ipv6 ospf56 area 0
    exit
    interface loopback 0
    ip ospf 56 area 0
    ipv6 ospf 56 area 0
    exit
    end
    show ip protocol
    R2::
    conf t
    ipv6 router ospf 56
    router-id 2.2.2.2
    exit
    interface fa 0/0
    ip ospf 56 area 0
    ipv6 ospf 56 area 0
    exit
    interface loopback 0
    ip ospf 56 area 0
    ipv6 ospf 56 area 0
    exit
    end
    show ip protocol
    -------------------------------------------
    TASK3::add BGP routing
    R1::
    conf t
    router bgp 65001
    neighbor 56.0.0.2 remote-as 65001
    neighbor 56.0.0.2 shutdown
    neighbor 2056:50::2 remote-as 65001
    neighbor 2056:50::2 shutdown
    address-family ipv4 unicast
    neighbor 56.0.0.2 activate
    network 5.5.5.0 mask 255.255.255.0
    exit
    address-family ipv6 unicast
    neighbor 2056:50::2 activate
    network 2001:50::1/64
    R2::
    conf t
    router bgp 65001
    neighbor 56.0.0.1 remote-as 65001
    neighbor 56.0.0.1 shutdown
    neighbor 2056:50::1 remote-as 65001
    neighbor 2056:50::1 shutdown
    address-family ipv4 unicast
    neighbor 56.0.0.1 activate
    network 6.6.6.0 mask 255.255.255.0
    exit
    address-family ipv6 unicast
    neighbor 2056:50::1 activate
    network 2001:60::1/64