Difference between revisions of "Single to Double NIC"

From LinuxMCE
Jump to: navigation, search
(Test warning)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category: Tutorials]]
+
{{versioninfo}}
 +
[[Category: Tutorials| NIC]]
 
[[Category: Networking]]
 
[[Category: Networking]]
 +
[[Category:Network Adapters|*]]
  
When switching from a Single NIC setup to using dual NICs, Changes need to be made in several places.
+
When switching from a Single NIC setup to using dual NICs, Changes need to be made in several places. Order of these operations is important.
  
* Web Admin: Advanced menu > Network > Network Settings (more or less optional) (WARNING: one test of this step [http://forum.linuxmce.org/index.php?topic=3512.msg18561#msg18561 caused unexpected network operation  [[User:Matthew|Matthew]] 07:15, 18 December 2007 (MST)]).
 
 
* Web Admin: Show devices tree/My Devices/CORE > Device data/Network Interfaces
 
* Web Admin: Show devices tree/My Devices/CORE > Device data/Network Interfaces
 
** Change: ''eth0,dhcp|'''eth0:0''',192.168.80.1,255.255.255.0'' to: ''eth0,dhcp|'''eth1''',192.168.80.1,255.255.255.0''
 
** Change: ''eth0,dhcp|'''eth0:0''',192.168.80.1,255.255.255.0'' to: ''eth0,dhcp|'''eth1''',192.168.80.1,255.255.255.0''
Line 13: Line 14:
 
         address 127.0.0.1
 
         address 127.0.0.1
 
         netmask 255.0.0.0
 
         netmask 255.0.0.0
   
+
  #
   
+
  #
  iface eth0 inet dhcp
+
  # Set eth0 to use DHCP to connect to cable/DSL/etc automatically.
 +
auto eth0
 +
        iface eth0 inet dhcp
 +
#
 
  #auto eth0:0
 
  #auto eth0:0
 
  #iface eth0:0 inet static
 
  #iface eth0:0 inet static
 
  #      address 192.168.80.1
 
  #      address 192.168.80.1
 
  #      netmask 255.255.255.0
 
  #      netmask 255.255.255.0
    */ This sets eth0 to use DHCP to connect to cable/DSL/etc. automatically */
+
  #
  iface eth1 inet static
+
  # Set eth1 to use the internal network.
  address 192.168.80.1
+
netmask 255.255.255.0
+
    */ This sets eth1 to use the internal network */
+
 
  auto eth1
 
  auto eth1
+
        iface eth1 inet static
auto eth0
+
        address 192.168.80.1
 +
        netmask 255.255.255.0
  
 +
* Ensure /etc/default/dhcp3-server contains (only) INTERFACES="eth1" for the internal network.
 
* You may need to edit ''/etc/iftab'' as well and add a line similar to the eth0 one for your new eth1 with it's own unique MAC address.  See '''man iftab''' for more details on this file.
 
* You may need to edit ''/etc/iftab'' as well and add a line similar to the eth0 one for your new eth1 with it's own unique MAC address.  See '''man iftab''' for more details on this file.
 +
* Web Admin: Advanced menu > Network > Network Settings (more or less optional)
 +
* Check the /etc/exports file, if it looks like this (Please note that these are just examples, your file will likely be somewhat different):
 +
# /etc/exports: the access control list for filesystems which may be exported
 +
#              to NFS clients.  See exports(5).
 +
#
 +
# Example for NFSv2 and NFSv3:
 +
# /srv/homes      hostname1(rw,sync) hostname2(ro,sync)
 +
#
 +
# Example for NFSv4:
 +
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
 +
# /srv/nfs4/homes  gss/krb5i(rw,sync)
 +
#
 +
 +
## BEGIN : InternalStorageDevices
 +
 +
/mnt/device/81 '''192.168.80'''/255.255.255.0''' eth0'''(rw,no_root_squash,no_all_squash,async,nohide,no_subtree_check)
 +
## END : InternalStorageDevices
 +
 +
 +
## BEGIN : CommonDiskless
 +
 +
/home                  '''192.168.80'''/255.255.255.0''' eth0'''(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/orbiter      '''192.168.80'''/255.255.255.0''' eth0'''(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/keys        '''192.168.80'''/255.255.255.0''' eth0'''(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/deb-cache    '''192.168.80'''/255.255.255.0''' eth0'''(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/var          '''192.168.80'''/255.255.255.0''' eth0'''(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
 +
## END : CommonDiskless
 +
 +
 +
## BEGIN : DisklessMDRoots
 +
 +
/usr/pluto/diskless/108 '''192.168.80'''/255.255.255.0''' eth0'''(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
## END : DisklessMDRoots
 +
 +
:Then it should be changed to look like this:
 +
 +
# /etc/exports: the access control list for filesystems which may be exported
 +
#              to NFS clients.  See exports(5).
 +
#
 +
# Example for NFSv2 and NFSv3:
 +
# /srv/homes      hostname1(rw,sync) hostname2(ro,sync)
 +
#
 +
# Example for NFSv4:
 +
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
 +
# /srv/nfs4/homes  gss/krb5i(rw,sync)
 +
#
 +
 +
## BEGIN : InternalStorageDevices
 +
 +
/mnt/device/81 '''192.168.80.0'''/255.255.255.0(rw,no_root_squash,no_all_squash,async,nohide,no_subtree_check)
 +
## END : InternalStorageDevices
 +
 +
 +
## BEGIN : CommonDiskless
 +
 +
/home                  '''192.168.80.0'''/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/orbiter      '''192.168.80.0'''/255.255.255.0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/keys        '''192.168.80.0'''/255.255.255.0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/deb-cache    '''192.168.80.0'''/255.255.255.0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
/usr/pluto/var          '''192.168.80.0'''/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
 +
## END : CommonDiskless
 +
 +
 +
## BEGIN : DisklessMDRoots
 +
 +
/usr/pluto/diskless/108 '''192.168.80.0'''/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
 +
## END : DisklessMDRoots
 +
 +
If you had to make these changes you might also like to modify ''/usr/pluto/bin/Diskless_ExportsNFS.sh'' accordingly as well since that seems to be the template from which ''/etc/exports'' is generated.

Latest revision as of 06:00, 9 October 2012

Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Unknown N/A N/A
1004 Unknown N/A N/A
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information

When switching from a Single NIC setup to using dual NICs, Changes need to be made in several places. Order of these operations is important.

  • Web Admin: Show devices tree/My Devices/CORE > Device data/Network Interfaces
    • Change: eth0,dhcp|eth0:0,192.168.80.1,255.255.255.0 to: eth0,dhcp|eth1,192.168.80.1,255.255.255.0
  • /etc/network/interfaces (can be edited from the launch manager).
    • Comment out eth0:0 related entries:
auto lo
        iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0
#
#
# Set eth0 to use DHCP to connect to cable/DSL/etc automatically.
auto eth0
        iface eth0 inet dhcp
#
#auto eth0:0
#iface eth0:0 inet static
#       address 192.168.80.1
#       netmask 255.255.255.0
#
# Set eth1 to use the internal network.
auto eth1
        iface eth1 inet static
        address 192.168.80.1
        netmask 255.255.255.0
  • Ensure /etc/default/dhcp3-server contains (only) INTERFACES="eth1" for the internal network.
  • You may need to edit /etc/iftab as well and add a line similar to the eth0 one for your new eth1 with it's own unique MAC address. See man iftab for more details on this file.
  • Web Admin: Advanced menu > Network > Network Settings (more or less optional)
  • Check the /etc/exports file, if it looks like this (Please note that these are just examples, your file will likely be somewhat different):
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes  gss/krb5i(rw,sync)
#

## BEGIN : InternalStorageDevices

/mnt/device/81 192.168.80/255.255.255.0 eth0(rw,no_root_squash,no_all_squash,async,nohide,no_subtree_check)
## END : InternalStorageDevices


## BEGIN : CommonDiskless

/home                   192.168.80/255.255.255.0 eth0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/orbiter      192.168.80/255.255.255.0 eth0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/keys         192.168.80/255.255.255.0 eth0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/deb-cache    192.168.80/255.255.255.0 eth0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/var          192.168.80/255.255.255.0 eth0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)

## END : CommonDiskless


## BEGIN : DisklessMDRoots

/usr/pluto/diskless/108 192.168.80/255.255.255.0 eth0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
## END : DisklessMDRoots
Then it should be changed to look like this:
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes  gss/krb5i(rw,sync)
#

## BEGIN : InternalStorageDevices

/mnt/device/81 192.168.80.0/255.255.255.0(rw,no_root_squash,no_all_squash,async,nohide,no_subtree_check)
## END : InternalStorageDevices


## BEGIN : CommonDiskless

/home                   192.168.80.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/orbiter      192.168.80.0/255.255.255.0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/keys         192.168.80.0/255.255.255.0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/deb-cache    192.168.80.0/255.255.255.0(ro,no_root_squash,no_all_squash,sync,no_subtree_check)
/usr/pluto/var          192.168.80.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)

## END : CommonDiskless


## BEGIN : DisklessMDRoots

/usr/pluto/diskless/108 192.168.80.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
## END : DisklessMDRoots

If you had to make these changes you might also like to modify /usr/pluto/bin/Diskless_ExportsNFS.sh accordingly as well since that seems to be the template from which /etc/exports is generated.