MERAprojects / ops-build

Other
0 stars 0 forks source link

BGP command 'neighbor х.х.х.х next-hop-self' is not implemented #12

Open xivamar opened 7 years ago

xivamar commented 7 years ago

The command neighbor х.х.х.х default-originate isn't implemented:

switch# conf ter
switch(config)# router bgp 77
switch(config-router)# neighbor AS_77 next-hop-self
This command is not yet implemented but here are the parameters:
argc = 2
   arg 0: AS_77
   arg 1: (null)
switch(config-router)# neighbor 3.3.3.3 next-hop-self
This command is not yet implemented but here are the parameters:
argc = 2
   arg 0: 3.3.3.3
   arg 1: (null)
switch(config-router)# 
switch(config-router)# end
switch# 
switch# show version 
OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-devel/master-20161123113643-dev)
switch# 
stroykov commented 7 years ago

delivered to devel/master

xivamar commented 7 years ago

Fixed on build:

    switch# show version 
    OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170126080249-dev)
    switch# 

BGP routing table from DUT1:

   switch# show ip bgp 
   Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
                 i internal, S Stale, R Removed
   Origin codes: i - IGP, e - EGP, ? - incomplete

   Local router-id 1.1.1.1
      Network          Next Hop            Metric LocPrf Weight Path
   *> 1.1.1.1/32       0.0.0.0                  0      0  32768  i
   *>i172.16.10.0/24   4.4.4.4                  0    100      0 65502 i
   *>i172.17.10.0/24   4.4.4.4                  0    100      0 65504 i
   *>i192.168.10.0/24  4.4.4.4                  0    100      0  i
   Total number of entries 4
   switch#  

screenshot

alrukav commented 7 years ago

Hi, command 'neighbor х.х.х.х next-hop-self' is not added in running-config file:

switch# show ip bgp
...
Local router-id 101.0.0.10
   Network          Next Hop            Metric LocPrf Weight Path
*>i100.0.0.0/23     2.2.2.2                  0    100      0 64500 i
*>i101.0.0.0/30     2.2.2.2                  0    100      0 64500 i
*> 103.0.0.0/22     0.0.0.0                  0      0  32768  i
*> 120.0.0.0/24     0.0.0.0                  0      0  32768  i
Total number of entries 4

switch# show running-config 
Current configuration:
...
!Version OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170202134441-dev)
!
router bgp 77
     network 103.0.0.0/22
     network 120.0.0.0/24
     bgp fast-external-failover
     neighbor 2.2.2.2 remote-as 77
     neighbor 2.2.2.2 update-source loopback1
     neighbor 4.4.4.4 remote-as 77
     neighbor 4.4.4.4 update-source loopback1
...

Next configuration was used for bgp router:

router bgp 77
     network 103.0.0.0/22
     network 120.0.0.0/24
     bgp fast-external-failover
     neighbor 2.2.2.2 remote-as 77
     neighbor 2.2.2.2 update-source loopback1
     neighbor 2.2.2.2 next-hop-self     
     neighbor 4.4.4.4 remote-as 77
     neighbor 4.4.4.4 update-source loopback1
     neighbor 4.4.4.4 next-hop-self

P.S: Another topology was taken for example.