This is a project I started when I realized my Cisco 7200 didn't have enough power
to handle the routing responsibilities I needed it to do. My goals were simple.
And it needed to do this above 100Mbps.
- Needs to route IP
- MUST handle BGP peers, including Cogent's odd loopback strategy
- Needs access controls for firewall rules
- Wanted SNMP capabilities to monitor BGP states
My first router has 3 Intel Gig-E nics and cost me less than $1100 including the flash card.
Anyone who wants to use this may, just share your changes and suggestions.
Here's the latest flash files.
Step's to install on an HD or ATA Flash drive identified as ad0:
- copy flash tar file to a local ftp server
- Boot up router w/ BSD Install CD, have the Fixit floppy handy too
- Go to Configure and choose FDISK. Use the entire disk. You may need to set your disk geometry if you have problems booting.
- Besure the FS type is 4.2BSD, use the hidden option "w" to write out your changes
- Take the default option to install the Boot loader
- Exit Fdisk
- Navigate back up to the main menu and choose Fixit and use that fixit floppy.
- You need to create 2 device files:
# mknod /dev/ad0s1a c 116 0x00020000
# mknod /dev/ad0s1c c 116 0x00020002
- Now edit the slice:
# disklabel -e /dev/ad0s1c
Just copy the c: line and change the c: to a: and set the fstype is 4.2BSD like this:
a: 500352 0 4.2BSD 0 0
c: 500352 0 unused 0 0
Of course your size will differ from 500352 unless you are using the same sansdisk I am. Save your
changes when you are done!
- install the bootloader and create the filesystem:
# disklabel -B -r /dev/ad0s1c
# newfs /dev/ad0s1a
- Mount the new file system:
# mount /dev/ad0s1a /mnt
- Set up your networking:
# ifconfig em0 192.168.1.2 netmask 255.255.255.0
# route add default 192.168.1.1 (optional, if ftp server is local this is not needed)
- cd into the flash drive:
- Now connect to your FTP server and extract the flash.tgz file:
# ftp 192.168.1.10
ftp> get flash.tgz "| zcat | tar xvf -"
- Exit ftp, get out of the directory, and unmount it:
# cd /
# umount /mnt
- Rebot the box and remove the CD and floppy media.
type: backup to save any changes from reboot to reboot
Remember nothing is saved unless you type backup.
create your zebra files in /usr/local/etc/zebra
Once the base configs are in place,
start zebra: /usr/local/etc/rc.d/zebra start
to make further changes, try these commands:
type: telnet localhost zebra
type: telnet localhost bgpd
Brian At Walters Dot Org
- 10-28-2004 : Upgraded Quagga to 0.96.5
- 06-12-2004 : Added support for DHCPD.
- 03-19-2004 : Added support for the Tigon 1 and 2 cards. This includes the 3COM 3C985B.
- 01-21-2004 : No real changes - 109 days up time on our core router and still going.
I haven't made a new release yet because things have worked so well.
- 09-16-2003 : Fixed a path problem with the firewall.sh script
added a more informative bash prompt
- 09-15-2003 : lots of things got changed:
snmp support was changed to a package
firewall.sh was changed to allow us to save new rules
backup was modified to include /usr/local/share/snmp
kernel was fixed so you don't have 4096 empty vlans setup
- 09-12-2003 : Initial release of the files.