Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section describes how to configure the SmartServer IP address using the console for SmartServer 4.1 and prior.

The SmartServer IP address is typically changed using the SmartServer Configuration page Network tab. However, you can also change the SmartServer IP address by modifying the /etc/network/interfaces file for SmartServer 4.1 and prior, or /etc/network/interfaces.d/eth0 and/or /etc/network/interfaces.d/eth1 for SmartServer 4.2 and higher, and rebooting the SmartServer. 

After modifying the file(s) and rebooting the SmartServer, go to the SmartServer Configuration page Network tab and verify that all LAN or WAN ports that you are using do not show Startup Mode. If they show Startup Mode, then change the setting to the correct static Static IP Address or DHCP setting and reboot the SmartServer.

...

You only need to modify the ports that you are using: LAN port (eth0) and/or WAN port (eth1). If only one port is used, then generally the LAN port is used.

For SmartServer 4.3 and higher, the configuration for eth0 and eth1 is stored in individual files found in /etc/network/interfaces.d as shown in the following example:

Code Block
Example
titleSmartServer 4.3 and higher
apollo@smartserver-17qea69:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

hotplug ip70
iface ip70 inet static
pre-up ifconfig ip70 multicast

address 172.24.25.128
netmask 255.255.255.0

apollo@smartserver-17qea69:~$ cat /etc/network/interfaces.d/eth0
iface eth0 inet static
address 192.168.92.3
netmask 255.255.255.0
apollo@smartserver-17qea69:~$ cat /etc/network/interfaces.d/eth1
iface eth1 inet dhcp

For SmartServer 4.2, the configuration for eth0 and eth1 is stored in individual files found in /etc/network/interfaces.d as shown in the following example:

Code Block
titleSmartServer 4.2
apollo@smartserver-17tas53:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

hotplug ip70
iface ip70 inet static
pre-up ifconfig ip70 multicast

address 172.24.25.128
netmask 255.255.255.0

apollo@smartserver-17tas53:~$ cat /etc/network/interfaces.d/eth0
iface eth0 inet dhcp
apollo@smartserver-17tas53:~$ cat /etc/network/interfaces.d/eth1
iface eth1 inet dhcp

For SmartServer 4.1 and prior, refer to the following two examples:

Code Block
titleSmartServer 4.1 and prior - example 1: using static IP address for LAN port (eth0). WAN port not used.
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet static
address 10.0.0.228
netmask 255.255.255.0
gateway 10.0.0.1
pre-up /root/.setup/ethernet/eth_mac eth0

iface eth1 inet dhcp
pre-up /root/.setup/ethernet/eth_mac eth1

hotplug ip70
iface ip70 inet static
pre-up ip link set name ip70 dev dummy0
pre-up ifconfig ip70 multicast
address 172.24.25.128
netmask 255.255.255.0

When If you are only using one Ethernet port (eth0), then add the Gateway IP address in addition to the IP address and netmask.

Code Block
titleExample SmartServer 4.1 and prior -example 2: file for BACnet with using dhcp for the LAN port (eth0) and static IP address for the WAN port (eth1)
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.92.3
netmask 255.255.255.0
pre-up /root/.setup/ethernet/eth_mac eth0

iface eth1 inet dhcp
pre-up /root/.setup/ethernet/eth_mac eth1

hotplug ip70
iface ip70 inet static
pre-up ip link set name ip70 dev dummy0
pre-up ifconfig ip70 multicast
address 172.24.25.128
netmask 255.255.255.0
apollo@smartserver-17qam88:~$

...

  1. Log into the SmartServer using the apollo login.

  2. Create a backup of the /etc/network/interfaces.d/eth0 and/or /etc/network/interfaces.d/eth1 file for SmartServer 4.2 and higher, or the /etc/network/interfaces file.

    Edit

    interfaces file for SmartServer 4.1 and prior.

  3. Edit the /etc/network/interfaces.d/eth0 and/or /etc/network/interfaces.d/eth1 file for SmartServer 4.2 and higher, or the /etc/network/interfaces file using sudo.for SmartServer 4.1 and prior. 

  4. Copy the following console commands listed in the example below to a text only editor (i.e., notepad), and then copy the commands one at a time to the SmartServer console (the instructions that follow use . Use nano to edit the interfaces file):.

    Code Block
    titleSmartServer 4.1 and prior example: using console/SSH to modify the interfaces file
    sudo cp /etc/network/interfaces /etc/network/interfaces_old
    ls -l /etc/network
    sudo nano /etc/network/interfaces
    cat /etc/network/interfaces
    sudo reboot


    Code Block
    titleUsing ConsoleSmartServer 4.2 and higher example: using console/SSH to modify the interfaces file
    sudo cp /etc/network/interfaces.d/eth0 /etc/network/interfaces.d/eth0_old and/or sudo cp /etc/network/interfaces.d/eth1 /etc/network/interfaces.d/eth1_old
    ls -l /etc/network/interfaces.d
    sudo nano /etc/network/interfaces.d/eth0 and/or sudo nano /etc/network/interfaces.d/eth1
    cat /etc/network/interfaces.d/eth0 and/or sudo cat /etc/network/interfaces.d/eth1
    sudo reboot


  5. After the SmartServer boots upreboots, go to the SmartServer Configuration page Network tab and verify that all LAN or WAN ports that you are using do not show Startup Mode. If they show Startup Mode, then change the setting to the correct static or DHCP setting and reboot the SmartServer.

For SFTP (e.g., using WinSCP)

...

; only if root login is allowed

  1. Log into the SmartServer as root.

  2. Create a backup of the /etc/network/interfaces.d/eth0 and/or /etc/network/interfaces file.
    Edit /interfaces.d/eth1 file for SmartServer 4.2 and higher, or the /etc/network/interfaces file for SmartServer 4.1 and prior.

  3. Edit the /etc/network/interfaces.d/eth0 and/or /etc/network/interfaces.d/eth1 file for SmartServer 4.2 and higher, or the /etc/network/interfaces file as neededfor SmartServer 4.1 and prior.

  4. Reboot the SmartServer.

  5. After the SmartServer boots up, go to the SmartServer Configuration page Network tab and verify that all LAN or WAN ports that you are using do not show Startup Mode. If they show Startup Mode, then change the setting to the correct static or DHCP setting and reboot the SmartServer.

...