

*****************          ******************
* c876          * =========* sleipnir       *
* 192.168.1.3   *          * 192.168.1.77   *
*****************          ****************** 



!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor 192.168.1.77 remote-as 2
 no auto-summary
!



greif@sleipnir ~/svn/bgp_cli/trunk/src $ PYTHONPATH=tcpmd5/ python bgp_cli.py 
BGP_CLI v0.1.5 by Daniel Mende - dmende@ernw.de
BGP_CLI> session 2 8
Session created
BGP_CLI> connect 192.168.1.3
Connected
Keepalive thread started
BGP_CLI> self.msg = bgp_update([], [bgp_path_attr_origin(0), bgp_path_attr_as_path([bgp_as_path_segment(2, [2])]), bgp_path_attr_next_hop("192.168.1.77")], [bgp_nlri(8,"10.0.0.0")])
BGP_CLI> update
Update sended
BGP_CLI> 
Bye...
Keepalive thread terminated
greif@sleipnir ~/svn/bgp_cli/trunk/src $ 




876#sh ip route 
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B       10.0.0.0/8 [20/0] via 192.168.1.77, 00:00:05
C       10.10.10.1/32 is directly connected, Loopback0
C    192.168.1.0/24 is directly connected, BVI1
876#
