Installation guide
A Sample VLAN Topology
A Sample VLAN Topology
Chapter 7
74
#
# If you get to here, and you are not starting the daemon,
# display usage info, and exit.
#
[ "$1" != start ] && echo "usage: `basename $0` start | stop" && exit 0
#####################################################################
#
# Bring up the OOB port and dedicated DHCP server.
# Save the daemon process ID for killing the process later.
ifconfig eth0 192.168.1.1 netmask $NETMASK up
dhcpd -cf /etc/dhcpd.eth0.conf -pf $DHCPPID eth0#
Step 3. Issue the following command to make your changes persistent:
zsync
Step 4. Enter the following commands to start up the Switch Blade dhcpd daemon:
chmod 755 /etc/rcZ.d/S00dhcpd.eth0
/etc/rcZ.d/S00dhcpd.eth0 start
Step 5. Issue the following commands to verify that the dhcpd daemon is running:
ps -efw | grep dhcpd
The Switch Blade should return the following message:
root 163 1 0 Mar03 ? 00:00:11 dhcpd -cf /etc/dhcpd.eth0.conf -pf
/var/run/dhcpd.eth0 eth0
Step 6. Now that the daemon is running, try connecting an Ethernet cable from a laptop computer to the
OOB (eth0) port on the Switch Blade front panel. See Figure 7-7 on page 70 and Figure 7-8 on
page 70.
Step 7. Open a telnet session on your Linux laptop, and enter the command:
ifup eth0
Step 8. Enter the ifconfig command on your laptop to verify that the laptop’s eth0 received an IP address
from the Switch Blade, as follows:
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:11:65:09:EF:FC
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0x8400