It is currently Sun Dec 08, 2019 9:41 am


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Juniper Olive step by step
PostPosted: Sat Jan 14, 2012 1:02 pm 
Offline

Joined: Sat Jan 14, 2012 12:52 pm
Posts: 2
This is a step by step How to for creating an "Olive" on Linux. This "Olive" can then be copied to a windows system running GNS3.

I have the complete step-by-step on my blog at http://www.stevedrake.org to include the walk through you-tube videos and links to the software required.


Install Qemu on Linux

Menu-->Terminal ~ $sudo apt-get install qemu

Install Tunctl

Menu-->Terminal. ~ $sudo apt-get install uml-utilities

Create Olive folder on your desktop and put the following downloads in it:

Download

FreeBSD 4.11-RELEASE-i386-miniinst.zip
SeaBIOS bios.bin-0.5.0 [Downloads: 0]

Create a 4 Gig image for the "Olive"

Menu-->Terminal ~ $sudo su -
~ #cd /home/steve/Desktop/Olive
~ #dd if=/dev/zero of=olive-base1.img bs=1k count=4000000
~ #chown steve olive-base1.img

Startup Qemu and install FBSD

Menu-->Terminal ~ $sudo su -
~ #qemu -hda /home/steve/Desktop/Olive/olive-base1.img -bios /home/steve/Desktop/Olive/bios.bin-0.5.0 -cdrom /home/steve/Desktop/Olive/4.11-RELEASE-i386-miniinst.iso -boot d -net nic,model=i82559er -net tap,ifname=fxp0,script=no -net nic,model=i82559er -net tap,ifname=fxp1,script=no -localtime

Free BSD install:
skip kernel configuration and continue with installation
Use standard install
A = use entire slice
Q = Finish
Standard install a standard MBR (no boot image)
Ok
C = create
2000M
Ok
FS a file system
mount point for partition /
C = create
1024M
swap
C = create
100M
FS a file system
mount point for partition /config
C = create
hit enter and choose default
FS a file system
mount point for partition /var
Q
Exit
install from CD/DVD
yes
****************Now comes the interface setup and user config part of the install****************
Ethernet or SLIP/PPP network devices --> Yes
fxp0
ipv6--No
DHCP-->No
*****fill in the following boxes*****
Host-->olivebase.org
Domain-->org
Ipv4 gateway-->192.168.1.2
Name Server--> Leave Blank
Ipv4 address-->192.168.1.15
Net mask-->255.255.255.0
Extra Options-->Leave Blank
Ok
bring up the fxp0 interface now?-->Yes
****No to everything else Until you see...*****
would you like to add initial user accounts to the system?-->Yes
User add new user to the system
*****fill in the following boxes*****
User ID-->steve
password-->********
****leave all other items at default******
ok
exit
set root password
at the sys-install main menu select Exit Install
are you sure-->Yes
Now close your Qemu terminal with Crtl C

Now its time to load up my new Free BSD install on the olive-base1.img and test connectivity with the real world....

Start up Qemu and bring up the new Free BSD Install

Menu-->Terminal ~ $sudo su -
~ #qemu -hda /home/steve/Desktop/Olive/olive-base1.img -bios /home/steve/Desktop/Olive/bios.bin-0.5.0 -m 1024 -boot c -net nic,model=i82559er -net tap,ifname=fxp0,script=no -net nic,model=i82559er -net tap,ifname=fxp1,script=no -serial telnet::2001,server,nowait -localtime

Plug in eth1 on the Frankenstein to my local network switch

Open a New Terminal and set up the Bridge and Tap..

Menu-->Terminal ~ $sudo su -
~ #ifconfig fxp1 up
~ #brctl addbr br0
~ #brctl addif br0 eth1
~ #brctl addif br0 fxp1
~ #ifconfig eth1 up
~ #ifconfig br0 up

******Test connectivity*******
~ #ifconfig

