Installation guide

A Sample VLAN Topology
A Sample VLAN Topology
Chapter 7
73
This is the OOB eth0 port on the Switch Blade, and you want to use it as a walk-up configuration port. You (or
an administrator) are able to walk up to the ATCA 14-Slot Shelf with a laptop computer, plug into this port,
get an assigned IP address, and then use telnet to the Switch Blade to perform normal Switch Blade
configuration tasks. Using the dhcpd daemon provided on the Switch Blade, you can set up eth0 to be the
configuration port.
The eth0 configuration must be persistent, so that the eth0 port will be configured properly at boot time. To do
this, complete the following steps to create a dhcpd config file and an rc script that are used at boot time:
Step 1. Use the serial access port to log into the Switch Blade, then add the following dhcpd.eth0.conf
configuration file to the /etc directory:
# /etc/dhcpd.eth0.conf
#
# Hardwired to eth0 for dhcpd config at startup.
option domain-name "dhcpdefault.net";
option subnet-mask 255.255.255.0;
default-lease-time 2400;
max-lease-time 7200;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.20;
option broadcast-address 192.168.1.255;
}
Step 2. Add the following S00dhcpd.eth0 rc script to the /etc/rcZ.d directory:
#!/bin/sh
# /etc/rcZ.d/S00dhcpd.eth0
#
# RC script to start/stop the dhcpd daemon on the eth0
# interface. This allows eth0 to be used as a walk-up
# config port.
#
#
# Create a variable that is the location of the process ID
# for the dhcpd daemon.
#
DHCPPID=/var/run/dhcpd.eth0
#
# Use the saved process ID as a handle to kill the daemon.
#
if [ "$1" = stop ]; then
[ -f "$DHCPPID" ] && kill `cat $DHCPPID`
rm -f $DHCPPID
ifconfig eth0 down
exit 0
fi