Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sir thanks a lot,atlast i got it..i have to use ns-bgp then tcl script file:-)..
Sir i want to create bgp path between 2 and 13 autunomous system,how can i write ths tcl script for this(please check out below link),if possible please help me...
sir actually i got the simulation for this AS 1-3-5-7-9-12 sending packets from(1 to 12) but i need to show the other nodes(AS) also present in the network but there shouldn't be any packet flow from them..just i want to show neighbors presenting:-)
# 21 : Almost looks like the original "ns-2.34/tcl/bgp/test/select.tcl" ?
If it is the original file, please edit the content to the right formatting.
The original file will display this ..
Code:
$ ./ns-bgp select.tcl
SELECT Validation Test:
A "triangle" consisting of three ASes. Each AS has one
BGP-speaking router. Each router is connected directly to
the routers in each neighboring AS.
AS----AS
\ /
\ /
AS
Simulation starts...
time: 0.25
n0 (ip_addr 10.0.0.1) defines a network 10.0.0.0/24.
time: 0.251736 %% router: 10.0.1.1 received msg from peer: 10.0.0.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.0.0/24 (0)
time: 0.251736 %% router: 10.0.2.1 received msg from peer: 10.0.0.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.0.0/24 (0)
time: 0.253488 %% router: 10.0.2.1 received msg from peer: 10.0.1.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.0.0/24 (1 0)
time: 0.253488 %% router: 10.0.1.1 received msg from peer: 10.0.2.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.0.0/24 (2 0)
time: 0.35
n1 (ip_addr 10.0.1.1) defines a network 10.0.1.0/24.
time: 0.351736 %% router: 10.0.0.1 received msg from peer: 10.0.1.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.1.0/24 (1)
time: 0.45
n2 (ip_addr 10.0.2.1) defines a network 10.0.2.0/24.
time: 0.451736 %% router: 10.0.0.1 received msg from peer: 10.0.2.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.2.0/24 (2)
time: 27.2518 %% router: 10.0.1.1 received msg from peer: 10.0.0.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.2.0/24 (0 2)
time: 27.2518 %% router: 10.0.2.1 received msg from peer: 10.0.0.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.1.0/24 (0 1)
time: 27.2535 %% router: 10.0.2.1 received msg from peer: 10.0.1.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.1.0/24 (1)
time: 27.2535 %% router: 10.0.1.1 received msg from peer: 10.0.2.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.2.0/24 (2)
time: 27.3029 %% router: 10.0.2.1 received msg from peer: 10.0.1.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: 10.0.2.0/24 ads: -
time: 27.3029 %% router: 10.0.1.1 received msg from peer: 10.0.2.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: 10.0.1.0/24 ads: -
time: 27.3518 %% router: 10.0.0.1 received msg from peer: 10.0.1.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.2.0/24 (1 2)
time: 27.4518 %% router: 10.0.0.1 received msg from peer: 10.0.2.1 %% event_type: *RecvUpdate* %% connection_state: *Established* %% received msg: wds: - ads: 10.0.1.0/24 (2 1)
time: 39
dump routing tables in all BGP agents:
BGP routing table of n0
BGP table version is 4, local router ID is 10.0.0.1
Status codes: * valid, > best, i - internal.
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 self - - -
*> 10.0.1.0/24 10.0.1.1/32 - - - 1
*> 10.0.2.0/24 10.0.2.1/32 - - - 2
BGP routing table of n1
BGP table version is 6, local router ID is 10.0.1.1
Status codes: * valid, > best, i - internal.
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 10.0.0.1/32 - - - 0
*> 10.0.1.0/24 self - - -
*> 10.0.2.0/24 10.0.2.1/32 - - - 2
BGP routing table of n2
BGP table version is 6, local router ID is 10.0.2.1
Status codes: * valid, > best, i - internal.
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 10.0.0.1/32 - - - 0
*> 10.0.1.0/24 10.0.1.1/32 - - - 1
*> 10.0.2.0/24 self - - -
Simulation finished. Executing nam...
.. And nam will open OK.
-
i have run the test.tcl but my output differs from above output, am i missing something?
my output
Code:
[tanmay@Sai ns-2.34]$ ./ns b2.tcl
SELECT Validation Test:
A "triangle" consisting of three ASes. Each AS has one
BGP-speaking router. Each router is connected directly to
the routers in each neighboring AS.
AS----AS
\ /
\ /
AS
Simulation starts...
time: 0.25
n0 (ip_addr 10.0.0.1) defines a network 10.0.0.0/24.
time: 0.35
n1 (ip_addr 10.0.1.1) defines a network 10.0.1.0/24.
time: 0.45
n2 (ip_addr 10.0.2.1) defines a network 10.0.2.0/24.
time: 39
dump routing tables in all BGP agents:
BGP routing table of n0
BGP table version is 4, local router ID is 10.0.0.1
Status codes: * valid, > best, i - internal.
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 self - - -
*> 10.0.1.0/24 10.0.1.1/32 - - - 1
*> 10.0.2.0/24 10.0.2.1/32 - - - 2
BGP routing table of n1
BGP table version is 6, local router ID is 10.0.1.1
Status codes: * valid, > best, i - internal.
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 10.0.0.1/32 - - - 0
*> 10.0.1.0/24 self - - -
*> 10.0.2.0/24 10.0.2.1/32 - - - 2
BGP routing table of n2
BGP table version is 6, local router ID is 10.0.2.1
Status codes: * valid, > best, i - internal.
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 10.0.0.1/32 - - - 0
*> 10.0.1.0/24 10.0.1.1/32 - - - 1
*> 10.0.2.0/24 self - - -
Simulation finished. Executing nam...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.