made sure br0,eth1 and fxp1 are UP

~ #ping 192.168.1.16

getting a return

~ #brctl show

bridge name bridge id STP enabled interfaces

br0 8000.00508b64672b no eth1

fxp1

~ #ping 192.168.1.15

getting return :)

~ #ssh [email protected]

login and then exit out

Download a copy of Junos and put it in the Olive folder

I can not provide a copy of the jinstall tgz or a link, however, a quick google search on the file below......

scp the jinstall tgz to the olive-base1.img

scp /home/steve/Desktop/Olive/jinstall-8.5R1.14-domestic-signed.tgz [email protected]:~



Setup JUNOS on the olive-base.img

Preform the checkpic hack and prepare jinstall-8.5R1.14-domestic-signed.tgz for pkg_add.

Log back in to the FBSD as root
cd /home/steve
mkdir signed
cd signed
tar zxvf ../jinstall-8.5R1.14-domestic-signed.tgz

mkdir install
cd install
tar zxvf ../jinstall-8.5R1.14-domestic.tgz

mkdir tools
cd tools
tar zxvf ../pkgtools.tgz

cd bin
cp /usr/bin/true ./checkpic
cd ..

tar zcvf ../pkgtools.tgz *
cd ..
rm -rf tools

tar zcfv /usr/home/steve/jinstall-8.5R1.14-domestic-signed.tgz *

cd /
rm /dev/wd0c
ln -s /dev/ad0c /dev/wd0c
mkdir /var/etc
cd /var/etc
touch master.passwd inetd.conf group
cd /usr/home/steve
cp jinstall-8.5R1.14-domestic-signed.tgz /var/tmp
rm jinst*

pkg_add -f /var/tmp/jinstall-8.5R1.14-domestic-signed.tgz
*****it takes a while****** 8 minutes ******
halt
Ctrl c the qemu terminal

Load up the Olive

Menu-->Terminal. ~$sudo su -
~#qemu -hda /home/steve/Desktop/Olive/olive-base1.img -bios /home/steve/Desktop/Olive/bios.bin-0.5.0 -m 1024 -boot c -net nic,model=i82559er -net tap,ifname=fxp0,script=no -net nic,model=i82559er -net tap,ifname=fxp1,script=no -serial telnet::2001,server,nowait -localtime
*****BTX Bootloader will load up*****



Menu-->Terminal. ~$telnet localhost 2001
****It takes about a minute for you to see any output****
****and then about 11 minutes to come to the reboot****
****wait until is says rebooting...******
****and then Close the telnet session and Ctrl c the QEMU****



Menu-->Terminal. ~$sudo su -
~#qemu -hda /home/steve/Desktop/Olive/olive-base1.img -bios /home/steve/Desktop/Olive/bios.bin-0.5.0 -m 1024 -boot c -net nic,model=i82559er -net tap,ifname=fxp0,script=no -net nic,model=i82559er -net tap,ifname=fxp1,script=no -serial telnet::2001,server,nowait -localtime



Menu-->Terminal. ~$telnet localhost 2001
****Wait while it loads up for the first time****
****then login to the "olive for the first time****

login:root
[email protected]%cli
root>show interface terse
root>request system halt
****Wait while it shuts down gracefully****
****and then close the QEMU with Ctrl c****

Now you have built the olive and can copy and rename olive-base1.img to as many instances as you need, this "Olive" can also be used in GNS3 now.

Olive step-by-step video's.

Juniper Olive Part 1
Juniper Olive Part 2
Juniper Olive Part 3
Juniper Olive Part 4 *

* More to follow............




Top
 Profile  
 
 Post subject: Re: Juniper Olive step by step
PostPosted: Tue Jan 17, 2012 8:28 pm 
Offline

Joined: Sat Jan 14, 2012 12:52 pm
Posts: 2
I should have the 4th video finished this weekend and posted (Hopefully) :)




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO