LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2014, 02:11 AM   #1
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Question How to patch OSPF in ns2.34


Hi mates,

I am trying to patch ospf in ns-2.34 i have downloaded the patch file from link:

http://sourceforge.net/projects/ospf...s/ospf4ns2.34/

$ cd ns-allinone-2.34/
$ patch -p0 < 20-ospf4ns2.34-examples.patch

Using : $ cd ns-2.34/
# make install

$ cd tcl/ex/ospf/
$ mkdir out_ospf0 out_ospf1 out_ospf2 out_ospf3 out_ospf4 out_ospf5 out_ospf6 out_ospf7 out_ospf8 out_ospf9
$ ns ospf0.tcl

i followed the procedure from below LQ link post no #3

http://www.linuxquestions.org/questi...-a-4175492253/

it is successfully patchinf file but it is showing error when i execute ospf0.tcl file



Quote:
(TCL) Creating simulator & trace files...
(TCL) Setting up nodes and links...
(TCL) Configuring traffic objects...
(TCL) Configuring routing protocol...
invalid command name "Agent/rtProto/OSPF"
while executing
"Agent/rtProto/OSPF set helloInterval 1"
(file "ospf0.tcl" line 132)


pls anyone suggest me ideas to get rid of this err.

Thanks in Advance,

Pon

Last edited by pon; 08-11-2014 at 02:14 AM. Reason: detail
 
Old 08-14-2014, 01:49 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Quote:
invalid command name "Agent/rtProto/OSPF"
Indicates a failed build. (Or you are using a wrong executable 'ns'.)

? Which Ubuntu is it ?
a) $ uname -m
b) $ cat /etc/issue
 
Old 01-24-2015, 04:18 AM   #3
raeenh2002
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Indicates a failed build. (Or you are using a wrong executable 'ns'.)

? Which Ubuntu is it ?
a) $ uname -m
b) $ cat /etc/issue

I have the exact same problem. The patch installs correctly but every code for OSPF returns the same error like above. I have ubuntu 14.04, ns2 2.35 and applied OSPF patch 2.34
 
Old 01-24-2015, 10:31 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Post #3, @raeenh2002 : Welcome to LQ.

Ubuntu 14.04 : $ sudo apt-get remove ns2

$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < ospf_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ sudo make install
$ cp ns ns-ospf
$ sudo cp ns-ospf /usr/local/bin/
$ cd tcl/ex/ospf/
$ mkdir out_ospf0 out_ospf1 out_ospf2 out_ospf3 out_ospf4 out_ospf5 out_ospf6 out_ospf7 out_ospf8 out_ospf9
$ ns-ospf ospf0.tcl
.
.
$ ns-ospf ospf9.tcl

-
 
1 members found this post helpful.
Old 01-24-2015, 11:48 PM   #5
raeenh2002
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by knudfl View Post
Post #3, @raeenh2002 : Welcome to LQ.

Ubuntu 14.04 : $ sudo apt-get remove ns2

$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < ospf_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ sudo make install
$ cp ns ns-ospf
$ sudo cp ns-ospf /usr/local/bin/
$ cd tcl/ex/ospf/
$ mkdir out_ospf0 out_ospf1 out_ospf2 out_ospf3 out_ospf4 out_ospf5 out_ospf6 out_ospf7 out_ospf8 out_ospf9
$ ns-ospf ospf0.tcl
.
.
$ ns-ospf ospf9.tcl

-

Works like a charm, thanks very much. Dude someone like you is much needed in StackOverflow -> http://stackoverflow.com/questions/2...t-rtproto-ospf

Last edited by raeenh2002; 01-25-2015 at 01:06 AM.
 
Old 01-25-2015, 04:53 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
← #4 .

About "StackOverflow" : There seems to be some few ns2 postings, yes.

The ns2 Forumīs are :
. http://www.linuxquestions.org/questions/tags/ns2/
. https://groups.google.com/forum/?fro...forum/ns-users
. http://network-simulator-ns-2.7690.n...-users-f3.html



-

Last edited by knudfl; 01-25-2015 at 07:02 AM.
 
1 members found this post helpful.
  


Reply

Tags
ns2, ospf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OSPF patch for ns-2.35 rianariana Linux - Newbie 7 01-27-2014 02:11 PM
patch GPSR in NS2.34 Mednabil Linux - Wireless Networking 2 12-23-2013 06:24 PM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
HMIPv6 patch for ns2.33 AmeyaAmz Linux - Newbie 5 11-01-2012 02:31 PM
Help me NS2 ZRP patch helok Programming 0 10-18-2012 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration