Changes

Jump to: navigation, search

NAD810 LAN Setup

672 bytes added, 12:47, 15 January 2009
no edit summary
* check for result
* assgin 10.0.0.254 to the second device if the first one failed
 
----
Here's a skeleton of a script to start us off. I'm missing most of the syntax and it has lots of pseudo-code, but the idea is there:
#!/bin/bash
## Stop the dhcpclient
service stop dhcpclient
## Grab a list of eth devices
nics=$(/sbin/ifconfig -a | grep eth | awk '{print $1}'
## Assign IP to each device w. loop
## start loop
ifconfig $nic 10.0.0.254 netmask 255.0.0.0
## Ping, did it work?
ping -c 1 10.0.0.1
if (echo $?)
then
break
else
null
## close loop here
## grab a list of MAC addesses
ifconfig -a | grep HWaddr | awk '{print $5}'
 
Task 2: Configure route(s)
1
edit

Navigation menu