Difference between revisions of "NAD810 LAN Setup"

From CDOT Wiki
Jump to: navigation, search
(New page: End-node Host A / Host B / Host C * Stop the dhclient * Host A: IP 10.0.0.1 / MAC xx:xx:xx:xx * Host B: 10.0.0.2 / MAC * Host C: 10.0.0.3 / MAC * Gateway: 10.0.0.254 / MAC1, MAC2 Task 0:...)
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<span style="background: #ffff00">'''Note!''' Need to convert this page to task page format</span>
 +
 
End-node
 
End-node
 
Host A / Host B / Host C
 
Host A / Host B / Host C
  
* Stop the dhclient
+
* Stop the dhclient and/or NetworkManager
 
* Host A: IP 10.0.0.1 / MAC xx:xx:xx:xx
 
* Host A: IP 10.0.0.1 / MAC xx:xx:xx:xx
 
* Host B: 10.0.0.2 / MAC
 
* Host B: 10.0.0.2 / MAC
 
* Host C: 10.0.0.3 / MAC
 
* Host C: 10.0.0.3 / MAC
* Gateway: 10.0.0.254 / MAC1, MAC2
 
  
Task 0: collect the MAC addresses on all the machine
+
Gateway
 +
* Stop the NetworkManager
 +
* Run dhclient on the external interface
 +
* Assign 10.0.0.254 to the internal interface
 +
 
 +
Task 0: collect the MAC addresses on all the machines
  
 
Task 1: To find out which network interface on the gateway is connected to the LAN
 
Task 1: To find out which network interface on the gateway is connected to the LAN
Line 18: Line 24:
 
* check for result
 
* check for result
 
* assgin 10.0.0.254 to the second device if the first one failed
 
* 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 - scarter4:
 +
  #!/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)
 
Task 2: Configure route(s)
 +
 +
[[Category:LUX]][[Category:NAD810]]

Latest revision as of 08:19, 7 February 2009

Note! Need to convert this page to task page format

End-node Host A / Host B / Host C

  • Stop the dhclient and/or NetworkManager
  • Host A: IP 10.0.0.1 / MAC xx:xx:xx:xx
  • Host B: 10.0.0.2 / MAC
  • Host C: 10.0.0.3 / MAC

Gateway

  • Stop the NetworkManager
  • Run dhclient on the external interface
  • Assign 10.0.0.254 to the internal interface

Task 0: collect the MAC addresses on all the machines

Task 1: To find out which network interface on the gateway is connected to the LAN

  • boot up and configure end-nodes
  • nics=$(/sbin/ifconfig -a | grep eth | awk '{print $1}')
  • assign 10.0.0.254 to the first device
  • ping host A or host B, or host C
  • 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 - scarter4:

  #!/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)