NF/ Observatory Networking with Linux
The WNMU Node is NFO's connection to the Internet. The eth0 interface is an NE2000 card connected to Western New Mexico University's system. The eth1 interface is the Wavelan card that talks to both the Pinos Altos Node and to the David's Basement Node. Wavelan works very well over the one mile path to David's Basement. The WNMU Node is unique in that it must act as the proxy server for the computers not directly connected to WNMU's system. Check the arp settings in the following rc.local file:
#! /bin/sh echo "setting ttyS2 to irq 5" /bin/setserial /dev/ttyS2 irq 5 echo "sending commands to TNC" sleep 1 /bin/stty 9600 clocal < /dev/cua2 /bin/echo -ne "\300\001\025\300" > /dev/cua2 /bin/echo -ne "\300\002\377\300" > /dev/cua2 /bin/echo -ne "\300\003\004\300" > /dev/cua2 /bin/echo -ne "\300\004\004\300" %gt; /dev/cua2 /bin/echo "Commands to TNC done..." #echo "setting /dev/ttyS3 to irq 11" #/bin/setserial /dev/ttyS3 irq 11 /sbin/ifconfig eth0 22.214.171.124 /sbin/ifconfig eth1 126.96.36.199 echo "Starting WWW Server" /etc/httpd echo "Attaching AX25 link to Radio Port" /sbin/axattach -s 9600 /dev/ttyS2 KC5ZG-1 sleep 1 /sbin/ifconfig sl0 188.8.131.52 /sbin/ifconfig sl0 mtu 512 /sbin/route -n add 184.108.40.206 eth1 /sbin/route -n add 220.127.116.11\ gw 18.104.22.168 eth1 /sbin/route -n add 22.214.171.124\ gw 126.96.36.199 eth1 /sbin/route -n add 188.8.131.52\ gw 184.108.40.206 eth1 /sbin/route -n add 220.127.116.11\ gw 18.104.22.168 eth1 /sbin/route -n add 22.214.171.124 eth0 /sbin/route -n add default gw 126.96.36.199 eth0 /sbin/route -n add 188.8.131.52 eth0 /sbin/route -n add 184.108.40.206 sl0 /sbin/route -n add 220.127.116.11 sl0 /sbin/route -n add 18.104.22.168 gw 22.214.171.124\ sl0 /sbin/route -n add 126.96.36.199 gw 188.8.131.52\ sl0 /sbin/route -n add 184.108.40.206 gw 220.127.116.11\ sl0 /sbin/route -n add 18.104.22.168 eth1 /sbin/route -n add 22.214.171.124 gw 126.96.36.199\ sl0 /sbin/route -n add 188.8.131.52\ gw 184.108.40.206 eth1 /sbin/route -n add 220.127.116.11 eth1 /sbin/route -n add 18.104.22.168 gw 22.214.171.124\ sl0 /sbin/route -n add 126.96.36.199 gw 188.8.131.52\ sl0 /sbin/route -n add 184.108.40.206 gw 220.127.116.11 sl0 echo "Clearing stale file locks" rm /etc/mtab~ rm /nos/spool/mail/*.lck rm /nos/spool/mqueue/*.lck rm /nos/spool/*.lck echo "Publishing wnmu arp entries" /sbin/arp -s 18.104.22.168 00:c0:df:46:b1:b6 pub /sbin/arp -s 22.214.171.124 00:c0:df:46:b1:b6 pub /sbin/arp -s 126.96.36.199 00:c0:df:46:b1:b6 pub
The ham radio equipment for this node is similar to that used at the NF/ Ranch Node with the exception the the transceiver which is a TEKK data radio. In its spare time www.wnmu.edu also acts as the web server for the University and NFO.
This node is located in the basement of a Victorian mansion in downtown Silver City. It is the mail server for the observatory and connects the Wavlan part of the network to a coaxial cable Ethernet that is the LAN for the computers we use for teaching an advanced astronomy class. These computers are located near the astro mansion. The data reduction computer is also on the Ethernet LAN and is in a house around the corner from the astro mansion. rc.local looks like this:
#! /bin/sh /sbin/ifconfig eth1 188.8.131.52 echo "Adding routes" #/sbin/route -n add 184.108.40.206 sl0 #/sbin/route -n add 220.127.116.11 gw 18.104.22.168 sl0 /sbin/route -n add 22.214.171.124 eth1 /sbin/route -n add default gw 126.96.36.199 eth1 /sbin/route -n add 188.8.131.52 eth0 /sbin/route -n add 184.108.40.206 eth0 /sbin/route -n add 220.127.116.11 eth0 /sbin/arp -s 18.104.22.168 00:40:95:26:76:fb /sbin/arp -s 22.214.171.124 00:40:95:26:77:ab echo "Publishing wnmu arp entries" /sbin/arp -s 126.96.36.199 00:40:95:14:ea:41 pub /sbin/arp -s 188.8.131.52 00:40:95:14:ea:41 pub /sbin/arp -s 184.108.40.206 00:40:95:14:ea:41 pub /sbin/arp -s 220.127.116.11 00:40:95:14:ea:41 pub /sbin/arp -s 18.104.22.168 00:40:95:14:ea:41 pub /sbin/arp -s 22.214.171.124 00:40:95:14:ea:41 pub /sbin/arp -s 126.96.36.199 00:40:95:14:ea:41 pub /sbin/arp -s 188.8.131.52 00:40:95:14:ea:41 pub /sbin/arp -s 184.108.40.206 00:40:95:14:ea:41 pub /sbin/arp -s 220.127.116.11 00:40:95:14:ea:41 pub /sbin/arp -s 18.104.22.168 00:40:95:14:ea:41 pub /sbin/route add 22.214.171.124 gw 126.96.36.199\ eth1 /sbin/route add 188.8.131.52 gw 184.108.40.206\ eth1
I Hope I've provided enough detail in this article to help others set up their own wide area network. Some of the ham radio information will be useful only to licensed amateur radio operators, but the Spread Spectrum devices are available to everyone.
|Dynamic DNS—an Object Lesson in Problem Solving||May 21, 2013|
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
|Non-Linux FOSS: Seashore||May 10, 2013|
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- A Topic for Discussion - Open Source Feature-Richness?
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Validate an E-Mail Address with PHP, the Right Way
- RSS Feeds
- Readers' Choice Awards
- Tech Tip: Really Simple HTTP Server with Python
1 hour 30 min ago
- Reply to comment | Linux Journal
2 hours 2 min ago
- All the articles you talked
4 hours 26 min ago
- All the articles you talked
4 hours 29 min ago
- All the articles you talked
4 hours 30 min ago
8 hours 55 min ago
- Keeping track of IP address
10 hours 46 min ago
- Roll your own dynamic dns
16 hours 1 sec ago
- Please correct the URL for Salt Stack's web site
19 hours 11 min ago
- Android is Linux -- why no better inter-operation
21 hours 26 min ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?