Wednesday, September 2, 2015

Cisco Alcatel BGP Example

Hi all , I just wanted to see how Alcatel-Lucent configuration looks like , so I integrated the image (sros-vm.qcow2) with GNS3 and lapped it up

Ports Configuration

configure card 1 card-type "iom3-xp-b"
configure card 1 mda 1 mda-type "m5-1gb-sfp-b"
configure card 1 mda 2 mda-type "m5-1gb-sfp-b"
admin save


Interfaces Configuration

configure port 1/1/1 no shutdown
configure router interface INTF1 address 192.168.15.5/24
configure router interface INTF1 port 1/1/1

configure port 1/1/2 no shutdown
configure router interface INTF2 address 192.168.25.5/24
configure router interface INTF2 port 1/1/2

configure router interface lo0 address 5.5.5.5/32
configure router interface "lo0" loopback

configure router interface lo1 address 172.16.55.5/32
configure router interface "lo1" loopback

IGP Configuration

configure router ospf router-id 5.5.5.5
configure router ospf area 0.0.0.0 interface "lo0"
exit
configure router ospf area 0.0.0.0 interface "INTF1"

configure port 1/1/1 ethernet mtu 1514

BGP Configuration

A:vRR# configure router bgp
A:vRR>config>router>bgp# info
----------------------------------------------
            group "eBGP"
                description "External-BGP"
                family ipv4
                type external
                neighbor 192.168.25.2
                    peer-as 2
                exit
            exit
            group "iBGP"
                description "Internal-BGP"
                family ipv4
        next-hop-self
                type internal
                peer-as 15
                neighbor 1.1.1.1
                    local-address 5.5.5.5
                exit
            exit
            no shutdown
----------------------------------------------
configure router autonomous-system 15

Static route
configure router static-route 0.0.0.0/0 next-hop 192.168.25.2

R1#sh ip bgp
BGP table version is 1, local router ID is 192.168.15.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *> i 0.0.0.0          192.168.25.2                  100      0 ?


----------------------

Configurations

A:vRR# configure router
A:vRR>config>router# info
----------------------------------------------
#--------------------------------------------------
echo "IP Configuration"
#--------------------------------------------------
        interface "INTF1"
            address 192.168.15.5/24
            port 1/1/1
            no shutdown
        exit
        interface "INTF2"
            address 192.168.25.5/24
            port 1/1/2
            no shutdown
        exit
        interface "lo0"
            address 5.5.5.5/32
            loopback
            no shutdown
        exit
        interface "lo1"
            address 172.16.55.5/32
            loopback
            no shutdown
        exit
        interface "system"
            no shutdown
        exit
        autonomous-system 15
        router-id 5.5.5.5
#--------------------------------------------------
echo "Static Route Configuration"
#--------------------------------------------------
        static-route 0.0.0.0/0 next-hop 192.168.25.2
#--------------------------------------------------
echo "OSPFv2 Configuration"
#--------------------------------------------------
        ospf 5.5.5.5
            area 0.0.0.0
                interface "INTF1"
                    no shutdown
                exit
                interface "lo0"
                    no shutdown
                exit
            exit
        exit
#--------------------------------------------------
echo "Policy Configuration"
#--------------------------------------------------
        policy-options
            begin
            prefix-list "default-only"
                prefix 0.0.0.0/0 exact
            exit
            policy-statement "default-originate"
                entry 10
                    from
                        protocol static
                        prefix-list "default-only"
                        family ipv4
                    exit
                    action accept
                    exit
                exit
                default-action next-policy
                exit
            exit
            commit
        exit
#--------------------------------------------------
echo "BGP Configuration"
#--------------------------------------------------
        bgp
            export "default-originate"
            group "eBGP"
                description "External-BGP"
                family ipv4
                type external
                neighbor 192.168.25.2
                    peer-as 2
                exit
            exit
            group "iBGP"
                description "Internal-BGP"
                family ipv4
                next-hop-self
                type internal
                export "default-originate"
                peer-as 15
                neighbor 1.1.1.1
                    local-address 5.5.5.5
                exit
            exit
            no shutdown
        exit
----------------------------------------------

A:vRR# show router bgp neighbor 1.1.1.1 advertised-routes
===============================================================================
 BGP Router ID:5.5.5.5          AS:15          Local AS:15
===============================================================================
 Legend -
 Status codes  : u - used, s - suppressed, h - history, d - decayed, * - valid
 Origin codes  : i - IGP, e - EGP, ? - incomplete, > - best, b - backup

===============================================================================
BGP IPv4 Routes
===============================================================================
Flag  Network                                            LocalPref   MED
      Nexthop                                            Path-Id     Label
      As-Path
-------------------------------------------------------------------------------
?     0.0.0.0/0                                          100         None
      192.168.25.2                                       None        -
      No As-Path
-------------------------------------------------------------------------------
Routes : 1
===============================================================================

2 comments:

urmila said...

Hello Friend,
I tried to install SR-OS-VM,qcow2 & GNS3 1.3.13 in my Windows 8.1 system but the issue is after the node takes time to boot and it continues to reboot.
I don't get any login prompt.
Could you please help?

urmila said...

Could you please share the installation steps of SR-OS-VM.qcow2? will this simulator works in windows system.